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

Mana potion working on Magiclevel&level

WiLDTuRTLE

Member
Joined
Feb 26, 2011
Messages
478
Reaction score
5
As the tittle says, im trying to find a script to make my strong mana potion heals depending on the player magic level and level, & usable by any vocs
& spirit potion to heal hp/mp depending on lvl& mlvl too , thanks

thanks ++
 
Last edited:
Try this! :)

LUA:
function onUse(cid, item, frompos, item2, topos)
mag = getPlayerMagLevel(cid)
if mag >= 3 then
doSendMagicEffect(topos,1)
doCreatureSay(cid,"Ahhh!",19)
doPlayerAddMana(cid, 1200)
if item.type > 1 then
doChangeTypeItem(item.uid,item.type-1)
end
else
doSendMagicEffect(frompos,2)
end
return 1
end
 
Try this! :)

LUA:
function onUse(cid, item, frompos, item2, topos)
mag = getPlayerMagLevel(cid)
if mag >= 3 then
doSendMagicEffect(topos,1)
doCreatureSay(cid,"Ahhh!",19)
doPlayerAddMana(cid, 1200)
if item.type > 1 then
doChangeTypeItem(item.uid,item.type-1)
end
else
doSendMagicEffect(frompos,2)
end
return 1
end

Which place? :/ im lost
ty tho <3
 
Back
Top