Thanks for the response Scorp.. What we are looking at doing with the current project is develop a quest which, once completed, will allow the player to permenantly name their pet. I'm going to be using the setglobal with option 5 so it is available to all NPCs in all zones and is player specific for each player.
So it will be saving the value in the quest_globals table where it should be available to pluck it out. My problem is plucking it out. I've looked at the code for GetRandPetName in spells.cpp and looked at your code in parser.cpp. I should be able to use the database query routine to grab the value and if it exsists to use it instead of grabbing a random name. I think I need to dig into the sql database interface and learn more about what the command structs you are using in the code for setglobal is doing when called so I can run a SELECT query and grab the value from quest_global.
__________________
Kukthar
Discord Aftermath (alpha) LAN Party Server [Custom Legit] - Op/Dev
Temporarilly on hold due to time constraints
Damn rl interupting fun anyways.. :P
|