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

DONATOR

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 :
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
 
have fun :)

DONATOR MANA :
Code:
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 5*1000) -- time in seconds x1000

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(hasCondition(cid, CONDITION_EXHAUST)) then
return doSendMagicEffect(getThingPos(cid), CONST_ME_POFF) and doPlayerSendCancel(cid, "You are exhausted")
end
            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)
        doAddCondition(cid, exhaust)
        end
     return true
end

DONATOR PALLY :
Code:
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 5*1000) -- time in seconds x1000

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(hasCondition(cid, CONDITION_EXHAUST)) then
return doSendMagicEffect(getThingPos(cid), CONST_ME_POFF) and doPlayerSendCancel(cid, "You are exhausted")
end
            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)
        doAddCondition(cid, exhaust)
        end
        return true
    end

DONATOR UH :
Code:
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 5*1000) -- time in seconds x1000

function onUse(cid, item, fromPosition, itemEx, toPosition)
local vocs = {4,8,12}
local health = 3500
local level = getPlayerLevel(cid)
local mlevel = getPlayerMagLevel(cid)

if(hasCondition(cid, CONDITION_EXHAUST)) then
return doSendMagicEffect(getThingPos(cid), CONST_ME_POFF) and doPlayerSendCancel(cid, "You are exhausted")
end
            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)
        doAddCondition(cid, exhaust)
        end
        return true
    end
 
Back
Top