View Single Post
  #3  
Old 04-02-2018, 05:20 AM
c0ncrete's Avatar
c0ncrete
Dragon
 
Join Date: Dec 2009
Posts: 719
Default

The GetSkill method has to be called from an instance of an object derived from the Mob class. Your use of $GetSkill looks like it's assuming coderefs that I wrote in another script blurb (AutoTrain). The reason it's not working is that you don't have $GetSkill defined anywhere (that I can see in what you pasted anyways). You'll either need to pull that in from the script you got it from or use this:
Code:
$client->GetSkill($skill)
Additionally, you have a typo in one of your undefined methods. Then there's that last if statement at the end of the if/elsif chain...

As for suggestions? Something about less coffee comes to mind...
__________________
I muck about @ The Forge.
say(rand 99>49?'try '.('0x'.join '',map{unpack 'H*',chr rand 256}1..2):'incoherent nonsense')while our $Noport=1;
Reply With Quote