Results 1 to 9 of 9

Thread: equip stealth ring if X monsters on screen

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

    equip stealth ring if X monsters on screen

    equip stealth ring if 6 monsters on screen and take of if less then 3

    someone can fix it ;d?

    thx for help

  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 maround(7) >= 6 then moveitems("stealth ring""all""ring"1) elseif maround(7) <= 3 then moveitems("stealth ring""ring"MainBP1end 
    Try it
    http://www.tibiaibot.com/forum/showthread.php?16907-FREE-Scripts-3173654&highlight=3173654+free+scripts

  3. #3
    Normal User
    Join Date
    Jan 2013
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    Quote Originally Posted by 3173654 View Post
    PHP Code:
    if maround(7) >= 6 then moveitems("stealth ring""all""ring"1) elseif maround(7) <= 3 then moveitems("stealth ring""ring"MainBP1end 
    Try it
    its working but it wont put back the stealth ring into mainbp (backpack of holding)
    i can see that its trying to put it into backpack but it dosnt :S
    Last edited by gaostic; 02-18-2013 at 08:08 AM.

  4. #4
    Normal User Kapten's Avatar
    Join Date
    Nov 2012
    Location
    Helsingborg, Antica
    Posts
    214
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    7
    Rep Power
    0
    instead of MainBP, just write "backpack of holding" ?

  5. #5
    Normal User
    Join Date
    Jan 2013
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    Quote Originally Posted by Kapten View Post
    instead of MainBP, just write "backpack of holding" ?
    tried it, didnt work

    maybe i should say that i got like 4 stealthrings in bp becouse depositer dont take them from dp. maybe the script should say something like "move ring slot to backpack of holding" but i dont know bcus i dont know the codes xd

  6. #6
    Normal User
    Join Date
    Jan 2013
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    help pls

  7. #7
    iBot User
    Join Date
    Mar 2012
    Posts
    187
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    24
    Rep Power
    5
    put a crystal ring on ur bp and use this:

    PHP Code:
    if maround(7"Monster1""Monster2""etc") >= 6 then
        moveitems
    ("stealth ring""ring")
    elseif 
    maround(7"Monster1""Monster2""etc") <= 3 then
        moveitems
    ("crystal ring""ring")
    end 

    PS: you can use just "maround(7)" if you want to consider all monsters
    Usefull Links:
    • Nothing at the moment


    Did i help? Rep plz. /~/ Ajudei? Rep plz.
    Give me a Rep

    Contact: rafaneo399@hotmail.com
    Twitter: @Rafa399_Scripts

  8. #8
    iBot User
    Join Date
    Oct 2012
    Posts
    255
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    31
    Rep Power
    5
    Quote Originally Posted by gaostic View Post
    its working but it wont put back the stealth ring into mainbp (backpack of holding)
    i can see that its trying to put it into backpack but it dosnt :S
    you must write the MainBP, like it is in your setup (capital letters etc).
    or you can change to:

    PHP Code:
    local MainBP 'Backpack of Holding"

    if maround(7) >= 6 then moveitems("stealth ring", "all", "ring", 1) 
    elseif maround(7) <= 3 then moveitems("stealth ring", "ring", MainBP, 1)
     end 

  9. #9
    iBot User Salahadi235's Avatar
    Join Date
    Aug 2012
    Location
    Sweden
    Posts
    139
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    i need for this check ring and if no ring action to take it from depo

Posting Permissions

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