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

~Voction~

Thanks Limos

- - - Updated - - -

Yes i know for this http://otland.net/f132/mana-health-special-rune-181656/

- - - Updated - - -

But i want to add voction on this
Lua:
function onUse(cid, item, frompos, item2, topos)
        doSendMagicEffect(topos,1)
        doCreatureSay(cid,"Light me!MR", TALKTYPE_ORANGE_1)
        doPlayerAddMana(cid, 10000)
        return true
end

I want to it can use only a Sorcerer and Druid??

- - - Updated - - -

Just tell me how to add a Voction???Please Please Pleaseeeeeeeeeeeeeeeeeeeeeeee:rolleyes:

- - - Updated - - -

:thumbup:
 
Lua:
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 1000) -- time in seconds x1000

function onUse(cid, item, frompos, item2, topos)

local vocations = {1,2,5,6}

	if(hasCondition(cid, CONDITION_EXHAUST)) then
        	doSendMagicEffect(getThingPos(cid), CONST_ME_POFF) 
		doPlayerSendCancel(cid, "You are exhausted")
		return true
	end

	if isInArray(vocations, getPlayerVocation(cid)) then
        	doSendMagicEffect(topos,1)
        	doCreatureSay(cid,"Light me!MR", TALKTYPE_ORANGE_1)
        	doPlayerAddMana(cid, 10000)
		doAddCondition(cid, exhaust)
	else
		doSendMagicEffect(getThingPos(cid), CONST_ME_POFF) 
		doPlayerSendCancel(cid, "This rune is only for sorcerers and druids.")
	end
        return true
end

If you would change the healing from that other script it will do the same.
 
Back
Top