View Single Post
  #1  
Old 06-22-2004, 04:14 AM
KhaN's Avatar
KhaN
Dragon
 
Join Date: Mar 2004
Location: France, Bordeaux.
Posts: 677
Default Code - Serverwide Globals

I needed for my server a serverwide globals, because actually, all globals in EQEmu are zonewide, which restrict a lot quest writing, as well as using globals in gamesystem.

All credit goes to scorpious2k, i didnt done this code change, i only pointed him the "problem" and he sended me the fix, i only spend a few moment to fully test it.

parcer.cpp
Line 1380 (06.16CVS) Replace this in setglobal function
Code:
"DELETE FROM quest_globals WHERE expdate < %li || (name='%s' && (npcid=0 || charid=0 || zoneid=0 ||(npcid=%i && charid=%i && zoneid=%i)))"
By this
Code:
"DELETE FROM quest_globals WHERE expdate < %i || (name='%s' && (charid=0 || (npcid=%i && charid=%i && zoneid=%i)))"
Line 1413 (06.16CVS) Replace this in targlobal function
Code:
"DELETE FROM quest_globals WHERE expdate < %li || (name='%s' && (npcid=0 || charid=0 || zoneid=0 ||(npcid=%i && charid=%i && zoneid=%i)))"
By this
Code:
"DELETE FROM quest_globals WHERE expdate < %i || (name='%s' && (charid=0 || (npcid=%i && charid=%i && zoneid=%i)))"
__________________

Reply With Quote