Hello and i need say sorry for my bad english
one npc to learn spells....
1 scrip when i use x item i learn x spell
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
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
1 scrip colour letters appair in X sqm ...
really sorry for my bad enlgish ... see you ;D