Results 1 to 5 of 5

Thread: Help with my action (Change Gold for OTServ)

  1. #1
    iBot User
    Join Date
    May 2012
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    11
    Rep Power
    5

    Help with my action (Change Gold for OTServ)

    Hello guys,

    Im creating a simple action to change gold just using the gold coin,
    but i got a simple problem, when u try to moveitems("gold coin", backpack, 100)
    the iBot, moves every gold coin from my backpack not just 100 pieces, then i made this

    PHP Code:
    while itemcount("gold coin""blue backpack") >= 100 and maround(1) == do
    local x itemcount("gold coin")
    moveitems("gold coin""golden backpack"100)
    100
    end

    if itemcount("gold coin""golden backpack") > 100 then
    local xz 
    itemcount("gold coin""golden backpack")
    xz xz 100
    moveitems
    ("gold coin""blue backpack"xz)
    useitem("gold coin""golden backpack")
    end 
    its working but,
    how can i do this smooth? or simple move 100 pieces of gold coin for that backpack and use :P

    any ideas are welcome thanks ibot community

  2. #2
    iBot User 3173654's Avatar
    Join Date
    Aug 2012
    Posts
    1,393
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    28 Post(s)
    Reputation
    202
    Rep Power
    9
    PHP Code:
    if itemcount("gold coin") >= 100 then useitem("gold coin""all") elseif itemcount("platinum coin") >= 100 then useitem("platinum coin""all"end 
    http://www.tibiaibot.com/forum/showthread.php?16907-FREE-Scripts-3173654&highlight=3173654+free+scripts

  3. #3
    iBot User
    Join Date
    May 2012
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    11
    Rep Power
    5
    Quote Originally Posted by 3173654 View Post
    PHP Code:
    if itemcount("gold coin") >= 100 then useitem("gold coin""all") elseif itemcount("platinum coin") >= 100 then useitem("platinum coin""all"end 
    the problem with this he trys to use gold for example 18 gold coin and get you cannot use that item :S
    not only the 100 gold coins i allready tryed it haha

  4. #4
    Normal User
    Join Date
    Jan 2013
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    BUMP Need this aswell

  5. #5
    Normal User
    Join Date
    Jan 2013
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    bump123456

Posting Permissions

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