hello.. 
I wanted a book by id: 1985 on my 8.6 serv to become an item so a spell only works when you wear the book.
I copyed this codes from another forum because its kinda what i want for spell for my server.
but i also need the value code "ek1.lua" which i dont have..
If this doesn't help please tell me how i can create spells like my description by my own.
Thanks !!
I wanted a book by id: 1985 on my 8.6 serv to become an item so a spell only works when you wear the book.
I copyed this codes from another forum because its kinda what i want for spell for my server.
but i also need the value code "ek1.lua" which i dont have..
If this doesn't help please tell me how i can create spells like my description by my own.
Thanks !!
Code:
<action itemid="1985" event="script" value="ek1.lua"/>
local spell = "Super Exori"
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)
doPlayerRemoveItem(cid, 1985, 1)
else
doCreatureSay(cid, "You already know this spell!", TALKTYPE_ORANGE_1, nil, cid, getThingPos(cid))
end
return true
end