tanii
Empire-war.com
- Joined
- Jan 16, 2015
- Messages
- 383
- Solutions
- 1
- Reaction score
- 12
PHP:
[22/06/2015 08:38:01] data/movements/scripts/itemsay.lua:eek:nEquip
[22/06/2015 08:38:01] Description:
[22/06/2015 08:38:01] attempt to index a function value
[22/06/2015 08:38:01] stack traceback:
[22/06/2015 08:38:01] [C]: in function 'doSendDistanceShoot'
[22/06/2015 08:38:01] data/movements/scripts/itemsay.lua:15: in function <data/movements/scripts/itemsay.lua:11>
I go this error my version is
TFS 1.0 --> 8.6 --> 0.3.6
How To Solv This Error.
Script
PHP:
local IDHEAD = 2461
local IDARMOR = 2467
local IDLEGS = 2649
local IDFEET = 2643
local THETEXT = "*Leather*"
function onDeEquip(cid, item, slot)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have just lost the bonus for wearing a full set of equipment. please equipped the item you remove to get the bonus again.")
end
function onEquip(cid, item, slot)
if getPlayerSlotItem(cid, CONST_SLOT_HEAD).itemid == IDHEAD then
doSendAnimatedText(getCreaturePosition(cid), THETEXT, 99)
local spot = getThingPosition(cid)
doSendDistanceShoot(spot, CONST_ANI_HOLY)
end
return true
end