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

Spell Item..

Teddy

SweStream.se
Joined
Oct 2, 2008
Messages
3,797
Reaction score
10
Location
Sweden 172
Can some make a item when you use it on your self you get a new spell and you can only get that spell from that item :O ?
 
LUA:
 local spell = "Spell Name Here"
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if not getPlayerLearnedInstantSpell(cid, spell) then
		doPlayerLearnInstantSpell(cid, spell)
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have learned the spell " .. spell .. ".")
	else
		doCreatureSay(cid, "You have already learned this spell!", TALKTYPE_ORANGE_1, nil, cid, getThingPos(cid))
	end
	return true
end

ive posted like 4 scripts like this and so has cykotitan, shoulve been relatively easy to find.
 
LUA:
 local spell = "Spell Name Here"
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if not getPlayerLearnedInstantSpell(cid, spell) then
		doPlayerLearnInstantSpell(cid, spell)
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have learned the spell " .. spell .. ".")
	else
		doCreatureSay(cid, "You have already learned this spell!", TALKTYPE_ORANGE_1, nil, cid, getThingPos(cid))
	end
	return true
end

ive posted like 4 scripts like this and so has cykotitan, shoulve been relatively easy to find.

Where do i put this script? Please give .xml >: and info!
 
Back
Top