Sry for the bad english...
I'm having problems: the server is not saving the time of items, for example, the time of soft bots. When I logout, the boots returns to 240 minutes.
for some odd reason i cant make a god account :/ i feel under experienced haha can anyone help me please ive tried Account: group id:1/5/6 PLayer Group Id: 6
Ok... This bug in save isn't normal. I await any help.
The fix you gave for NPC bug did not work:
(the bug happens when we talk to them and logout)
[25/01/2011 03:53:57] Lua Script Error: [Npc interface]
[25/01/2011 03:53:57] data/npc/scripts/loot2.luanThink
[25/01/2011 03:53:57] data/npc/lib/npcsystem/npchandler.lua:293: bad argument #3 to 'gsub' (string/function/table expected)
[25/01/2011 03:53:57] stack traceback:
[25/01/2011 03:53:57] [C]: ?
[25/01/2011 03:53:57] [C]: in function 'gsub'
[25/01/2011 03:53:57] data/npc/lib/npcsystem/npchandler.lua:293: in function 'parseMessage'
[25/01/2011 03:53:57] data/npc/lib/npcsystem/npchandler.lua:533: in function 'onWalkAway'
[25/01/2011 03:53:58] data/npc/lib/npcsystem/npchandler.lua:469: in function 'onThink'
[25/01/2011 03:53:58] data/npc/scripts/loot2.lua:8: in function <data/npc/scripts/loot2.lua:8>
[25/01/2011 03:53:59] Lua Script Error: [Npc interface]
[25/01/2011 03:53:59] data/npc/scripts/loot2.luanThink
[25/01/2011 03:53:59] luagetDistanceTo(). Thing not found
[25/01/2011 03:53:59] stack traceback:
[25/01/2011 03:53:59] [C]: in function 'getDistanceTo'
[25/01/2011 03:53:59] data/npc/lib/npcsystem/npchandler.lua:544: in function 'isInRange'
[25/01/2011 03:53:59] data/npc/lib/npcsystem/npchandler.lua:468: in function 'onThink'
[25/01/2011 03:53:59] data/npc/scripts/loot2.lua:8: in function <data/npc/scripts/loot2.lua:8>
[25/01/2011 03:53:59] Lua Script Error: [Npc interface]
[25/01/2011 03:53:59] data/npc/scripts/loot2.luanThink
[25/01/2011 03:53:59] data/npc/lib/npcsystem/npchandler.lua:293: bad argument #3 to 'gsub' (string/function/table expected)
[25/01/2011 03:53:59] stack traceback:
[25/01/2011 03:53:59] [C]: ?
[25/01/2011 03:53:59] [C]: in function 'gsub'
[25/01/2011 03:53:59] data/npc/lib/npcsystem/npchandler.lua:293: in function 'parseMessage'
[25/01/2011 03:53:59] data/npc/lib/npcsystem/npchandler.lua:533: in function 'onWalkAway'
[25/01/2011 03:53:59] data/npc/lib/npcsystem/npchandler.lua:469: in function 'onThink'
[25/01/2011 03:53:59] data/npc/scripts/loot2.lua:8: in function <data/npc/scripts/loot2.lua:8>
Thx guys.
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
function onThink() npcHandler:onThink() end
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
function onThink() npcHandler:onThink()
You need to open all LUAS from npc and replace
With thisLua:local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end
Lua:local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink()
And that message will desappear
Do not do that! I have already posted how to fix it, what you are doing with your code is breaking the NPC's!
i would love to know ids of spell icons... i sraeched everywhere. sources/global.lua/doc/ nowhere found something about it, this is shit !
Hello, Anyone know how to fix all commands? Im God and if i try any command example:/a 1 i get this : you can not execute this command.
Im Running on Sqlite!
exura gran ico 158
exori min 59
utura gran 160
exori gran ico 62
exori max vis 155
exori max flam 154
exori max frigo 156
exori max tera 157
exevo gran frigo hur 43
exura gran san 36
here you are