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

Lua Quest for spell? Request

SWEVO

Member
Joined
Nov 15, 2013
Messages
155
Reaction score
23
Hello otland,im requesting an script or explanation to me how to make quest,when i open box i get a spell or simply when i open box(chest) i get paper and when i click on paper i get spell?
tfs 0.3.6 8.6
also would be helpfull for tfs 0.4 8.6 too
 
it exists alredy =) just search it

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
 
Back
Top