Page 1 of 1
TvT & Festival problem
Posted: Thu Jan 13, 2011 10:19 pm
by pajington
L2J Revision 4477:
L2JDP Revision 7745:
Hello, i`ve got a little problem about TvT...everything works good, i`ve set the time when the npc have to spawn and it works...but if i wanna spawn him whenever i want (//admin_tvt_add) i`ll get a message that command //admin_tvt_add doesnt exists ! how can i fix that please ?? next problem is in festivals, i`ve set drop(incl. adena) to 7 and mobs in festival drop just around 3k adena ...is that ok ?? and the last one, i`ve started event HeavyMedals, spawned cats as well but mobs still dont drop medals...where should be a problem please ?
Thanks
Re: TvT & Festival problem
Posted: Fri Jan 14, 2011 12:39 am
by tukune
//tvt_add right.
not //admin_tvt_add
Code: Select all
public HeavyMedal(int questId, String name, String descr) { super(questId, name, descr); addStartNpc(CAT_ROY); addStartNpc(CAT_WINNIE); addTalkId(CAT_ROY); addTalkId(CAT_WINNIE); addFirstTalkId(CAT_ROY); addFirstTalkId(CAT_WINNIE); + com.l2jserver.gameserver.script.DateRange eventDates = com.l2jserver.gameserver.script.DateRange.parse("2011/01/01-2011/01/31", new java.text.SimpleDateFormat("yyyy/MM/dd", java.util.Locale.JAPAN));+ com.l2jserver.gameserver.script.faenor.FaenorInterface.getInstance().addEventDrop(/*Items=*/new int[]{6392}, /*Count=*/new int[]{1,3}, /*Chance=*/90/100.0, eventDates);+ com.l2jserver.gameserver.script.faenor.FaenorInterface.getInstance().addEventDrop(/*Items=*/new int[]{6393}, /*Count=*/new int[]{1,1}, /*Chance=*/ 5/100.0, eventDates);+ com.l2jserver.gameserver.script.faenor.FaenorInterface.getInstance().onPlayerLogin(new String[]{"Heavy Medal Event!","HaHaHa"}, eventDates); }
Re: TvT & Festival problem
Posted: Fri Jan 14, 2011 9:02 am
by pajington
thx but please where i have to put this code, to which file?? 'cause i am pretty new in that things so be patient with me pls...and what about festivals ???
Re: TvT & Festival problem
Posted: Fri Jan 14, 2011 12:05 pm
by jurchiks
data/scripts/events/HeavyMedal.java
don't forget to change java.util.Locale.JAPAN to ENGLISH

Re: TvT & Festival problem
Posted: Fri Jan 14, 2011 4:04 pm
by pajington
thx again, i solved it and festivals are solved as well now... thanks for help

but i`ve got one more question about events that are allready in pack like rabbit invasion, race, etc... where can i change reward of them ?
Re: TvT & Festival problem
Posted: Fri Jan 14, 2011 5:15 pm
by jurchiks
Check their scripts... Afaik they can't be configured in properties.