Signup Now
Results 1 to 2 of 2
  1. #1
    Free User
    Join Date
    Jan 2017
    Posts
    1
    Reputation
    10
    Rep Power
    0

    Attempt to compare string with number

    error in Persistent script Spells Attack:
    [" if ($targeting or (getuseroption(..."]:Spells Attack:76 attempt to compare string with number

    Line 76: if ($targeting or (getuseroption("style") == "Hardcore" and Ue().MaxAmount >= 8)) and (($vocation == "sorcerer" and cooldown(getuseroption("UEType") <= cool_min)) or ($vocation == "druid" and cooldown("exevo gran mas frigo") <= cool_min)) and ((not getuseroption("finisher") and Ue().MaxAmount >= getuseroption("amountue")) or (getuseroption("finisher") and (Ue().LowHp >= getuseroption("amountue") or (Ue().LowHp + Ue().MidHp >= 4) or (Ue().LowHp >= 2 and Ue().MaxAmount >= 3 and Ue().MaxAmount <= 4)))) and ((PlayersAround() == 0 and $timems - $playerlastseen > 8000) or not getuseroption("pvp")) then
    Line 77: pausewalking(500)


    What is wrong?

  2. #2
    Moderator Josh's Avatar
    Join Date
    Dec 2013
    Posts
    1,393
    Reputation
    183
    Rep Power
    25
    Something in that if statement on line 76 of your "Spells Attack" persistent hotkey is trying to compare a variable which contains a string with a number. Is this your own script, or did you buy it from someone or download it from the forum somewhere? If you bought or got it from the forum, you should contact the scripter for support, otherwise it's gonna be very difficult to work out what's going wrong unless you fully understand your code.
    Interested in software development and/or programming for Tibia?
    Check out the new Tibia Programming Forums (TibiaPF) by clicking the image below.

    Looking for a bot for the MMORPG, Medivia?
    Check out MediviaBotter, a powerful, injected bot by clicking the link below.


 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •