Results 1 to 2 of 2

Thread: Ajuda para usar Piggy Bank

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

    Ajuda para usar Piggy Bank

    Ajuda nume ação para quando caisse um piggy bank de loot eu queria que ele usasse o piggy bank depois que quebresse jogasse no chão Ou melhor para quando cair um piggy bank usar no corpo e so pegar o dinheiro.

    Obrigado
    Last edited by ricacun; 09-11-2014 at 07:57 PM.

  2. #2
    iBot User dragonjapa's Avatar
    Join Date
    Mar 2012
    Location
    Itaporã, MS, Brazil
    Posts
    60
    Mentioned
    33 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    50 Post(s)
    Reputation
    71
    Rep Power
    5
    Tente isto:

    Lua Code:
     
    local PIGGYnew = "Piggy Bank" 
    local PIGGYnewID = itemid(PIGGYnew) 
    local PIGGYbroken = "Broken Piggy Bank" 
    local PIGGYbrokenID = itemid(PIGGYbroken) 
     
    if (maround(8) == 0) then 
    if (itemcount(PIGGYnewID) > 0) then 
    useitem(PIGGYnew, "all") 
    end 
    elseif (itemcount(PIGGYbrokenID) > 0) then 
    moveitems(PIGGYbroken, "All", "ground", 1) 
    end 
    end

Tags for this Thread

Posting Permissions

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