• 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!

Rebirth script

prav

New Member
Joined
Aug 6, 2014
Messages
61
Reaction score
0
Can anyone help me I have been trying to add a rebirth requirement to all my spells on my server but I am not sure how to do it. Does anyone know how I can my tfs version is 0.3.6
 
Code:
function onCastSpell(cid, var)
if getPlayerRebirth(cid) < 7 then
doCreatureSay(cid, "You do not have 7 rebirths!", 19)
return false
   end
return doCombat(cid, combat, var)
end

if somebody has less then 7 rebirths he can't use the spell. I don't know that you have a special command "getPlayerRebirth" or you use storage. So just replace "getPlayerRebirth" with "getPlayerStorageValue(cid, your rebirth storage)".
 

Similar threads

Back
Top