Results 1 to 3 of 3

Thread: Action request

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

    Action request

    Could someone help me with an action that changes weapons when is targeting a ghost? For example change from sov to fire sword and if not targeting change back to sov

  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
    PHP Code:
    local GHOST_WEAPON "fire sword"
    local NORMAL_WEAPON "magic sword"

    if (target.name == "Ghost") and (weapon == itemid(NORMAL_WEAPON)) then
        moveitems
    (GHOST_WEAPON,"all","weapon",1)
    elseif (
    target.name ~= "Ghost") and (weapon == itemid(GHOST_WEAPON)) then
        moveitems
    (NORMAL_WEAPON,"all","weapon",1)
    end 

  3. #3
    Normal User
    Join Date
    Oct 2012
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    thank u so much, i well test it

Posting Permissions

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