daily pastebin goal
29%
SHARE
TWEET

Untitled

a guest May 16th, 2018 106 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. data/creaturescript/script
  2. kill.lua
  3. function onKill(cid, target, lastHit)
  4.         if isPlayer(cid) then
  5. local v = { killer_name = getCreatureName(deathList[1]), killer_level = getPlayerLevel(deathList[1]), target_name = getCreatureName(cid), target_level = getPlayerLevel(cid) }
  6. local reward = doAddContainerItem(corpse.uid, 5805, 1)
  7. doItemSetAttribute(reward, "description", "Aca pongo la descripcion del trofeo")
  8. doItemSetAttribute(reward, "name"," " .. GetCreatureName(cid).. "'s trofeo")
  9.         end
  10.     return true
  11. end
  12.  
  13. creaturescript.xml
  14. <event type="death" name="Reward" event="script" value="reward.lua"/>
  15.  
  16. Agrega esto en creaturescript.xml
  17. registerCreatureEvent(cid, "Reward")
  18.  
  19. Aqui cambias el item
  20. doAddContainerItem(corpse.uid, 5805, 1)
RAW Paste Data
Top