• 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!

[10.77][TFS 1.2] ORTS, a real map project

@Evil Puncker

I have gone I said hi, hello and no answer and update me when I see something added on page that I put before.
Right now I'm saying hi and does not answer.
 
this is that I have melchior.lua

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 greetCallback(cid)
    npcHandler:setMessage(MESSAGE_GREET, Player(cid):getSex() == 0 and "Welcome, |PLAYERNAME|! The lovely sound of your voice shines like a beam of light through my solitary darkness!" or "Greetings, |PLAYERNAME|. I do not see your face, but I can read a thousand things in your voice!")
end

local function creatureSayCallback(cid, type, msg)
    if not npcHandler:isFocused(cid) then
        return false
    end
    local player = Player(cid)
    -- WORD OF GREET
    if msgcontains(msg, "word of greeting") then
        if player:getStorageValue(Factions) < 1 then
            npcHandler:say({
                "The djinns have an ancient code of honour. This code includes a special concept of hospitality. Anybody who utters the word of greeting must not be attacked even if he is an enemy. Well, at least that is what the code says. ...",
                "I have found out, though, that this does not work at all times. There is no point to say the word of greeting to an enraged djinn. ...",
                "I can tell you the word of greeting if you're interested. It is {DJANNI'HAH}. Remember this word well, stranger. It might save your life one day. ...",
                "And keep in mind that you must choose sides in this conflict. You can only follow the Efreet or the Marid - once you have made your choice there is no way back. I know from experience that djinn do not tolerate double-crossing."
            }, cid)
            player:setStorageValue(Factions, 2)
            npcHandler.topic[cid] = 0
        end
    end
    return true
end

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:setCallback(CALLBACK_GREET, greetCallback)
npcHandler:setMessage(MESSAGE_FAREWELL, "Farewell, stranger. May Uman the Wise guide your steps in this treacherous land.")
npcHandler:setMessage(MESSAGE_WALKAWAY, "Farewell, stranger. May Uman the Wise guide your steps in this treacherous land.")
npcHandler:addModule(FocusModule:new())
 
So is the door..

WOTE - Mission 4.png
 
@Evil Puncker


You've checked the NPC Melchior, because I changed the lib folder which is in the repository and I was not any NPC, I'm back to put it back to work had and all, sell / buy, travel, but melchior still no go, which makes me think that is not going umar the blue djinn,
and if I start to look, maybe also fail some more, do not you think?

can you help me please, if only to tell me where I should look.
greetings and thanks.
 
Back
Top