Thread: Tradeskill Bot
View Single Post
  #5  
Old 11-29-2014, 09:18 AM
Nibiuno
Hill Giant
 
Join Date: Mar 2010
Posts: 101
Default

Thanks, Ill update it with that. I need to go over all of the plugins and built in functions before diving right in to building these.

Im writing a time raid script for plane of time today so Ill probably ask more dumb questions by tomorrow.

Quote:
Originally Posted by NatedogEZ View Post
If you are allowing them to just buy for 5000plat through a saylink.. this could be the text to match.. would make your script much easier / shorter.




TakeMoneyFromPP is in Copper... and returns a True / False if you have enough money on PERSON (doesnt look in bank)

Will only train if they say "Train blacksmithing" and their skill is under 400 and they have 5000platinum

Code:
if ($text=~/train blacksmithing/i && $client->GetRawSkill(63) < 400 && $client->TakeMoneyFromPP(5000000)) { 
	quest::setskill(63,400);
	quest::say("You are now an expert at smithing.");
}

Just a suggestion.. if you have any questions you can PM me
Reply With Quote