Armor quest script
Ok , I'm a newbie at Perl , but I'm slowly figuring it out. This quest script is for a PC to hand in an armor pattern , and get in return an armor piece based on what class they are. The quest text works , but when I hand a pattern in it doesn't give me anything in return. Would anyone please tell me what I'm doing wrong ? Thank you !
Code:
sub EVENT_SAY |
Try enclosing the item to be summoned in double quotes, for example:
Code:
quest::summonitem("15773"); |
if in doubt, always run your quest script against the PERL interpreter natively from command line. if it exits quietly, the quest at least is syntactically correct.
if you get output like, say: sfisque@cthulhu:~/lab$ perl quest.pl syntax error at quest.pl line 13, near ");" syntax error at quest.pl line 15, near ");" syntax error at quest.pl line 17, near ");" syntax error at quest.pl line 22, near ");" syntax error at quest.pl line 24, near ");" syntax error at quest.pl line 26, near ");" syntax error at quest.pl line 31, near ");" syntax error at quest.pl line 33, near ");" syntax error at quest.pl line 35, near ");" syntax error at quest.pl line 40, near ");" quest.pl has too many errors. then you need to fix the script first. == sfisque ps: free hint, double check your IF syntax |
Excellent tip sfisque, thanks!
|
Awsome ! Thanks for the info !
|
You could write it this way using your syntax to fix it:
*NOTE -- I've omitted sub EVENT_SAY for thread length reasons Code:
sub EVENT_ITEM { Code:
sub EVENT_ITEM { |
wow yeah thats alot better then mine , thanks !~
|
All times are GMT -4. The time now is 06:48 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.