• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Spell scroll Need Help :)

Swe_surver_ot

New Member
Joined
Jan 11, 2011
Messages
28
Reaction score
2
Hi I need help with a spell scroll The id be 8981 need a script who dose this scroll to do so u get a spell :)

spell name is exori fuck


TSF server 8.54

ty if u can help me :P and

and sorry for my bad english :)
 
PHP:
local spell = 'Exori Fuck'
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if(not isKnight(cid) and not isKnight(cid)) then

		doCreatureSay(cid, "Only knights may open this scroll.", TALKTYPE_ORANGE_1, cid)
		return true
	end

	if getPlayerLearnedInstantSpell(cid, spell) == FALSE then
		playerLearnInstantSpell(cid, spell)
		doSendMagicEffect(fromPosition, CONST_ME_MAGIC_BLUE)
		doCreatureSay(cid, 'You have learned the spell ' .. spell .. '.', TALKTYPE_ORANGE_1)
		doRemoveItem(item.uid)
	else
		doPlayerSendCancel(cid, 'You have already know this spell.')
	end
	return TRUE
end
 
Last edited:
>if(not isKnight(cid) and not isKnight(cid))
>not isKnight(cid) and not isKnight(cid)
>and


Why is there an and for checking the same conditions?
 
Back
Top