54087.pl = I'd guess, multiple quotes " will screw with it.
54070.pl = you have to use { } like said before. An example would be: if($itemcount{13198} == 4){
You are also adding quotes to the last line comment for some reason it seems => line 69, near "#(END of FILE Zone:gfaydark ID:54 blah blah... should only be # without quotes.
54092.pl = The same thing, your itemcount is off and there are quotes near or in the #(END of FILE... comment. This should be at the end of the file, starting with # only.
Quotation marks are rarely used... mainly only for quest::say("") purposes. You don't need to use quotes around everything, not even in itemcount or if $item[no] lines.
Here is an example of a quest of mine (which works) that uses itemcount:
###################################
#Zone: Ak`Anon #
#Short Name: akanon #
#Zone ID: 55 #
###################################
#NPC Name: Sanfyrd_Featherhead #
#NPC ID: 55090 #
#Quest Status: Incomplete #
###################################
sub EVENT_SAY {
if($text=~/Hail/i){
quest::say("Greetings! I am the operator of this scrapyard. If you have any scrap metal. I would be glad to purchase it from you in loads of four. The Gemchoppers no longer allow me to accept blackbox fragments and micro servos."); }
}
sub EVENT_ITEM {
if($itemcount{13198} == 4){
quest::say("Excellent work. You were born to be a warrior. Here is a little bonus for the good job.");
quest::faction(115,3);
quest::faction(176,3);
quest::faction(210,3);
quest::faction(71,-3);
quest::faction(39,-3);
quest::exp(65);
quest::givecash(0,0,7,0); }
}
|