Disable Lottery

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
smartmedia
Posts: 60
Joined: Tue Jun 16, 2009 4:38 pm
Location: Hellas

Disable Lottery

Post 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...???
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Disable Lottery

Post by _DS_ »

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;
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Disable Lottery

Post 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');
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
smartmedia
Posts: 60
Joined: Tue Jun 16, 2009 4:38 pm
Location: Hellas

Re: Disable Lottery

Post 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...
Post Reply