• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

NPC Prestige/rebirth System with onlook working

I'm getting the errors too:

Lua Script Error: [Npc interface]
data/npc/scripts/Prestiger.lua:eek:nCreatureSay
data/npc/scripts/Prestiger.lua:30: attempt to call global 'getCreatureStorage' (a nil value)
stack traceback:
[C]: in function 'getCreatureStorage'
data/npc/scripts/Prestiger.lua:30: in function 'callback'
data/npc/lib/npcsystem/npchandler.lua:411: <data/npc/scripts/Prestiger.lua:8>

Lua Script Error: [Npc interface]
data/npc/scripts/Prestiger.lua:eek:nCreatureSay
data/npc/scripts/Prestiger.lua:30: attempt to call global 'getCreatureStorage' (a nil value)
stack traceback:
[C]: in function 'getCreatureStorage'
data/npc/scripts/Prestiger.lua:30: in function 'callback'
data/npc/lib/npcsystem/npchandler.lua:411: in function 'onCreatureSay'
data/npc/scripts/Prestiger.lua:8: in function <data/npc/scripts/Prestiger.lua:8>

Lua Script Error: [Npc interface]
data/npc/scripts/Prestiger.lua:eek:nCreatureSay
data/npc/scripts/Prestiger.lua:30: attempt to call global 'getCreatureStorage' (a nil value)
stack traceback:
[C]: in function 'getCreatureStorage'
data/npc/scripts/Prestiger.lua:30: in function 'callback'
data/npc/lib/npcsystem/npchandler.lua:411: in function 'onCreatureSay'
data/npc/scripts/Prestiger.lua:8: in function <data/npc/scripts/Prestiger.lua:8>

Since I've seen 4 people with similar problems as me, I'll say the code doesn't work xD.
this post was seven years ago and as the first line says: This is tested on 0.3.6
there is no longer getCreatureStorage but Player
 
Can you help me out with this issue?
Please

Code:
[17:10:21.020] [Error - LuaInterface::loadFile] data/creaturescripts/scripts/RebirthDescription.lua:1: unexpected symbol near ' '
[17:10:21.036] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/RebirthDescription.lua)
[17:10:21.051] data/creaturescripts/scripts/RebirthDescription.lua:1: unexpected symbol near ' '
 
Use this bro is shortly
Lua:
function onLook(cid, thing, position, lookDistance)
if isPlayer(thing.uid) then
   doPlayerSetSpecialDescription(thing.uid, '\n[Rebirths: '..getPlayerStorageValue(thing.uid, 85987)..']')
--doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, ''..getCreatureName(thing.uid)..' | [STATS] Health: '.. getCreatureHealth(thing.uid) ..'/'.. getCreatureMaxHealth(thing.uid) ..' | Mana: '.. getCreatureMana(thing.uid) ..'/'.. getCreatureMaxMana(thing.uid) ..' || VIP: ' .. (getPlayerStorageValue(cid, 23123) == -1 and "NO" or getCreatureStorage(cid, 23123) >= 1 and "YES") .. '')
end
return true
end
 
Back
Top