Return Plat
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 |
You want something like:
$client->AddMoneyToPP(0,0,0,10,true); I think on the else statement... Maybe false, but most likely true. |
Here is a slightly modified script that I use for adding training points to players in case they used all of them and forgot to train something simple like meditate lol. This shows how to return money easy enough. I am sure you could add in $copper, $gold, and $silver in there as well if you wanted to be sure to return any form of money.
Code:
sub EVENT_ITEM { |
All times are GMT -4. The time now is 02:03 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.