However, in your original post, the problems are because in the first example you used = instead of ==, resulting in assignment instead of comparison. In the second example you were assigning to a hash instead of checking it for existence and then testing the value.
Code:
if ($item1==5014) {
quest::say("Ggrrr, I didn't need your help...");
quest::exp(1000);
}
if (defined($itemcount{32638}) && $itemcount{32638} == 1) {
quest::say("Excellent! This is enough to make a fine pair of gloves.");
quest::exp(2500);
quest::summonitem(2010);
}
Using the plugins is another option depending on what you are trying to accomplish. If you are planning to use the plugins, make sure you have them in the correct place in your server directory.