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

I need some Help!.

11997733

New Member
Joined
Feb 10, 2009
Messages
25
Reaction score
1
Ok, i looked for hourrs on end for this kiind of script.

The kind of script i am looking for is when you open a chest or use a writeable item as in a scroll or somthing.

Well when you click the chest/scroll you learn a spell.
but you cannot use this spell unless u have opened the chest or used the item.
Thaanks.

I want it so when you do a quest you get a spell reward=) get what im saying peeps.

Well i hope someone out there can help me!
pce =):(
 
Lua:
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

Next time, post in requests and use the search function. I did it for you this time
 
Back
Top