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

Spell Scrolls

Sean Larson

New Member
Joined
Oct 22, 2007
Messages
99
Reaction score
1
Location
Colorado
I am wondering how to use spell scrolls, I am a little confused at what you do with the script i got lol i know it has something to do with action.xml but i dont know what

function onUse(cid, item, frompos, item2, topos)
if getPlayerLearnedInstantSpell(cid, "Apocalypse") == 0 then
playerLearnInstantSpell(cid, "Apocalypse")

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have learned the spell \"Apocalypse\"")
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "..but as you study the fragile document you feel an intense heat...")

doSendMagicEffect(frompos,CONST_ME_HITBYFIRE)
doRemoveItem(item.uid, 1)
return 1
end

return 0
end

is what i have what do i have to put in the actions.xml
 
Back
Top