Signup Now
Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Free User
    Join Date
    Jul 2017
    Posts
    19
    Reputation
    10
    Rep Power
    0

    Ring equipper with conditions

    Hi,

    I need a script to wear ring with 2 conditions working together

    It should be something like when see two rats put ring or when you see 1 cave rat put ring or when you see 2 rats and 1 cave rat put ring on.

    Important for me is to make sure that it will works even if on screen i will have 5 cave rats and 2 rats or 1 cave rat and 1 rat.

    I found script to wear ring but it isnt enough for me. Please help me

    This is what i am using now:

    Code:
    init start
    -- Player Option
        local UsePlayerRing = false -- if true PlayerRing will be enable.
        local PlayerRing = 'Life Ring' -- ring name.
        local minAmountt = 2 -- Amount of player to use ring.
    
    -- Monster Ring Option
        local UseMonsterRing = true -- if true MonsterRing will be enable.
        local MonsterRing = 'energy ring' -- Ring name.
        local MonsterR = {'Water Elemental', 'Quara Mantassin Scout'} -- Monsters.
        local minAmount = 5 -- Amount of monster to use ring.
        local mAmount = 2 -- Amount of monster to take it off.
    
        -- DO NOT EDIT BELOW THIS LINE
        item = itemid(MonsterRing)
        item2 = itemid(PlayerRing)
    
    init end
    
    auto(100, 200)
    if $pzone then
        pausewalking(500)
        moveitems(item2, 0, "finger")
        waitping()
        moveitems(item, 0, "finger")
        waitping()
        pausewalking(0)
    else
    if UsePlayerRing and $finger.id ~= item2 and itemcount(item2) > 0 and paround(10) >= minAmountt and not $pzone then
        pausewalking(500)
        equipitem(item2, "finger")
        waitping()
        pausewalking(0)
    elseif UsePlayerRing and paround(10) < minAmountt then
        pausewalking(500)
        moveitems(item2, 0, "finger")
        waitping()
        pausewalking(0)
    end
    
    if UseMonsterRing and $finger.id ~= item and itemcount(item) > 0 and (maround(10, unpack(MonsterR)) >= minAmount) and not $pzone then
    if UsePlayerRing and paround(10) >= minAmountt then
    else
        pausewalking(500)
        equipitem(item, "finger")
        waitping()
        pausewalking(0)
    end
    elseif UseMonsterRing and $finger.id > 0 and (maround(8, unpack(MonsterR)) <= mAmount) then
        pausewalking(500)
        moveitems(item, 0, "finger")
        waitping()
        pausewalking(0)
    end
    end

  2. #2
    Free User
    Join Date
    Jul 2017
    Posts
    19
    Reputation
    10
    Rep Power
    0
    Bump!

  3. #3
    Free User kirro's Avatar
    Join Date
    Jul 2015
    Posts
    336
    Reputation
    121
    Rep Power
    19
    Your Explanation is really irritating in my opinion. Can you please give us a real example of what you Need so we understand you?

    For what Situation do you Need your ring to be equipped? you have 2 different Monsters that Need to be considered with different ranking? Or what are you on about





    Troubled Animals Quest [100+]
    ALL
    Feyrist Animals Surface [160+]
    RP
    Feyrist Silencers Underground X1 [180+]
    RP | EK
    Feyrist Silencers Underground X2 [200+]
    RP | EK
    Feyrist Silencers Surface [210+]
    RP | EK
    Rathleton Sewers [240+]
    RP
    Glooth Fairy [350+]
    ED/MS
    Hardcore Draken Walls [400+]
    EK

  4. #4
    Free User
    Join Date
    Jul 2017
    Posts
    19
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by kirro View Post
    Your Explanation is really irritating in my opinion. Can you please give us a real example of what you Need so we understand you?

    For what Situation do you Need your ring to be equipped? you have 2 different Monsters that Need to be considered with different ranking? Or what are you on about
    Im so sorry if my explanation wasnt precise. Now i will try to explain it as best as possible.
    I want to scrip to put ring on when see monster. The script what i'm using already has one problem that it is putting ring on when it see two monsters and it doesnt matter if it is 2 the same monsters or two different kinds of monsters. Of course it is putting rings on only when it see monsters that i put in variable.

    In practice im botting in carlin on coryms and i want to get script which will put ring on only if on screen will be Corym Vanguard ( one or more) or Corym Skirmisher (three or more). In that script he will put ring on even if on screen will be only one Corym Skirmisher and it is bad. Here you can only write when bot has to put ring on for one group of monsters. I need something more universal. I hope that i explained more in details and you can help me.
    Thank you so much

  5. #5
    Free User Cisco's Avatar
    Join Date
    Aug 2014
    Location
    Brazil
    Posts
    1,424
    Reputation
    119
    Rep Power
    23
    Quote Originally Posted by szkodnik View Post
    Im so sorry if my explanation wasnt precise. Now i will try to explain it as best as possible.
    I want to scrip to put ring on when see monster. The script what i'm using already has one problem that it is putting ring on when it see two monsters and it doesnt matter if it is 2 the same monsters or two different kinds of monsters. Of course it is putting rings on only when it see monsters that i put in variable.

    In practice im botting in carlin on coryms and i want to get script which will put ring on only if on screen will be Corym Vanguard ( one or more) or Corym Skirmisher (three or more). In that script he will put ring on even if on screen will be only one Corym Skirmisher and it is bad. Here you can only write when bot has to put ring on for one group of monsters. I need something more universal. I hope that i explained more in details and you can help me.
    Thank you so much
    I use it so in my script of corym venore.

    auto(800)

    local UseRing = true
    local Monsters = {"Corym Charlatan", "Corym Skirmisher", "Corym Vanguard"}
    local Distance = 10 --distance around char
    local NumberMonsters = 4 --equal or larger
    local RingName = "stealth ring"
    local RingBP = "green backpack"

    --========================================

    if $connected then
    if UseRing and (itemcount(RingName, RingBP) > 0) and (maroundreachable(Distance, unpack(Monsters)) >= NumberMonsters) then
    equipitem(ringname, 'finger')
    wait(300,500)
    elseif (not UseRing) or (UseRing and maroundreachable(Distance, unpack(Monsters)) < NumberMonsters) then
    unequipitem('finger', RingBP)
    wait(300,500)
    end
    end

  6. #6
    Free User
    Join Date
    Jul 2017
    Posts
    19
    Reputation
    10
    Rep Power
    0
    @Cisco Still it isnt what im looking for because in your script bot will put ring on when see 4 monsters or more. What if it will be 3vcorym vanguards? Character will die. So i need script which will put ring on when will see 1 corym vanguard or 3 coryms skirmisher. It would be great if script could consider one more condition if on screen 1 vanguard and 2 skirmisher put ring on.

  7. #7
    Free User Cisco's Avatar
    Join Date
    Aug 2014
    Location
    Brazil
    Posts
    1,424
    Reputation
    119
    Rep Power
    23
    Quote Originally Posted by szkodnik View Post
    @Cisco Still it isnt what im looking for because in your script bot will put ring on when see 4 monsters or more. What if it will be 3vcorym vanguards? Character will die. So i need script which will put ring on when will see 1 corym vanguard or 3 coryms skirmisher. It would be great if script could consider one more condition if on screen 1 vanguard and 2 skirmisher put ring on.
    test...

    auto(800)

    local UseRing = true
    local Monsters = {"Corym Charlatan", "Corym Skirmisher", "Corym Vanguard"}
    local Distance = 10 --distance around char
    local NumberMonsters = 4 --equal or larger
    local NumberVanguard = 3 --equal or larger
    local NumberSkirmisher = 4 --equal or larger
    local NumberCharlatan = 5 --equal or larger
    local RingName = "stealth ring"
    local RingBP = "green backpack"

    --========================================

    if $connected then
    if UseRing and (itemcount(RingName, RingBP) > 0) and
    (maroundreachable(Distance, "Corym Vanguard") >= NumberVanguard) or
    (maroundreachable(Distance, "Corym Skirmisher") >= NumberSkirmisher) or
    (maroundreachable(Distance, "Corym Charlatan") >= NumberCharlatan) or
    (maroundreachable(Distance, unpack(Monsters)) >= NumberMonsters) then
    equipitem(ringname, 'finger')
    wait(300,500)
    elseif (not UseRing) or (UseRing and
    (maroundreachable(Distance, "Corym Vanguard") < NumberVanguard) or
    (maroundreachable(Distance, "Corym Skirmisher") < NumberSkirmisher) or
    (maroundreachable(Distance, "Corym Charlatan") < NumberCharlatan) or
    (maroundreachable(Distance, unpack(Monsters)) < NumberMonsters)) then
    unequipitem('finger', RingBP)
    wait(300,500)
    end
    end

  8. #8
    Free User
    Join Date
    Jul 2017
    Posts
    19
    Reputation
    10
    Rep Power
    0
    @Cisco It doesn't work. I don't know why. Can you double check that script for me please?

  9. #9
    Free User Taylor's Avatar
    Join Date
    Feb 2014
    Location
    Brazil
    Posts
    38
    Reputation
    16
    Rep Power
    0
    Code:
    init start
    	local item = 'stealth ring' -- Can be a ring or an amulet
    	local itemInUseID = 3086
    	local EquipRing = tonumber(getuseroption('EquipRing'))
    	local monsters = {"Corym Charlatan", "Corym Skirmisher", "Corym Vanguard"}
    	local mainBp = getuseroption("mainBp")
    	-- DO NOT EDIT BELOW THIS LINE
    	item = itemid(item)
    	local slot, slotName = $neck, 'neck'
    	if itemname(item):lower():find('ring') then
    		slot, slotName = $finger, 'finger'
    	end
    init end 
    
    auto(500, 1000)
    if (slot.id ~= item) and (itemcount(item) > 0) and (maround(10, table.unpack(monsters)) >= EquipRing) then
    	equipitem(item, slotName)
    	waitping()
    elseif (slot.id == itemInUseID) and (maround(10, table.unpack(monsters)) < EquipRing) then
    	moveitems(slot.id, mainBp, slotName, 100)
    end

    and put on your setup...

    Code:
    		{
    			"type"        : "spinbox",
    			"name"        : "EquipRing",
    			"text"        : "Equip Ring",
    			"description" : "How many coryms bot use ring?",
    			"suffix"	  : " monsters",
    			"min"         : 1,
    			"max"         : 15,
    			"value"       : 4
    		}


    or if u dont use setup use this action:

    Code:
    init start
    	local item = 'stealth ring' 
    	local itemInUseID = 3086
    	local EquipRing = 3 --Monsters Count--
    	local monsters = {"Corym Charlatan", "Corym Skirmisher", "Corym Vanguard"}
    	local mainBp = "Name Backpack"
    	-- DO NOT EDIT BELOW THIS LINE
    	item = itemid(item)
    	local slot, slotName = $neck, 'neck'
    	if itemname(item):lower():find('ring') then
    		slot, slotName = $finger, 'finger'
    	end
    init end 
    
    auto(500, 1000)
    if (slot.id ~= item) and (itemcount(item) > 0) and (maround(10, table.unpack(monsters)) >= EquipRing) then
    	equipitem(item, slotName)
    	waitping()
    elseif (slot.id == itemInUseID) and (maround(10, table.unpack(monsters)) < EquipRing) then
    	moveitems(slot.id, mainBp, slotName, 100)
    end

  10. #10

 

 

Tags for this Thread

Posting Permissions

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