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

[request] advanced vial

straher

???
Joined
Mar 23, 2010
Messages
255
Reaction score
3
Hello, I need an advanced vial thing which would add different mana for each vocation.

I mean that each vocation would have different mana add stages.

Can anyone help me with this issue?
 
Code:
function onUse(cid, item, frompos, item2, topos)
if getPlayerVocation == 1 then
	doPlayerAddMana(cid, 300)
	doSendMagicEffect(getPlayerPosition(cid), 1)
elseif getPlayerVocation == 2 then
	doPlayerAddMana(cid, 200)
	 doSendMagicEffect(getPlayerPosition(cid), 1)
else getPlayerVocation == 3 then
	doPlayerAddMana(cid, 100)
	 doSendMagicEffect(getPlayerPosition(cid), 1)
	 end
	 return true
	 end
 
How could I make this script giving random mana?

Code:
function onUse(cid, item, frompos, item2, topos)
if getPlayerVocation == 1 then
	doPlayerAddMana(cid, 300)
	doSendMagicEffect(getPlayerPosition(cid), 1)
elseif getPlayerVocation == 2 then
	doPlayerAddMana(cid, 200)
	 doSendMagicEffect(getPlayerPosition(cid), 1)
else getPlayerVocation == 3 then
	doPlayerAddMana(cid, 100)
	 doSendMagicEffect(getPlayerPosition(cid), 1)
	 end
	 return true
	 end
 
It won't work ;<
good script for potion but there is request about VIAL (I think so), all vials have the same ID and diffrent subtypes.
 
Back
Top