Ghost Knight
New Member
- Joined
- Nov 12, 2012
- Messages
- 25
- Reaction score
- 0
well this happen went i use the item
here scrip
Code:
[16/11/2012 14:23:01] [Error - Action Interface]
[16/11/2012 14:23:01] data/actions/scripts/spell1.lua:onUse
[16/11/2012 14:23:01] Description:
[16/11/2012 14:23:01] data/actions/scripts/spell1.lua:8: attempt to call global 'doPlayerSendtextMessage' (a nil value)
[16/11/2012 14:23:01] stack traceback:
[16/11/2012 14:23:01] data/actions/scripts/spell1.lua:8: in function <data/actions/scripts/spell1.lua:2>
here scrip
Code:
local spell = "Fusion Spell"
function onUse(cid, item, fromPos, itemEx, toPos)
if getPlayerLearnedInstantSpell(cid, spell) then
doPlayerSendCancel(cid, "You already have this spell.")
else
doPlayerLearnInstantSpell(cid, spell)
doRemoveItem(item.uid, 1)
doPlayerSendtextMessage(cid, 22, "You have learned ".. spell .. " .")
end
return true
end