hi guys
I'm testing the NPC of the quest.
1.- Melchior.lua 1st, djinn quest, does not answer when you talk., umar (djinn blue) not answered. solved
To fix just about melchior.lua I've changed this:
2.- Angus, The Explorer Society Quest, answer but gives me this error:
hanks and regards
I'm testing the NPC of the quest.
1.- Melchior.lua 1st, djinn quest, does not answer when you talk., umar (djinn blue) not answered. solved
To fix just about melchior.lua I've changed this:
Code:
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() end
local function creatureSayCallback(cid, type, msg)
if not npcHandler:isFocused(cid) then
return false
end
local player = Player(cid)
2.- Angus, The Explorer Society Quest, answer but gives me this error:
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local player = Player(cid)
if player:getStorageValue(90) == 27 then
player:setStorageValue(90, 28)
player:addItem(4858, 1) <-- this is a funeral urn (It contains the ashes of a lizard high priest.), where is the key?
player:sendTextMessage(MESSAGE_INFO_DESCR, "You have found a funeral urn.")
else
player:sendTextMessage(MESSAGE_INFO_DESCR, "You have already received the funeral urn.")
end
return true
end
Code:
Lua Script Error: [Npc interface]
data/npc/scripts/Angus.lua:onCreatureSay
data/npc/scripts/Angus.lua:303: attempt to compare number with boolean
stack traceback:
[C]: in function '__lt'
data/npc/scripts/Angus.lua:303: in function 'callback'
data/npc/lib/npcsystem/npchandler.lua:410: in function 'onCreatureSay'
data/npc/scripts/Angus.lua:7: in function <data/npc/scripts/Angus.lua:7>
Lua Script Error: [Npc interface]
data/npc/scripts/Angus.lua:onCreatureSay
data/npc/scripts/Angus.lua:303: attempt to compare number with boolean
stack traceback:
[C]: in function '__lt'
data/npc/scripts/Angus.lua:303: in function 'callback'
data/npc/lib/npcsystem/npchandler.lua:410: in function 'onCreatureSay'
data/npc/scripts/Angus.lua:7: in function <data/npc/scripts/Angus.lua:7>
hanks and regards
Last edited: