<event type="death" name="Reward" event="script" value="reward.lua"/>
AHAHAHH doesn't work mm i think teamviewer is only way now? isn't it?Type should be death.
Code:<event type="death" name="Reward" event="script" value="reward.lua"/>
<event type="death" name="Reward" event="script" value="reward.lua"/>
registerCreatureEvent(cid, "Reward")
function onDeath(cid, corpse, deathList)
if isPlayer(deathList[1]) then
local item = doAddContainerItem(corpse.uid, 5943, 1)
doItemSetAttribute(item, "description", "This is the heart of "..getPlayerName(cid).." killed at Level "..getPlayerLevel(cid).." by "..getPlayerName(deathList[1])..".")
doPlayerSendTextMessage(deathList[1], MESSAGE_STATUS_CONSOLE_ORANGE, "You killed " .. getCreatureName(cid) .. ".")
doSendMagicEffect(getPlayerPosition(deathList[1]), CONST_ME_MAGIC_BLUE)
end
return true
end
login.lua
Code:registerCreatureEvent(cid, "Reward")
yea restarted it and nothing i need you to connect with me on TVHow did you added it, did you restarted the server? Works fine for me (TFS 0.3.6).
i added it like he said but nothing -.-!!
Code:
registerCreatureEvent(cid, "Reward")
OMG FINALLY !!! the problem was that i didnt know where can i put registerCreatureEvent(cid, "Reward") i thought that i need to create a new .lua and write it on itin login.lua brother
search for this in login.lua
registerCreatureEvent(cid, "ReportBug")
and after it add this
registerCreatureEvent(cid, "Reward")