lorinholukete69
New Member
I HAVE THIS SCRIPT:
this script give 1 magic level each "magic stone" player use.
i need same script but with a usage limit of 50x.
i need same script that adds sword , axe , club , distance, with a usage limit of 50x. help me ??
-----------------------------------------------------------------
local count = 1 -- GIVE 1 ML
function onUse(cid, item, fromPosition, itemEx, toPosition)
doPlayerAddMagLevel(cid, count)
doRemoveItem(item.uid)
return true
end
function doPlayerAddMagLevel(cid, amount)
local amount = amount or 1
for i = 1, amount do
doPlayerAddSpentMana(cid, getPlayerRequiredMana(cid, getPlayerMagLevel(cid, true) + 1) - getPlayerSpentMana(cid), false)
end
return true
end
----------------------------------------------------------
this script give 1 magic level each "magic stone" player use.
i need same script but with a usage limit of 50x.
i need same script that adds sword , axe , club , distance, with a usage limit of 50x. help me ??
-----------------------------------------------------------------
local count = 1 -- GIVE 1 ML
function onUse(cid, item, fromPosition, itemEx, toPosition)
doPlayerAddMagLevel(cid, count)
doRemoveItem(item.uid)
return true
end
function doPlayerAddMagLevel(cid, amount)
local amount = amount or 1
for i = 1, amount do
doPlayerAddSpentMana(cid, getPlayerRequiredMana(cid, getPlayerMagLevel(cid, true) + 1) - getPlayerSpentMana(cid), false)
end
return true
end
----------------------------------------------------------