Results 1 to 3 of 3

Thread: Life ring + Anty box + E ring

  1. #1
    iBot User sto1p's Avatar
    Join Date
    Feb 2012
    Posts
    483
    Mentioned
    32 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    120 Post(s)
    Reputation
    31
    Rep Power
    5

    Life ring + Anty box + E ring

    Hello can make 3 actions on 1 ?
    if mppc < 90 and itemcount("life ring") > 0 and ring ~= 3089 and ring ~= 3088 and not pzone then
    moveitems("life ring", "all", "ring", 1)
    elseif (mppc >= 97 or pzone) and ring == 3089 then
    moveitems(3089, "ring", "all", 1)
    end
    +
    if (maround(5, "Medusa","Serpent Spawn") >= 5) then
    if (ring == 0) then
    moveitems("energy ring","all","ring",1)
    end
    else
    if (ring == 3088) then
    moveitems(3088,"ring","all",1)
    end
    end
    +
    local xplayers = 2
    local ringInUse = 3051 -- put correct id
    local ringID = "Energy Ring"
    local mainBP = "beach backpack"

    if paround(7, false) >= xplayers then
    if ring ~= ringInUse then
    moveitems(ringID, "all", "ring", 1)
    wait(500,900)
    end
    elseif paround(7, false) == 0 then
    if ring == ringInUse then
    moveitems(ring, "ring", 0, 1)
    wait(500,900)
    end
    end

  2. #2
    Moderator Drakke's Avatar
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,898
    Mentioned
    216 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    390 Post(s)
    Reputation
    366
    Rep Power
    10
    Code:
    local xplayers = 2
    local xmonsters = 5
    local ringname = 'life ring'
    local ringname2 = 'energy ring'
    local considermonsters = {'Medusa', 'Serpent Spawn'}
    
    if paround(7, false) < xplayer and maround(5, unpack(considermonsters)) < xmonsters then
    if not pzone and mppc < 90 and ring ~= 3052 then
    moveitems(ringname, 'all', 'ring', 1)
    elseif (mppc >= 97 or pzone) and ring == 3052 then
    moveitems(ringname, 'ring', 'all', 1)
    end
    end
    
    if paround(7, false) >= xplayer or maround(5, unpack(considermonsters)) >= xmonsters then
    if ring ~= 3051 then
    moveitem(ring, 'ring', 'all', 1)
    else
    moveitem(ringname2, 'all', 'ring', 1)
    end
    end
    @sto1p
    Im very sick atm and cant think straight but you can try it
    Last edited by Drakke; 06-21-2014 at 02:54 PM.

  3. #3
    Normal User RafiXWPT's Avatar
    Join Date
    Jun 2012
    Location
    (Poland) http://rafixwptscripts.com
    Posts
    1,602
    Mentioned
    31 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    128 Post(s)
    Reputation
    128
    Rep Power
    9
    That should be better
    Lua Code:
    local xplayers = 2
    local usedEnergyRing = 3051
     
    if paround(7, false) >= xplayers or maround(5, "Medusa", "Serpent Spawn") >= 5 then
    	if ring ~= usedEnergyRing then
    	moveitems("energy ring", "all", "ring", 1)
    	wait(500,900)
    	end
    elseif paround(7, false) < xplayers and maround(5, "Medusa", "Serpent Spawn") < 5 then
    	if mppc < 90 and itemcount("life ring") > 0 and ring ~= 3089 and ring ~= 3088 and not pzone then
    	moveitems("life ring", "all", "ring", 1)
    	elseif (mppc >= 97 or pzone) and ring == 3089 then
    	moveitems(3089, "ring", "all", 1)
    	end
    end

Posting Permissions

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