Sean Larson
New Member
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
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