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

[Need help]Changing vocation on spell (like forms for WoW Druid)

scoterr

A pony.
Joined
Aug 10, 2012
Messages
13
Reaction score
0
Location
Poland
Hello, I need help with script that allow players with druid vocation to change their vocation on spell. I want to make them all-in-one class, but with lower attributes.

I have 3 additional vacations for Druid to change:
druid-sorcerer
druid-paladin
druid-knight

Every vocation have spell from their orginals, with additional spell to change back to druid. But vocation change code doesn't work...

I tried:
changetosorcerer.lua
Code:
function onCastSpell(cid, var)
	doPlayerSetVocation(cid, 5)
	end
spells.xml
Code:
	<instant name="Change to sorcerer" words="Sorcerer Form" lvl="1" mana="5" prem="0" aggressive="0" selftarget="1" exhaustion="0" needlearn="0" event="script" value="support/changetosorcerer.lua">
		<vocation id="2"/>
	</instant>

Help meh guys :<
Thanks
 
Last edited:
Stupid.
Do like this:
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

local condition = createConditionObject(CONDITION_OUTFIT)
setConditionParam(condition, CONDITION_PARAM_TICKS, -1)
addOutfitCondition(condition, 0, 55, 0, 0, 0, 0)
setCombatCondition(combat, condition3)

function onCastSpell(cid, var)
	doCombat(cid, combat, var)
end

and do spells what you can cast only if you have outfit id 55
This will be much more like WoW Druid's forms
 
Back
Top