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

need 1 npc and 2 scrip...

Mathiw

New Member
Joined
Oct 15, 2008
Messages
3
Reaction score
0
Hello and i need say sorry for my bad english :p

one npc to learn spells....


1 scrip when i use x item i learn x spell

PHP:
local spell = "super exori"
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
it dont work.. im using tfs 0.2.7

1 scrip colour letters appair in X sqm ...

really sorry for my bad enlgish ... see you ;D
 
Back
Top Bottom