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
TvT & Festival problem
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- tukune
- Posts: 533
- Joined: Sun Mar 29, 2009 2:35 pm
- Location: Japan
Re: TvT & Festival problem
//tvt_add right.
not //admin_tvt_add
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); }
-
- Posts: 21
- Joined: Wed Aug 05, 2009 10:42 am
Re: TvT & Festival problem
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 ???
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: TvT & Festival problem
data/scripts/events/HeavyMedal.java
don't forget to change java.util.Locale.JAPAN to ENGLISH
don't forget to change java.util.Locale.JAPAN to ENGLISH

If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
-
- Posts: 21
- Joined: Wed Aug 05, 2009 10:42 am
Re: TvT & Festival problem
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 ?

- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: TvT & Festival problem
Check their scripts... Afaik they can't be configured in properties.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.