In all my quests i add similar code like that to a seperate sub, that way if the mob is involved in quests, you can use the effect several times without having to retype it.
e.g
Code:
sub EVENT_ITEM
{
if($itemcount {xx} && $itemcount {xxxx} == 1)
{
quest::say("Thanks for the stuff i needed $name.");
}
else
{
NoNeed();
}
if($itemcount {xx} && $itemcount {xxxx} == 1)
{
quest::say('thanks for this name);
}
else
{
NoNeed();
}
}
sub NoNeed
{
if($item1 != "")
{
quest::summonitem($item1,0);
}
if($item2 != "")
{
quest::summonitem($item2,0);
}
if($item3 != "")
{
quest::summonitem($item3,0);
}
if($item4 != "")
{
quest::summonitem($item4,0);
}
if($platnium != 0 || $gold != 0 || $silver != 0 || $copper != 0)
{
quest::givecash($platnium, $gold,$silver,$copper);
}
You Could also just make the second if an elsif, that way you only need one call of the NoNeed. but this was just a simple example.
__________________
Mess with the Jews, and we will take all your money
Grunties Rule
And with that... I end
Any Other Questions, please refer to the Following:
http://iliilllli1.netfirms.com