Can an NPC return plat? For example, when I give the following NPC 10 platinum, but I don't meet the "Ranger" or >=20, he tells me that he is sorry and that he can't help me, but he doesn't give me back my money.
Code:
sub EVENT_ITEM
{
if($platinum == 10)
{
if ($class eq "Ranger" && $ulevel >= 20)
{
quest::say ("Good, stand still while I perform this task.");
quest::scribespells(20);
}
else
{
quest::say ("I am sorry $name, I can't help you.");
}
}
}