Hello Otland! well my idea is a script when you kill a person you get 100 gps.. but i think is not working
Thank you so much i will rep++ you if you help me
Code:
function onKill(cid, target)
if isPlayer(target) == TRUE then
if getPlayerIp(cid) ~= getPlayerIp(target) then
loot = 2152
item = doPlayerAddItem(cid,loot,1)
elseif getPlayerName(cid) == getPlayerName(target) then
doPlayerAddItem(cid,loot,1)
end
return TRUE
end
Code:
[02/02/2011 15:08:48] [Error - LuaScriptInterface::loadFile] data/creaturescripts/scripts/fragreward.lua:11: 'end' expected (to close 'function' at line 1) near '<eof>'
[02/02/2011 15:08:49] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/fragreward.lua)
[02/02/2011 15:08:49] data/creaturescripts/scripts/fragreward.lua:11: 'end' expected (to close 'function' at line 1) near '<eof>'
Code:
<event type="kill" name="FragReward" event="script" value="fragreward.lua"/>
Thank you so much i will rep++ you if you help me