Quick question
How would I access $name-made variable from quest_globals?
I can use $name to make the global, but I can't figure out how to define it for use in a script. |
If you could give an example of what you are trying to accomplish it might help with figuring this out.
|
Code:
quest::setglobal("$name","2","3","F"); but if I look for it again to compare; Code:
if (($text=~/hail/i)&&($name==2)){ |
You want to do it like this:
Code:
if (($text=~/hail/i)&&(${$name}==2)){ This is what I used to test it: Code:
$var1 = "var2"; |
Got it Sesmar, thanks - ran perfect.
here's what I fixed; Well, I have to Link it because the post won't take such a large pl; http://www.nahunta.org/~angelox/files/Vahlara.pl Vahlara now will only give you one charm, you don't get the dupe message and the "here's the charm" text goes away. Also, when you zone out, since you can't come back anymore, the exit tutorial guy deletes the global. If you decide to try it out, the "emoter npc's" in the script are not in the current posted database. This should fix them up; Code:
INSERT INTO npc_types VALUES (189119,"_","",60,127,1,11,23400,0,10,0,1,1,1,0,0,0,0,100,480,"",0,61,0,0,0,0,0,1,0,0,0,0,0,1.25,245,245,245,245,245,0,1,1,1,1052,0,0,-25,0,299,299,299,299,299,299,299); Code:
INSERT INTO quest_globals VALUES (153,0,0,189,"amote","2",0) ON DUPLICATE KEY UPDATE value=2; Anyways I'm almost ready to put out another DB update - I got a lot more work done on Gunthak too. |
Glad to hear that worked for you.
|
All times are GMT -4. The time now is 10:52 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.