Results 1 to 4 of 4

Thread: if atking ghost swap to fire sword

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

    if atking ghost swap to fire sword

    if someone could make this please id appreciate it very much

  2. #2
    Banned
    Join Date
    Sep 2012
    Location
    Poland
    Posts
    242
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    18
    Rep Power
    0
    Action:

    PHP Code:
    local iWeapon = { default = Atkallmonsterselemental Atkghosts }
    local iTarget "Ghost"

    if target.name == iTarget then
      
    if weapon ~= itemid(iWeapon.elementalthen
        wait
    (500)
        
    moveitems(iWeapon.elemental"all""weapon"1)
        
    wait(1000)
        
    end
    else
      if 
    weapon ~= itemid(iWeapon.default) then
        wait
    (500)
        
    moveitems(iWeapon.default, "all""weapon"1)
        
    wait(1000)
          
    end
    end 
    Also add to your setup:

    PHP Code:
    -- Ghost Setup:
    Atkallmonsters 'Magic Sword' -- Main sword
    Atkghosts 
    'fire sword' --Second weapon 

  3. #3
    Normal User
    Join Date
    Aug 2013
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    so i write like this?


    local iWeapon = { default = Atkallmonsters, elemental = Atkghosts }
    local iTarget = "Ghost"

    if target.name == iTarget then
    if fire axe ~= itemid(iWeapon.elemental) then
    wait(500)
    moveitems(iWeapon.elemental, "all", "hellforged axe", 1)
    wait(1000)
    end
    else
    if hellforged axe ~= itemid(iWeapon.default) then
    wait(500)
    moveitems(iWeapon.default, "all", "fire axe", 1)
    wait(1000)
    end
    end
    ¨

    is that correct?

  4. #4
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    No... not quite.

    Here is the one I wrote:

    Shouldnt need to change anything

    PHP Code:
    if target.name == "Ghost" or target.name == "White Shade" or target.name == "Tarnished Spirit" then

    if  weapon ~= itemid("fire axe"then
    moveitems
    ("fire axe""all""weapon"1)
    end

    else

    if 
    weapon ~= itemid("hellforged axe"then
    moveitems
    ("hellforged axe""all""weapon"1)
    end

    end 
    Last edited by pink_panther; 08-19-2013 at 11:25 PM.

Posting Permissions

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