• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

tfs 1.2 Monster points system

Doomdice

The N00betarian
Joined
Jul 20, 2009
Messages
658
Reaction score
108
Location
Indiana
Im trying to find a monster point system if u kill 100 mobs u get 1 point and you can spend them points & also has a monster point shop
 
So do you want when you kill 100 rats you gain 1 point and then talk to a NPC to buy stuff?
 
Code:
local storage = 123456
local amount = 100
function onKill(cid, target)
    if isPlayer(target) or isSummon(target) then
        return true
    end
    local killCount = player:getStorageValue(storage)
    if killCount <= amount then
        player:setStorageValue(storage, killCount + 1)
    end
    return true
end
 
Code:
local storage = 123456
local amount = 100
function onKill(cid, target)
    if isPlayer(target) or isSummon(target) then
        return true
    end
    local killCount = player:getStorageValue(storage)
    if killCount <= amount then
        player:setStorageValue(storage, killCount + 1)
    end
    return true
end


this go in creaturescripts if im correct right? & thanks for the code
 
this go in creaturescripts if im correct right? & thanks for the code
yes, well it was just an example, not even sure it will work, maybe someone else can help you out because all i did was edit whitevo's code and his script is for 1.0
 
Back
Top