Lang quest - $qglobals not working.
Ok, guys, I give up. I can't get this to work. I'm sure the quest is right, I think this might be something I need to add or change in the database but I can't seem to find it.
I have a new npc in pok that I want to teach you a lang for pp. I thought I'd use a global variable to determine if you had paid and then let you tell him what lang you wanted to learn. I realize there are eaiser ways to do this i.e. turn in an item, but I wanted to see if this was possible. It should be, but I'm stumped. Here is the quest so far: Code:
#Script to learn a language for 10pp each. |
Don't forget all quest commands need double-colons
Code:
quest::command |
Thanks, I missed the single colon. Copy and Paste can get you into trouble :-)
I didn't have the npc set to use globals. I'll have to restart the server I assume to get it to take affect. |
I think a simple repop or at most zone reset will make the qglobal setting take effect.
|
I did have to do a reboot. A repop didn't work. Is it enough to get everyone out of the zone? That also didn't work. A reboot did, but I'd rather do a zone reset if there is some way to force it.
That fixed it, the script is working fine. Thanks |
I have not played with the globals but I know for regular quest changes a #reloadpl usually works.
|
If your zones are static, having everyone leave isn't the same as a reset, but if they are all dynamic it basically is. You can always use #zoneshutdown <zonename> to force it to shut down. Make sure to zone out first =P
|
All times are GMT -4. The time now is 10:06 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.