GM Denniz
Website- Designer- Mapper
This Work trust me
My Friends Script
1 STEP. Go To creaturescripts/scripts/
Create 1 File topfrags.php
2 STEP. Go now in creaturescripts/scripts/login.lua add
3 STEP. Go now in creaturescripts.xml and add
My Friends Script
1 STEP. Go To creaturescripts/scripts/
Create 1 File topfrags.php
Lua:
function onKill(cid, target, lastHit)
if isPlayer(target) then
db.executeQuery("UPDATE `players` SET `frags` = `frags` + 1 WHERE `id` = " .. getPlayerGUID(cid) .. ";")
end
return true
end
2 STEP. Go now in creaturescripts/scripts/login.lua add
Lua:
registerCreatureEvent(cid, "TopFrags")
3 STEP. Go now in creaturescripts.xml and add
Lua:
<event type="kill" name="TopFrags" event="script" value="topfrags.lua"/>
Last edited: