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
spells.xml
Help meh guys :<
Thanks
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
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: