Quote:
Originally Posted by moydock
Yeah that would make 1-3 plat drop, I want like 100-300 copper to drop. Do you know how i could get that "quest::SetCash();" working? I think that might do it. I would just make it ondeath and it would put the cash on the npc's corpse, right?
|
Oh, sorry, I wasn't thinking straight.
You just want copper to drop, right?
Yeah you're gonna need to use a quest I think heh. There was a way without quests, I swear there was.
Let me take a look at the quest commands.
EDIT: $corpse->SetCash(in_copper, in_silver, in_gold, in_platinum)
So it would be...
Code:
sub EVENT_DEATH
my $cash = int(rand(300)+100);
{
$corpse->SetCash($cash,0,0,0);
}
And you'd have to have a random amount of cash, so you'd use a random integer between 100 and 300 with the $cash variable.
Should work in theory.