Who will rewrite my script from 0.3.4 to 0.3.6 ?
On 0.3.6 got this errors :
182 line :
227 line :
200 line:
Any ideas ? ^^
On 0.3.6 got this errors :
[17/02/2010 15:01:14] [Error - Action Interface]
[17/02/2010 15:01:14] data/actions/scripts/upgrade.luanUse
[17/02/2010 15:01:14] Description:
[17/02/2010 15:01:14] data/actions/scripts/upgrade.lua:182: attempt to call global 'doSetItemSpecialDescription' (a nil value)
[17/02/2010 15:01:14] stack traceback:
[17/02/2010 15:01:14] data/actions/scripts/upgrade.lua:182: in function 'Forge'
[17/02/2010 15:01:14] data/actions/scripts/upgrade.lua:227: in function <data/actions/scripts/upgrade.lua:226>
182 line :
PHP:
if (base_uid == 0) then
if (math.random(1, 100) <= (list.percent + percentEx)) then
local uid = doCreateItemEx(list.prize.id, list.prize.count)
doSetItemSpecialDescription(uid, "It was forget by " .. getCreatureName(cid) .. ".")
182 ------> doTileAddItemEx(pos, uid) <--------- 182
doSendMagicEffect(pos, CONST_ME_BLOCKHIT)
else
doSendMagicEffect(pos, CONST_ME_POFF)
end
227 line :
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local ret, msg = Smith:Forge(cid, item, toPosition)
227---->if not (ret) then <-----------------------227
doPlayerSendCancel(cid, msg)
end
return TRUE
end
[17/02/2010 15:07:42] [Error - Action Interface]
[17/02/2010 15:07:42] data/actions/scripts/upgrade.luanUse
[17/02/2010 15:07:42] Description:
[17/02/2010 15:07:42] data/actions/scripts/upgrade.lua:200: attempt to call global 'getItemExtraDefense' (a nil value)
[17/02/2010 15:07:42] stack traceback:
[17/02/2010 15:07:42] data/actions/scripts/upgrade.lua:200: in function 'Forge'
[17/02/2010 15:07:42] data/actions/scripts/upgrade.lua:227: in function <data/actions/scripts/upgrade.lua:226>
200 line:
PHP:
elseif (k == "defense") then
local current = getItemExtraDefense(base_uid)
200------------> if (v[current]) then <--------------200
if (math.random(1, 100) <= v[current].percent + percentEx) then
setItemExtraDefense(base_uid, v[current].to)
ret = true
Any ideas ? ^^