Shawak
Intermediate OT User
I said TFS 0.3.4 Only!I have the same problem as arheon...
I'm using the server alissow 8.50
plx help
I said TFS 0.3.4 Only!I have the same problem as arheon...
I'm using the server alissow 8.50
plx help
-- Credits to Shawak
function onKill(cid, target)
local cidpos = getPlayerPosition(target)
loot = 2157
item = doPlayerAddItem(cid,loot,1)
if(isPlayer(target) == TRUE) then
doSetItemSpecialDescription(item,"This is the nugget awarded to "..getPlayerName(cid).." for killing "..getPlayerName(target).." at Level "..getPlayerLevel(target)..".")
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You Killed "..getPlayerName(target).. ".")
doSendMagicEffect(cidpos,12)
end
setItemName(item, "Golden Nugget")
return TRUE
end
<event type="kill" name="Reward" script="reward.lua"/>
function onDeath(cid, corpse, lastHitKiller, mostDamageKiller)
if(isPlayer(lastHitKiller) == TRUE) then
local pos = getPlayerPosition(lastHitKiller)
local item = doPlayerAddItem(lastHitKiller,5943,1)
doSetItemSpecialDescription(item,"This is the heart of "..getPlayerName(cid).." killed at Level "..getPlayerLevel(cid).." by "..getPlayerName(lastHitKiller)..".")
doSendMagicEffect(pos,12)
end
return TRUE
end
--Credits to Shawak
function onKill(cid, target)
local cidpos = getPlayerPosition(cid)
if isPlayer(target) then
local nugget = doPlayerAddItem(cid, 2157, 1)
doSetItemSpecialDescription(nugget, "This is the nugget awarded to " .. getCreatureName(cid) .. " for killing " .. getCreatureName(target) .. " at Level " .. getPlayerLevel(target) .. ".")
doSendMagicEffect(cidpos,12)
end
return true
end