• 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 Grizzly Adams (Killing in the name of... Quest) All tasks, more real-tibia

hi guys someone can help me please?

[11/4/2013 16:11:31] [Error - CreatureScript Interface]
[11/4/2013 16:11:31] data/creaturescripts/scripts/killinginthenameof.lua:eek:nKill
[11/4/2013 16:11:31] Description:
[11/4/2013 16:11:31] data/creaturescripts/scripts/killinginthenameof.lua:3: attempt to call global 'getPlayerStartedTasks' (a nil value)
[11/4/2013 16:11:31] stack traceback:
[11/4/2013 16:11:31] data/creaturescripts/scripts/killinginthenameof.lua:3: in function <data/creaturescripts/scripts/killinginthenameof.lua:1>
 
I have this error in console:

[16/06/2013 20:38:30] Lua Script Error: [Npc interface]
[16/06/2013 20:38:30] data/npc/scripts/KillingInTheNameOf.lua:eek:nCreatureSay

[16/06/2013 20:38:30] data/npc/scripts/KillingInTheNameOf.lua:22: attempt to call global 'getTasksByPlayer' (a nil value)
[16/06/2013 20:38:30] stack traceback:
[16/06/2013 20:38:30] data/npc/scripts/KillingInTheNameOf.lua:22: in function 'callback'
[16/06/2013 20:38:30] data/npc/lib/npcsystem/npchandler.lua:383: in function 'onCreatureSay'
[16/06/2013 20:38:30] data/npc/scripts/KillingInTheNameOf.lua:8: in function <data/npc/scripts/KillingInTheNameOf.lua:8>

Crying Damson 0.3.5pl1 8.50
 
Last edited:
same error

bump

Edit: Solved

Library was not correctly installed in data/lib/103-killinginthenameof.lua

Another problam, NPC tells me that there is no tasks for me (god or player, same problem)
 
Last edited:
Code:
[22/07/2013 10:28:53] Lua Script Error: [Npc interface] 
[22/07/2013 10:28:53] data/npc/scripts/KillingInTheNameOf.lua:onCreatureSay
[22/07/2013 10:28:53] data/npc/scripts/KillingInTheNameOf.lua:42: attempt to call global 'canStartTask' (a nil value)
[22/07/2013 10:28:53] stack traceback:
[22/07/2013 10:28:53] 	[C]: in function 'canStartTask'
[22/07/2013 10:28:53] 	data/npc/scripts/KillingInTheNameOf.lua:42: in function 'callback'
[22/07/2013 10:28:53] 	data/npc/lib/npcsystem/npchandler.lua:390: in function 'onCreatureSay'
[22/07/2013 10:28:53] 	data/npc/scripts/KillingInTheNameOf.lua:8: in function <data/npc/scripts/KillingInTheNameOf.lua:8>

This is the error I get. I can greet him with a 'hi', but if I try to say 'tasks', or 'missions' he says nothing and I get that error. ^

I'm using TFS 0.2.15 9.8-9.86, and all other NPCs work fine.
 
Ok, so the first thing we add too lib.. What lib am I adding it too??
I use 2.14
 
Last edited:
[22/07/2013 10:28:53] Lua Script Error: [Npc interface] [22/07/2013 10:28:53]
data/npc/scripts/KillingInTheNameOf.lua:eek:nCreatureSay [22/07/2013 10:28:53] data/npc/scripts/KillingInTheNameOf.lua:42: attempt to call global 'canStartTask' (a nil value)

[22/07/2013 10:28:53] stack traceback: [22/07/2013 10:28:53] [C]: in function 'canStartTask'
[22/07/2013 10:28:53] data/npc/scripts/KillingInTheNameOf.lua:42: in function 'callback'
[22/07/2013 10:28:53] data/npc/lib/npcsystem/npchandler.lua:390: in function 'onCreatureSay'
[22/07/2013 10:28:53] data/npc/scripts/KillingInTheNameOf.lua:8: in function <data/npc
/scripts/KillingInTheNameOf.lua:8>

Same problem here!
I got TFS 0.2
added the lib to data/lib <- Created new Folder
help plz /:
 
Jeez, nothing about your effort but I can wether confirm if this works nor judge the quality.

You should first learn how to TAB code before posting anything else in the future o_O
 
I've got one problem. I added everything you wrote, there aren't any problems in console, but the NPC isn't working, means isn't appears. I've got TFS 0.4 , Shall you help me?
 
Hello

I can't get this to work properly :(
I can speak to Grizzly and start different tasks but I don't get any kill counts. I changed so I just had to kill 3 Ice Golems but when I have killed 3 Ice Golems and speak to Grizzly again (by saying report) his answer is that I haven't completed the task!

I use TFS 0.3.6 - Crying Damson V8 ( http://otland.net/threads/8-60-the-forgotten-server-0-3-6-crying-damson-v8.147913/ )

Please help ;(
 
Hello

I can't get this to work properly :(
I can speak to Grizzly and start different tasks but I don't get any kill counts. I changed so I just had to kill 3 Ice Golems but when I have killed 3 Ice Golems and speak to Grizzly again (by saying report) his answer is that I haven't completed the task!

I use TFS 0.3.6 - Crying Damson V8 ( http://otland.net/threads/8-60-the-forgotten-server-0-3-6-crying-damson-v8.147913/ )

Please help ;(
When you kill a monster, a message should appear on your default channel. If the message isn't appearing, try replacing this line at creaturescripts/scripts/killinginthenameof.lua
Code:
if isPlayer(target) or isSummon(target) then return true end
By this one
Code:
if isPlayer(target) then return true end

If the kills starts to be counted, then there is a problem with the isSummon(c) function.
 
Darkhaos I get this error

[21/04/2014 13:26:36] [Error - Npc interface]
[21/04/2014 13:26:36] data/npc/scripts/killinginthenameof.lua:eek:nCreatureSay
[21/04/2014 13:26:36] Description:
[21/04/2014 13:26:36] data/npc/scripts/killinginthenameof.lua:124: attempt to concatenate field 'raceName' (a nil value)
[21/04/2014 13:26:36] stack traceback:
[21/04/2014 13:26:36] data/npc/scripts/killinginthenameof.lua:124: in function 'callback'
[21/04/2014 13:26:36] data/npc/lib/npcsystem/npchandler.lua:383: in function 'onCreatureSay'
[21/04/2014 13:26:36] data/npc/scripts/killinginthenameof.lua:92: in function <data/npc/scripts/killinginthenameof.lua:92>
 
When trying to spawn the NPC: (0.3.6)

[Error - LuaScriptInterface::loadFile] data/npc/scripts/KillingInTheNameOf.lua:6: function arguments expected near ':'
[02/05/2014 14:21:42] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/KillingInTheNameOf.lua
[02/05/2014 14:21:42] data/npc/scripts/KillingInTheNameOf.lua:6: function arguments expected near ':'
 
Last edited:
Back
Top