Page 1 of 1
Disable Lottery
Posted: Fri Jul 03, 2009 1:50 pm
by smartmedia
L2J Revision 3247:
L2JDP Revision 6350:
When Allow Lottery is disable from Configuration Tool the NPC's are still show up when the server in running.
On the other hand, if Allow class Master is disable, Roy the cat is not show up.
Is a bug or what.. If not i must delete all the Lottery NPC...???
Re: Disable Lottery
Posted: Fri Jul 03, 2009 1:55 pm
by _DS_
Lottery NPC is retail like, so he in the permanent spawnlist. Class managers is a custom feature.
Re: Disable Lottery
Posted: Fri Jul 03, 2009 3:15 pm
by janiii
a fix for you
a fix in core dependent on the config:
http://www.pastebin.cz/20616
Code: Select all
Index: java/net/sf/l2j/gameserver/datatables/SpawnTable.java===================================================================--- java/net/sf/l2j/gameserver/datatables/SpawnTable.java (revision 3259)+++ java/net/sf/l2j/gameserver/datatables/SpawnTable.java (working copy)@@ -98,6 +98,10 @@ { // Dont' spawn class masters }+ else if (!Config.ALLOW_LOTTERY && template1.name.equals("Lottery Ticket Seller"))+ {+ // Dont' spawn lottery ticket seller+ } else { spawnDat = new L2Spawn(template1);
if you want to remove the spawn from spawnlist table (may be again spawned when table overriden and updated):
Code: Select all
DELETE FROM spawnlist WHERE npc_templateid IN (SELECT id FROM npc WHERE name = 'Lottery Ticket Seller');
Re: Disable Lottery
Posted: Fri Jul 03, 2009 4:17 pm
by smartmedia
Unfortunately i don't know how to change the source code of Java and compile it. If you can add an option to Configuration tool will be a lot more easy to me. I thinking to enable some time after the Lottery so i don't want to delete the records from the NPC table.
Thanks both of you, anyway...