EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   TakeMoneyfromPP question (https://www.eqemulator.org/forums/showthread.php?t=39290)

epilz 01-30-2015 04:57 PM

TakeMoneyfromPP question
 
I got this from Natedog for a Tradeskill bot, but how do I update the removal of plat on the client side. I tried adding updateclient=true but its not working correctly.

Code:

if($text=~/alchemy/i && $client->GetRawSkill(59) < 250 && $client->TakeMoneyFromPP(2500000)) {
                quest::setskill(59,250);
                quest::say("You are now trained in alchemy.");


Kingly_Krab 01-30-2015 05:36 PM

This should work:
Code:

$client->TakeMoneyFromPP(2500000, 1)

epilz 01-30-2015 10:16 PM

Quote:

Originally Posted by Kingly_Krab (Post 237303)
This should work:
Code:

$client->TakeMoneyFromPP(2500000, 1)

Thanks this worked!

Code:

if($text=~/alchemy/i && $client->GetRawSkill(59) < 250 && $client->TakeMoneyFromPP(2500000, 1))        {

Kingly_Krab 01-30-2015 10:36 PM

You're welcome, glad your issue is resolved.


All times are GMT -4. The time now is 06:25 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.