EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Archive::Development (https://www.eqemulator.org/forums/forumdisplay.php?f=621)
-   -   Code - Serverwide Globals (https://www.eqemulator.org/forums/showthread.php?t=14488)

KhaN 06-22-2004 04:14 AM

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)))"

smogo 06-22-2004 09:50 AM

a kind of this ?
http://www.eqemulator.net/forums/vie...463329f3bef90d

/em goes back to doze mode

been away for a while. Wish you all good luck and keep on good work :) 'wanna play a f***in' nice new emu when i'm back =)


All times are GMT -4. The time now is 12:09 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.