function onLook(cid, thing)
if isPlayer(thing.uid) then
local n = getCreatureName(thing.uid)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You see " .. (thing.uid == cid and "yourself" or n) .. ". " .. (thing.uid == cid and "You" or "He/She") .." has " .. getRebornsFunction(thing.uid) .. " reborns.")
end
return true
end
LUA:function onLook(cid, thing) if isPlayer(thing.uid) then local n = getCreatureName(thing.uid) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You see " .. (thing.uid == cid and "yourself" or n) .. ". " .. (thing.uid == cid and "You" or "He/She") .." has " .. getRebornsFunction(thing.uid) .. " reborns.") end return true end
Change the function to get reborns.
[10/08/2012 02:58:24] [Error - CreatureScript Interface]
[10/08/2012 02:58:24] data/creaturescripts/scripts/rebirthdescription.luanLook
[10/08/2012 02:58:24] Description:
[10/08/2012 02:58:24] data/creaturescripts/scripts/rebirthdescription.lua:4: attempt to call global 'getRebornsFunction' (a nil value)
[10/08/2012 02:58:24] stack traceback:
[10/08/2012 02:58:24] data/creaturescripts/scripts/rebirthdescription.lua:4: in function <data/creaturescripts/scripts/rebirthdescription.lua:1>
[10/08/2012 03:13:50] [Error - CreatureScript Interface]
[10/08/2012 03:13:50] data/creaturescripts/scripts/rebirthdescription.luanLook
[10/08/2012 03:13:50] Description:
[10/08/2012 03:13:50] data/creaturescripts/scripts/rebirthdescription.lua:4: attempt to call global 'getReborns' (a nil value)
[10/08/2012 03:13:50] stack traceback:
[10/08/2012 03:13:50] data/creaturescripts/scripts/rebirthdescription.lua:4: in function <data/creaturescripts/scripts/rebirthdescription.lua:1>
function onLook(cid, thing)
if isPlayer(thing.uid) then
local n = getCreatureName(thing.uid)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You see " .. (thing.uid == cid and "yourself" or n) .. ". " .. (thing.uid == cid and "You" or "He/She") .." has " .. getReborns(thing.uid) .. " reborns.")
end
return true
end