EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   NPC saving information (https://www.eqemulator.org/forums/showthread.php?t=23705)

SoTRichard 09-30-2007 04:34 AM

NPC saving information
 
I've seen on other servers where you can give npcs coins and they will remember how many coins you have given them as "credit" (not a banker). So i was wondering how i might get an npc to store other information, like a player's current level. I want to create an npc where a player can hail it and say "level" and it records their current level. Then should a glitch occur and they lose a bunch of levels just from 1 death, they can return to the npc and say "back" and it will look up their previous level and give it back to them via quest::level

Theeper 10-01-2007 03:07 AM

Use quest_globals for that.

ChaosSlayer 01-21-2008 11:39 AM

will value saved in quest global survive server reset/loging out?

So_1337 01-21-2008 11:43 AM

It's in the database, so yes. Store in the quest_globals table with all the pertinent information.

ChaosSlayer 01-21-2008 11:52 AM

ah good thank you =)


All times are GMT -4. The time now is 04:54 AM.

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