Question..again
I know this is getting to be a weekly thing but I have yet another slightly broken quest lol. Please be patient with me im learning!
All of this works except the final part,were you say pick for the item. I had it working but it appears you could just say pick and get an item without achieving the global flag first. For whatever reason the script below doesnt seem to be setting the global to get trigger the pick text. Code:
sub EVENT_SAY { |
Check this line:
Code:
elsif($text=~/pick/i && !defined $qglobals{"Epicz"} && $qglobals{"Epicz"} == 1) { Code:
quest::setglobal("Epicz", 1, 5, "F"); Code:
sub EVENT_SAY { |
Gave it a shot,no go on the rewrite,isnt responsive to anything.
|
Make line 42 read this:
Code:
$client->Message(315, quest::varlink($_) . " " . quest::saylink($_, 1, "Choose")) for @{$hash{$class}}; |
Got that working now. However its still not wanting to respond to pick after giving him the item. Not sure if the global isnt setting or if the 'pick' part is acting up
|
Quote:
Krab said it was untested, and I didn't bother to test it either, it was a missing close brace } that was missing, rather, it popped out at me. I'll give it another look, though I suspect Krab is lurking (he's sneaky like that). |
Changed formatting a little for my eyes, line 55 I didnt think was supposed to check for another "stop" (or whatever it was). Curious, line 59 is checking to see if Epicz is not defined, yet, also checking to see if it has a value of 1?
Code:
%hash = ( |
I'm going to go out on a limb and assume line 59 should read:
Code:
elsif($text=~/pick/i && defined $qglobals{"Epicz"} && $qglobals{"Epicz"} == 1) { |
That did it,working flawlessly now tyvm for the help!
|
All times are GMT -4. The time now is 10:09 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.