Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Need action

  1. #1
    Normal User serialbob's Avatar
    Join Date
    Jul 2012
    Location
    Goroma depot
    Posts
    183
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5

    Need action

    i already post that on script resquest but for a simple action i think its faster to get a answer here !

    I need couple of action :P

    i will use this action to raise magic level ...
    utana_vid
    PHP Code:
    if mp 500
    and cancast "utana vid" then
    cast 
    "utana vid"
    end 
    exura_vita
    PHP Code:
    if mp 1000
    and cancast "exura vita" then
    cast 
    "utana vid"
    end 
    First
    So , i have a backpack with mana potion on ground i wan my char to loot 600 GMP potion from it only when i my character dropped all the empty flask on floor .. before to do this i wan the bot to stop both action i will use to raise mlvl [exura_vita & utana_vid]

    Second!
    I wan my second request , i wan my character to drop all empty GMP only when all the 600GMP are used !

    Thanks to the one who will help me ill def. rep+ on this !!
    Sold 251 paladin to Edi - GOOD
    FOR SALE : 230 ~ EK sword 102 PVP

  2. #2
    iBot User Raph_'s Avatar
    Join Date
    Feb 2013
    Posts
    391
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    59
    Rep Power
    4
    Ok this is the setup:
    Code:
    bpMain = Self.Back().id
    bpSupply = "purple backpack" -- backpack with supplies on floor (must be all same colours)
    mpName = "great mana potion"
    mpToCarry = 600
    Now for take potions and drop flasks:
    Code:
    --[[ INIT START ]]--
    	local _FLASKS =  itemcount(283) + itemcount(284) + itemcount(285)
    --[[ INIT END ]]--
    
    if _FLASKS >= mpToCarry then
    	dropitems(283, 284, 285)
    end 
    
    if _FLASKS == 0 and itemcount(mpName, bpMain) == 0 then
    	if itemcount(mpName, bpSupply) > 0 then
    		while itemcount(mpName, bpMain) < mpToCarry or itemcount(mpName, bpSupply) > 0 do
    			moveitems(mpName, bpSupply, bpMain, 100)
    			wait(300, 600)
    		end
    	elseif itemcount(mpName, bpSupply) == 0 and itemcount(bpSupply, bpSupply) > 0 then
    		openitem(bpSupply, bpSupply)
    		wait(300, 600)
    	end
    end
    @edit: i'll take a look on that code when I get on college in some minutes.
    Last edited by Raph_; 04-18-2013 at 08:13 PM.

  3. #3
    Normal User serialbob's Avatar
    Join Date
    Jul 2012
    Location
    Goroma depot
    Posts
    183
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5
    i have this on Debug
    Code:
     LUA:DoAction:take-pots-drop-empty: - LuaInterface.LuaScriptException: [string "chunk"]:3: attempt to index global 'Self' (a nil value)
    i dont know what it mean so could not fix it myself xD
    a really big thanks Raph for helping me !
    Sold 251 paladin to Edi - GOOD
    FOR SALE : 230 ~ EK sword 102 PVP

  4. #4
    iBot User Raph_'s Avatar
    Join Date
    Feb 2013
    Posts
    391
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    59
    Rep Power
    4
    You don't have sirmate's library, please download it: http://www.tibiaibot.com/forum/showt...Library-v1-1-1

  5. #5
    Normal User serialbob's Avatar
    Join Date
    Jul 2012
    Location
    Goroma depot
    Posts
    183
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5
    thanks what i just think after i posted , so i downloaded it and put into library xD i had it before but im on new pc..
    But now in debug it don't say anything but still its not looting the potions. but it drop the empty one :P
    Last edited by serialbob; 04-18-2013 at 08:11 PM.
    Sold 251 paladin to Edi - GOOD
    FOR SALE : 230 ~ EK sword 102 PVP

  6. #6
    iBot User Raph_'s Avatar
    Join Date
    Feb 2013
    Posts
    391
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    59
    Rep Power
    4
    Check it again, please.

  7. #7
    Normal User serialbob's Avatar
    Join Date
    Jul 2012
    Location
    Goroma depot
    Posts
    183
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5
    i had a bp full of MP inside another BP full of MP inside nother one .
    when i was on first bp it was not working, i open up the bp and the other bp and now it work !
    Thanks allot Raph_ for your time and your help ! def. rep+
    Sold 251 paladin to Edi - GOOD
    FOR SALE : 230 ~ EK sword 102 PVP

  8. #8
    iBot User Raph_'s Avatar
    Join Date
    Feb 2013
    Posts
    391
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    59
    Rep Power
    4
    when I get home i'll test by myself and fix any bug, i don't have iBot here at college.

  9. #9
    Normal User serialbob's Avatar
    Join Date
    Jul 2012
    Location
    Goroma depot
    Posts
    183
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5
    im testing it right now ill tell you if there is something that don't work but for now its wonderfull !
    it will be really helpfull in the 2x if cip don't fuck everything with the fake patch !
    Sold 251 paladin to Edi - GOOD
    FOR SALE : 230 ~ EK sword 102 PVP

  10. #10
    Normal User serialbob's Avatar
    Join Date
    Jul 2012
    Location
    Goroma depot
    Posts
    183
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5
    i tried out the new version u made , new alway trying to refilling mana and alway writing ''you dont have enought capacity to carry that''
    its not dropping empty pots anymore so i ended with 900 empty flask in BP and only 300cap it was still trying to add 100mana :P
    take a look when u got time
    Sold 251 paladin to Edi - GOOD
    FOR SALE : 230 ~ EK sword 102 PVP

Posting Permissions

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