- Joined
- Jun 19, 2009
- Messages
- 1,852
- Reaction score
- 5
Hello!
Script by Cykotitan:
Ok.. should I put something in spells.xml or? I mean in spells.xml, you need x lvl etc..
To make myself clearer, should I remove the spell line from spells.xml? Because I want people to learn, i.e light healing, only by using the scroll...
Thanks in advance!
Script by Cykotitan:
Code:
local spell = "Light Healing"
function onUse(cid, item, fromPosition, itemEx, toPosition)
if not getPlayerLearnedInstantSpell(cid, spell) then
doPlayerLearnInstantSpell(cid, spell)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have learned spell " .. spell .. "!")
doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE)
else
doCreatureSay(cid, "You already know this spell!", TALKTYPE_ORANGE_1, nil, cid, getThingPos(cid))
end
return true
end
Ok.. should I put something in spells.xml or? I mean in spells.xml, you need x lvl etc..
To make myself clearer, should I remove the spell line from spells.xml? Because I want people to learn, i.e light healing, only by using the scroll...
Thanks in advance!
Last edited: