Hello i have been looking for a script that makes my players get money when they advances to a special level, but i cant get any of the ones on the forum to work on my server...
if this is to any help so am i using TFS 0.3.6
this is my current script:
it is located in: data\creaturescripts\scripts\reward.xml
and i have registrated it in: data\creaturescripts.xml with this line:
please can some one help me get this to work? (A)
if this is to any help so am i using TFS 0.3.6
this is my current script:
PHP:
local config = {
levelReach = 35,
item = 2160,
count = 1
}
function onAdvance(cid, skill, oldLevel, newLevel)
if(skill == SKILL__LEVEL and newLevel >= config.levelReach and getPlayerStorageValue(cid, 100000) == -1) then
setPlayerStorageValue(cid, 100000, 1)
doPlayerAddItem(cid, config.item, config.count)
end
return TRUE
end
it is located in: data\creaturescripts\scripts\reward.xml
and i have registrated it in: data\creaturescripts.xml with this line:
PHP:
<event type="advance" name="reward" event="script" value="reward.lua"/>
please can some one help me get this to work? (A)