Everyone who has never used our Bots before, can test each one for 2 days without any limitation.
The trial is given automatically when you login on the Bot, but in some cases it wouldn't work (security reasons).
If this happens, send me a private message and i will be checking the failed trials manually and adding it for those who didn't get it.
We are looking for resellers who may accept payment methods different from ours, including classictibia's cash, realesta's cash, mastercores' cash, etc. Interested? Click here at anytime.



Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Check Magic Level
#1
I did a magic level check, for example if the magic level is greater than 20 it will stop such a label, if not it will go to that, but it is not checking the magic level but the character's level, what could be wrong?




if mlevel() > 15 then
    gotolabel('LABEL A')
else
    gotolabel('LABEL B')
end
Reply

#2
Hello.

I just found out there's a small bug on functions "mlevel()" and mlevelpc(), those are switched.
mlevel() is returning magic level percent and mlevelpc() is returning magic level value.

So use this way:
if mlevelpc() > 15 then
    gotolabel('LABEL A')
else
    gotolabel('LABEL B')
end
Reply

#3
|Only Registered members can see download links. | Click here to buy subscription or here to register.
Thanks, I knew something was wrong.

Thank you very much for your attention.
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016