View Single Post
  #25  
Old 02-09-2004, 12:45 AM
Scorpious2k's Avatar
Scorpious2k
Demi-God
 
Join Date: Mar 2003
Location: USA
Posts: 1,067
Default

Quote:
Originally Posted by smogo
at the moment, declaring variables seems to work. But i dont get them in the context when the event is triggered.
A thought occurred to me about this. You realize you have to give the npc permission to receive the global variable. The qglobal flag in npc_types has to be 1 or the npc will NOT get the variables no matter what is in the quest_globals table. Naturally, if you change the value in npc_types you have to restart the server for it to take affect.

Quote:
well, charid does not seem to work (thus 0 in char_id second line)
charid can be 0, as can zone and npcid. 0 means "all". So if you set the options to allow this variable to be used by this npc for all players, the charid would be 0, npcid would be the npcid. Zero in zoneid means you are sharing this variable wroldwide.

Tark posted the list of options and what they mean in his message "coming soon" where he announced it.

Quote:
There might be an issue with the qglobal member of the Mob class, as the code in parser.cpp / Parser::Event around line 313 is not entered.
This is probably the qglobal flag I mentioned above.

Quote:
At the moment, i never get a variable set, nor charid. =(
Hope there's something here to help.
__________________
Maybe I should try making one of these servers...
Reply With Quote