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...???
Disable Lottery
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- L2j Veteran
- Posts: 3437
- Joined: Wed Apr 30, 2008 8:53 am
- Location: Russia
Re: Disable Lottery
Lottery NPC is retail like, so he in the permanent spawnlist. Class managers is a custom feature.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
public static final int PI = 3.1415926535897932384626433832795;
- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: Disable Lottery
a fix for you 
a fix in core dependent on the config:
http://www.pastebin.cz/20616
if you want to remove the spawn from spawnlist table (may be again spawned when table overriden and updated):

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);
Code: Select all
DELETE FROM spawnlist WHERE npc_templateid IN (SELECT id FROM npc WHERE name = 'Lottery Ticket Seller');
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
-
- Posts: 60
- Joined: Tue Jun 16, 2009 4:38 pm
- Location: Hellas
Re: Disable Lottery
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...
Thanks both of you, anyway...