• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Spell In Scroll

bodycarcoo11

Mapper
Joined
Apr 26, 2011
Messages
213
Reaction score
9
Location
USA
HEllo And Welcome To Our Help in Scripting This Script Here IS The Scripts
Put This In Data/Actions/scripts
Put It With Name Spell Scrolls.lua
Code:
local spells = {
	[6087] = "Donated Spell",
	[6088] = "Vip Spell",
	[6089] = "ownerges Spell",
        [6090] = "Monsters Own Spell",
}
function onUse(cid, item, frompos, itemEx, topos)
	if(spells[item.itemid]) then
		if(not(getPlayerLearnedInstantSpell(cid, spells[item.itemid]))) then
			doPlayerLearnInstantSpell(cid, spells[item.itemid])
			doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_BLUE)
			doPlayerSendTextMessage(cid, 20, "You have successfully learnes " .. spells[item.itemid])
			doRemoveItem(cid, item.uid, 1)
		else
			doPlayerSendCancel(cid, "You already know this spell.")
			doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
		end
	end
	return true
end
Put This In Actions.XML
Code:
<action itemid="6087;6088;6089;6090" event="script" value="Spell Scrolls.lua"/>
And Thx If You Like Rep++
 
Are you crazy tonks?
this one is made since 2nd feb 2012, the other one since 14th april 2012 ...
 
Back
Top