Results 1 to 5 of 5

Thread: Spears + Serpent Sword

  1. #1
    Normal User
    Join Date
    Oct 2012
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Spears + Serpent Sword

    If no spears - wear serpent sword,
    if X spears collected in backpack - wear spears.

    u know what i mean?

  2. #2
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    Test this, I'm really tired right now so I'm not sure if it will work xd
    PHP Code:
    CONFIG CONFIG or {
        
    WEAPON "serpent sword",
        
    DISTANCE "spear",
        
        
    DISTANCE_MIN 3, -- minimum spears in bp to switch from weapon
    }

    if (
    weapon == itemid(CONFIG.WEAPON)) and (itemcount(CONFIG.DISTANCE) >= CONFIG.DISTANCE_MINthen
        moveitems
    (CONFIG.DISTANCE,"all","weapon",100)
    elseif (
    weapon == 0) and (itemcount(CONFIG.DISTANCE) < CONFIG.DISTANCE_MINthen
        moveitems
    (CONFIG.WEAPON,"all","weapon",1)
    elseif (
    weapon == 0) and (itemcount(CONFIG.DISTANCE) >= CONFIG.DISTANCE_MINthen
        moveitems
    (CONFIG.DISTANCE,"all","weapon",100)
    elseif (
    weapon == itemid(CONFIG.DISTANCE)) and (itemcount(CONFIG.DISTANCE) > 0then
        moveitems
    (CONFIG.DISTANCE,"all","weapon",100)
    end 

  3. #3
    Normal User
    Join Date
    Aug 2012
    Posts
    122
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    will this script work with royal spears and a fire sword?? say if i run out of royals before i leave the cave it will switch to a fire sword untill more spears are in my bp from when i buy them?

  4. #4
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    Yes it should work

  5. #5
    Normal User
    Join Date
    Apr 2012
    Posts
    59
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    10 Post(s)
    Reputation
    11
    Rep Power
    5
    don't working anymore??
    tried with small stones

Posting Permissions

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