Results 1 to 4 of 4

Thread: problema para comprar royal spears

  1. #1
    Normal User
    Join Date
    Aug 2012
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    problema para comprar royal spears

    Quando o char vai sacar dinheiro no banco, ele nao reconhece as spears e sempre compra ate a capacidade ficar cheia.

    Gostaria que ele comprasse 15 royal spears... Alguem sabe como eu faço?

  2. #2
    Banned
    Join Date
    Jul 2012
    Location
    Santa Cruz do Sul - RS
    Posts
    867
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    21
    Rep Power
    0
    Retirar dinheiro,

    Code:
    local SpearMax = 15 -- quantidade que vai comprar
    local SpearMoney = positive(SpearMax - weaponamount) * SpearPrice
    local All = SpearMoney
    
    depositall()
    npcsay("withdraw "..All) wait(1000)
    npcsay("yes") wait(1000)
    e pra comprar

    Code:
    local SpearMax = 15
    local SpearToBuy = SpearMax - weaponamount
    local SpearType = 'royal spear'
    
    opentrade()
    buyitemsupto(SpearType, SpearToBuy) wait(1000)
    npcsay("bye") wait(600)

  3. #3
    Normal User Danzudo's Avatar
    Join Date
    Mar 2012
    Posts
    1,001
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    54
    Rep Power
    7
    Qualquer outra divida em relação a scripts pra paladinos, cheque esse tutorial ou mande pm.
    http://www.tibiaibot.com/forum/showt...-%28Actions%29

  4. #4
    Banned
    Join Date
    Jul 2012
    Location
    Santa Cruz do Sul - RS
    Posts
    867
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    21
    Rep Power
    0
    Quote Originally Posted by Danzudo View Post
    Qualquer outra divida em relação a scripts pra paladinos, cheque esse tutorial ou mande pm.
    http://www.tibiaibot.com/forum/showt...-%28Actions%29
    Peguei as actions desse tutorial, realmente muito bom, apenas dei uma ''mechidinha'' pra ficar mais fácil pra ele, haha, abraço

Posting Permissions

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