Misokoko
New Member
- Joined
- Mar 29, 2013
- Messages
- 126
- Reaction score
- 0
Ineed make these with exchauste and see if the heal number good for swev or not :
DONATOR MANA :
DONATOR PALLY :
DONATOR UH :
DONATOR MANA :
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local vocs = {1,2,5,6,9,10}
local mana = 2500
local level = getPlayerLevel(cid)
local mlevel = getPlayerMagLevel(cid)
if level < 10 then
doPlayerSendCancel(cid, "You Need Level 10 to use it")
doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
return false
end
if mlevel < 5 then
doPlayerSendCancel(cid, "You Need Magic Level 5 to use manarune")
doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
return false
end
if not isInArray(vocs, getPlayerVocation(cid)) then
doPlayerSendCancel(cid, "This For Druids And sorcerer Only")
doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
return false
end
if doPlayerAddMana(cid, mana) then
doSendMagicEffect(getPlayerPosition(cid), math.random(31,31))
doCreatureSay(itemEx.uid, "DONATOR MANA!!", TALKTYPE_ORANGE_1)
end
return true
end
DONATOR PALLY :
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local vocs = {3,7,11}
local mana = 3000
local health = 900
local level = getPlayerLevel(cid)
local mlevel = getPlayerMagLevel(cid)
if level < 10 then
doPlayerSendCancel(cid, "You Need Level 10 to use it")
doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
return false
end
if mlevel < 5 then
doPlayerSendCancel(cid, "You Need Magic Level 5 to use manarune")
doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
return false
end
if not isInArray(vocs, getPlayerVocation(cid)) then
doPlayerSendCancel(cid, "This For Paladins And Snipers Only")
doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
return false
end
if doCreatureAddHealth(cid, health) then
doSendMagicEffect(getPlayerPosition(cid), math.random(49,49))
end
if doPlayerAddMana(cid, mana) then
doSendMagicEffect(getPlayerPosition(cid), math.random(36,36))
doCreatureSay(itemEx.uid, "DONATOR PALLY!!", TALKTYPE_ORANGE_1)
end
return true
end
DONATOR UH :
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local vocs = {4,8,12}
local health = 3500
local level = getPlayerLevel(cid)
local mlevel = getPlayerMagLevel(cid)
if level < 10 then
doPlayerSendCancel(cid, "You Need Level 10 to use it")
doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
return false
end
if mlevel < 5 then
doPlayerSendCancel(cid, "You Need Magic Level 5 to use manarune")
doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
return false
end
if not isInArray(vocs, getPlayerVocation(cid)) then
doPlayerSendCancel(cid, "This For knights Only")
doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
return false
end
if doCreatureAddHealth(cid, health) then
doSendMagicEffect(getPlayerPosition(cid), math.random(49,49))
doCreatureSay(itemEx.uid, "DONATOR UH", TALKTYPE_ORANGE_1)
end
return true
end