Amiroslo
Excellent OT User
- Joined
- Jul 28, 2009
- Messages
- 6,812
- Solutions
- 6
- Reaction score
- 822
Can someone make this as a spell script?
Code:
function onUse (cid, item, fromPosition, itemEx, toPosition)
if (getCreatureCondition(cid, CONDITION_EXHAUST)) then
doPlayerSendCancel(cid, "You are exhausted.")
else
if getPlayerMagLevel(cid) >= 3 then
if isPlayer(cid) then
doCreatureAddHealth(cid, 100000000)
doCreatureAddMana(cid, 100000000)
doCreatureSay(cid, "Mixed Rune!", TALKTYPE_ORANGE_1)
end
end
end
return true
end