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

Help with quest

labbadia

New Member
Joined
Aug 29, 2010
Messages
51
Reaction score
1
Hello guys...
I want to make one quest with reward one spell magic...
Like this...the guys will do the quest , when they finish that, he will win the magic...but i want to create 4 magics (each one for each vocation).
Which is the best way to me do that?
 
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

http://otland.net/f132/use-scroll-learn-spell-71707/#post735701

Use search next time
 
Back
Top