Signup Now
Results 1 to 3 of 3
  1. #1
    Free User
    Join Date
    Aug 2014
    Posts
    11
    Reputation
    10
    Rep Power
    0

    How to use .learned attribute

    https://www.tibiawindbot.com/docs.ht...llinfo-learned

    I want to know which spells my character has learned, I tried using it with different variations but I've had only errors in the console.

    What is the proper usage ?

    For example, for Bruise Bane spell. If I want to know if I can cast " Bruise Bane " aka " exura infir ico ", how can I do that ?

    if (bruise bane.learned) then
    say("I can cast it !")
    else
    say("I can't cast it! Duh")
    end

    Thanks in advance

  2. #2
    Moderator Josh's Avatar
    Join Date
    Dec 2013
    Posts
    1,395
    Reputation
    183
    Rep Power
    24
    Warning: this feature is only available in Tibia 11. For more information on Tibia 11 see this thread.
    Just to be sure, you need to be using WindBot beta for Tibia 11 to use this function.

    spellInfo = spellinfo("bruise bane")

    if (spellInfo.learned) then
    print("I have learned it")
    else
    print("I have not learned it")
    end
    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.


  3. #3
    Free User
    Join Date
    Aug 2014
    Posts
    11
    Reputation
    10
    Rep Power
    0
    Thanks, I were having a bad time trying to figure it out by myself! I can confirm that it works.

    Have a nice day

 

 

Posting Permissions

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