Signup Now
Results 1 to 8 of 8

Thread: @energy ring

  1. #1
    Free User Katnis's Avatar
    Join Date
    Jan 2014
    Posts
    510
    Reputation
    84
    Rep Power
    22

    @energy ring

    there is probably a energy ring action working 100% flawless but so far i couldnt find one

    so basicly thats what i need.
    I am hunting demons and enemys lure very often on me i need a action who equips energy rimg if 2 or more demons are onscreen and who takes it off when there is 1 or less on screen. all the actions i tryd to far will only equip but not put it back in main bp

  2. #2
    Wind Tester
    Join Date
    Dec 2013
    Location
    Warsaw, Poland
    Posts
    2,579
    Reputation
    149
    Rep Power
    27
    @Katnis Wrong section, use REQUEST BOARD next time.
    Try this.
    init start
    local item = 'energy ring' -- Can be a ring or an amulet
    local MONSTERS = {"Demon"}

    -- 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(100, 200)
    if slot.id ~= item and itemcount(item) > 0 and maround(unpack(MONSTERS)) >= 2 then
    equipitem(item, slotName)
    waitping()
    else if maround(unpack(MONSTERS)) <= 1 and slot.id ~= 0 then
    moveitems(slot.id, 0, "finger")
    waitping()
    end

  3. #3
    Free User Katnis's Avatar
    Join Date
    Jan 2014
    Posts
    510
    Reputation
    84
    Rep Power
    22
    damn its like the 1000 time i posted in wrong board

    thanks for the fast answer il ltry it

  4. #4
    Free User Katnis's Avatar
    Join Date
    Jan 2014
    Posts
    510
    Reputation
    84
    Rep Power
    22
    Quote Originally Posted by Imba View Post
    @Katnis Wrong section, use REQUEST BOARD next time.
    Try this.
    init start
    local item = 'energy ring' -- Can be a ring or an amulet
    local MONSTERS = {"Demon"}

    -- 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(100, 200)
    if slot.id ~= item and itemcount(item) > 0 and maround(unpack(MONSTERS)) >= 2 then
    equipitem(item, slotName)
    waitping()
    else if maround(unpack(MONSTERS)) <= 1 and slot.id ~= 0 then
    moveitems(slot.id, 0, "finger")
    waitping()
    end
    18:51:16 error in Persistent script NewPersistentScript3:
    ["end"]:NewPersistentScript3:21: 'end' expected (to close 'function' at line 11) near '<eof>'

    damn

  5. #5
    Wind Tester
    Join Date
    Dec 2013
    Location
    Warsaw, Poland
    Posts
    2,579
    Reputation
    149
    Rep Power
    27
    This works @Katnis

    init start
    local item = 'energy ring' -- Can be a ring or an amulet
    local MONSTERS = {"Tortoise", "Serpent Spawn"}
    local mToEquip = 2
    local mToUnequip = 1

    -- 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(100, 200)
    if slot.id ~= item and itemcount(item) > 0 and maround(10, unpack(MONSTERS)) >= mToEquip then
    equipitem(item, slotName)
    waitping()
    elseif maround(10, unpack(MONSTERS)) <= mToUnequip and slot.id ~= 0 then
    moveitems(slot.id, 0, "finger")
    waitping()
    end
    Last edited by Imba; 04-14-2014 at 05:11 PM.

  6. #6
    Moderator BUgWT's Avatar
    Join Date
    Dec 2013
    Location
    www.bugwt.com
    Posts
    546
    Reputation
    72
    Rep Power
    22
    @Imba

    a running energy ring is different than a unrunning(not equiped) energy ring.

    The ID for equipped energy ring is:3088


    LATEST SCRIPTS SKYPE
    Got a Question? Add me on Skype!
    bugwt.support

    This image is hosted on a possibly dangerous website (http://mystatus.skype.com/smallclassic/bugwt.support). Please consider reuploading it on Imgur.com.


  7. #7
    Free User Katnis's Avatar
    Join Date
    Jan 2014
    Posts
    510
    Reputation
    84
    Rep Power
    22
    second script works flawless ! thanks

  8. #8
    Wind Tester
    Join Date
    Dec 2013
    Location
    Warsaw, Poland
    Posts
    2,579
    Reputation
    149
    Rep Power
    27
    @BUgWT I dont need used ring id for this (ofcourse if there is only one kind of ring in use)

 

 

Posting Permissions

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