zerghel
Tsuni
- Joined
- Jul 1, 2008
- Messages
- 299
- Reaction score
- 9
hello guys
im looking for a learn spell action(scroll) im using this script from Anteyz
but wrong vocations can use the spell after using the scroll, even though
in spells.xml
so i need u to add a vocation request
this is used on Mystic spirit 0.2.11
=3
im looking for a learn spell action(scroll) im using this script from Anteyz
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local spell = dark star wave
if getPlayerLearnedInstantSpell(cid, spell) == FALSE then
playerLearnInstantSpell(cid,"spell")
doCreatureSay(cid, "You Just learned dark star wave spell", TALKTYPE_ORANGE_1)
doRemoveItem(cid, item.uid, 1)
else
doPlayerSendCancel(cid,"You've already learned that spell!")
end
return TRUE
end
Code:
<instant name="Dark Star Wave" words="Stella Caligatum" lvl="1" manapercent="20" exhaustion="3000" needlearn="1" script="dark wave.lua">
[COLOR="#FF0000"]<vocation name="elder druid"/>
<vocation name="master sorcerer"/>[/COLOR]
</instant>
so i need u to add a vocation request
this is used on Mystic spirit 0.2.11
=3