Results 1 to 3 of 3

Thread: Trocar de armas

  1. #1
    Normal User
    Join Date
    Mar 2013
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    Trocar de armas

    Alguem sabe uma action pra tipo, quando aparece um ghost ele troca pra um fire axe ou fire sword por ex e quando vai mata os outros bixos volta a arma normal?

  2. #2
    Banned
    Join Date
    Jun 2012
    Location
    Ceará
    Posts
    2,114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    81
    Rep Power
    0
    Tenta ai:
    local wname = "bright sword"
    local ewname = "fire sword"

    if target.name == "ghost" then
    if itemcount(ewname) > 0 and itemcount(ewname, "weapon") == 0 then
    moveitems(ewname, "all", "weapon", 1)
    end elseif
    target.name ~= "ghost" then
    if itemcount(wname) > 0 and itemcount(wname, "weapon") == 0 then
    moveitems(wname, "all", "weapon", 1)
    end
    end
    end

  3. #3
    Normal User
    Join Date
    Mar 2013
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    vlw mano !!

Posting Permissions

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