• 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 "the master bone" and "the dream master" problems can help me?

bsdailha333

New Member
Joined
Mar 3, 2015
Messages
39
Reaction score
0
I'm with the problem !!
When Do the quest to win the outfit brotherhood or nightmare! When it arrives in late talking with NPC him not give you outfit! and if you try to talk to him again he says That You already have the outfit has no more! you guys have any script que has to get the outfits without the NPCs ?? or fix the scripts ??

I speak :
First brotherhood addon
second brothehood addon

first nightmare addon
second nightmare addon



the dream master.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


-- Storage IDs --

obonee           = 29037
obone           = 29036
ojester        = 29038
fjester        = 28341
sjester        = 28342

bone        = 'You are a member of The Brotherhood of Bones, don\'t try to mock me on son.'
newaddon    = 'Ah, right! The Nightmare Knight outfit! Here you go.'
noitems        = 'You do not have the demonic essences that i required.'
noitems2    = 'You do not have all the required items or you do not have the range, which by the way, is a requirement for this addon.'
already        = 'It seems you already have this addon, Arghh...'

function JesterFirst(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end

    if isPremium(cid) then
        if getPlayerStorageValue(cid,fjester) == -1 then
        if getPlayerItemCount(cid,6500) >= 500 then
        if doPlayerRemoveItem(cid,6500,500) then
            npcHandler:say('You are now a Nightmare Knight\'s member. Here take this addon.')
            
            doSendMagicEffect(getCreaturePosition(cid), 13)
            setPlayerStorageValue(cid,fjester,1)
            if getPlayerSex(cid) == 1 then
            doPlayerAddOutfit(cid, 268, 1)
            elseif getPlayerSex(cid) == 0 then
            doPlayerAddOutfit(cid, 269, 1)           
            end
        end
        else
            selfSay(noitems)
        end
    else
        selfSay(already)
end
    end
    end

function JesterSecond(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end
  
    if isPremium(cid) then
        if getPlayerStorageValue(cid,sjester) == -1 then
        if getPlayerItemCount(cid,6500) >= 1000 then
        if doPlayerRemoveItem(cid,6500,1000) then
            npcHandler:say('You are worthy of an advancement. I grant you the rank of Death Dealer of our order. Take this addon and shield as symbol of your new status.')
            
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddItem(cid, 6391, 1)
            setPlayerStorageValue(cid,sjester,1)
            if getPlayerSex(cid) == 1 then
            doPlayerAddOutfit(cid, 268, 2)
            elseif getPlayerSex(cid) == 0 then
            doPlayerAddOutfit(cid, 269, 2)
         end
        end
        else
            selfSay(noitems)
        end
    else
        selfSay(already)
end
    end
    end



node2 = keywordHandler:addKeyword({'first'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To get the first Nightmare Knight addon you need to give me 500 demonic essences, do you have them with you?'})
node2:addChildKeyword({'yes'}, JesterFirst, {})
node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you collected them all.', reset = true})

node3 = keywordHandler:addKeyword({'second'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To get the second Nightmare Knight addon you need to give me 1000 demonic essences, do you have them with you?'})
node3:addChildKeyword({'yes'}, JesterSecond, {})
node3:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you collected them all.', reset = true})

npcHandler:addModule(FocusModule:new())


the bone master.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


-- Storage IDs --

dream          = 21164
dreamm         = 21165
ojester        = 29035
fjester        = 21161
sjester        = 21162

bone        = 'You are a member of The Nightmare Knights, don\'t try to mock me on son.'
newaddon    = 'Ah, right! The Brotherhood of Bones outfit! Here you go.'
noitems        = 'You do not have the demonic essences that i required.'
noitems2    = 'You do not have all the required items or you do not have the range, which by the way, is a requirement for this addon.'
already        = 'It seems you already have this addon, Arghh...'

function JesterFirst(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end

    if isPremium(cid) then
        if getPlayerStorageValue(cid,fjester) == -1 then
        if getPlayerItemCount(cid,6500) >= 500 then
        if doPlayerRemoveItem(cid,6500,500) then
            npcHandler:say('You are now a Brotherhood of Bones member. Here take this addon.')
            
            doSendMagicEffect(getCreaturePosition(cid), 13)
            setPlayerStorageValue(cid,fjester,1)
            if getPlayerSex(cid) == 1 then
            doPlayerAddOutfit(cid, 278, 1)
            elseif getPlayerSex(cid) == 0 then
            doPlayerAddOutfit(cid, 279, 1)
        end
        end
        else
            selfSay(noitems)
        end
    else
        selfSay(already)
end
    end
    end

function JesterSecond(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end
  
    if isPremium(cid) then
        if getPlayerStorageValue(cid,fjester) == 1 then
        if getPlayerItemCount(cid,6500) >= 1000 then
        if doPlayerRemoveItem(cid,6500,1000) then
            npcHandler:say('You are worthy of an advancement. I grant you the rank of Death Dealer of our order. Take this addon and shield as symbol of your new status.')
            
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddItem(cid, 6433, 1)
            setPlayerStorageValue(cid,sjester,1)
            if getPlayerSex(cid) == 1 then
            doPlayerAddOutfit(cid, 278, 2)
            elseif getPlayerSex(cid) == 0 then
            doPlayerAddOutfit(cid, 279, 2)
        end   
        end
        else
            selfSay(noitems)
        end
    else
        selfSay(already)
end
end
end



node2 = keywordHandler:addKeyword({'first'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To get the first Brotherhood of Bones addon you need to give me 500 demonic essences, do you have them with you?'})
node2:addChildKeyword({'yes'}, JesterFirst, {})
node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you collected them all.', reset = true})

node3 = keywordHandler:addKeyword({'second'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To get the second Brotherhood of Bones addon you need to give me 1000 demonic essences, do you have them with you?'})
node3:addChildKeyword({'yes'}, JesterSecond, {})
node3:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you collected them all.', reset = true})

npcHandler:addModule(FocusModule:new())
 
Last edited by a moderator:
I have to replace or add to the script?

<outfit id="19" quest = "15009">
<list gender="0" lookType="279" name="Brotherhood"/>
<list gender="1" lookType="278" name="Brotherhood"/>
</outfit>


<outfit id="17" quest = "15010">
<list gender="0" lookType="269" name="Nightmare"/>
<list gender="1" lookType="268" name="Nightmare"/>
</outfit>
 
Last edited by a moderator:
Your script appears to be missing a lot of the code..

in either case, change your two outfits.. to this, and it should be fine.

Code:
<outfit id="19" quest = "28341">
    <list gender="0" lookType="279" name="Brotherhood"/>
    <list gender="1" lookType="278" name="Brotherhood"/>
</outfit>


<outfit id="17" quest = "21161">
    <list gender="0" lookType="269" name="Nightmare"/>
    <list gender="1" lookType="268" name="Nightmare"/>
</outfit>

You should be able to change, then restart server, no characters need to be deleted.
 
working <3

but when he speaks to the bone master
first brotherhood addon
he asks 500 deminic essence there and he will deliver you from the nightmare addon first !!
and the dream master
when he speaks
first nightmare addon
it's the full brotherhood
and when you talk
second nightmare addon it's the second part of the nightmare

It is to fix?

could correct please ??
 
Last edited by a moderator:
Dreammaster
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


-- Storage IDs --

obonee = 29037
obone = 29036
ojester = 29038
fjester = 28341
sjester = 28342

bone = 'You are a member of The Brotherhood of Bones, don\'t try to mock me on son.'
newaddon = 'Ah, right! The Nightmare Knight outfit! Here you go.'
noitems = 'You do not have the demonic essences that i required.'
noitems2 = 'You do not have all the required items or you do not have the range, which by the way, is a requirement for this addon.'
already = 'It seems you already have this addon, Arghh...'

function JesterFirst(cid, message, keywords, parameters, node)

if(not npcHandler:isFocused(cid)) then
return false
end

if isPremium(cid) then
if getPlayerStorageValue(cid,fjester) == -1 then
if getPlayerItemCount(cid,6500) >= 500 then
if doPlayerRemoveItem(cid,6500,500) then
npcHandler:say('You are now a Nightmare Knight\'s member. Here take this addon.')

doSendMagicEffect(getCreaturePosition(cid), 13)
setPlayerStorageValue(cid,fjester,1)
if getPlayerSex(cid) == 1 then
doPlayerAddOutfit(cid, 278, 1)
elseif getPlayerSex(cid) == 0 then
doPlayerAddOutfit(cid, 279, 1)
end
end
else
selfSay(noitems)
end
else
selfSay(already)
end
end
end

function JesterSecond(cid, message, keywords, parameters, node)

if(not npcHandler:isFocused(cid)) then
return false
end

if isPremium(cid) then
if getPlayerStorageValue(cid,sjester) == -1 then
if getPlayerItemCount(cid,6500) >= 1000 then
if doPlayerRemoveItem(cid,6500,1000) then
npcHandler:say('You are worthy of an advancement. I grant you the rank of Death Dealer of our order. Take this addon and shield as symbol of your new status.')

doSendMagicEffect(getCreaturePosition(cid), 13)
doPlayerAddItem(cid, 6391, 1)
setPlayerStorageValue(cid,sjester,1)
if getPlayerSex(cid) == 1 then
doPlayerAddOutfit(cid, 278, 2)
elseif getPlayerSex(cid) == 0 then
doPlayerAddOutfit(cid, 279, 2)
end
end
else
selfSay(noitems)
end
else
selfSay(already)
end
end
end



node2 = keywordHandler:addKeyword({'first'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To get the first Nightmare Knight addon you need to give me 500 demonic essences, do you have them with you?'})
node2:addChildKeyword({'yes'}, JesterFirst, {})
node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you collected them all.', reset = true})

node3 = keywordHandler:addKeyword({'second'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To get the second Nightmare Knight addon you need to give me 1000 demonic essences, do you have them with you?'})
node3:addChildKeyword({'yes'}, JesterSecond, {})
node3:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you collected them all.', reset = true})

npcHandler:addModule(FocusModule:new())
bonemaster
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


-- Storage IDs --

dream = 21164
dreamm = 21165
ojester = 29035
fjester = 21161
sjester = 21162

bone = 'You are a member of The Nightmare Knights, don\'t try to mock me on son.'
newaddon = 'Ah, right! The Brotherhood of Bones outfit! Here you go.'
noitems = 'You do not have the demonic essences that i required.'
noitems2 = 'You do not have all the required items or you do not have the range, which by the way, is a requirement for this addon.'
already = 'It seems you already have this addon, Arghh...'

function JesterFirst(cid, message, keywords, parameters, node)

if(not npcHandler:isFocused(cid)) then
return false
end

if isPremium(cid) then
if getPlayerStorageValue(cid,fjester) == -1 then
if getPlayerItemCount(cid,6500) >= 500 then
if doPlayerRemoveItem(cid,6500,500) then
npcHandler:say('You are now a Brotherhood of Bones member. Here take this addon.')

doSendMagicEffect(getCreaturePosition(cid), 13)
setPlayerStorageValue(cid,fjester,1)
if getPlayerSex(cid) == 1 then
doPlayerAddOutfit(cid, 268, 1)
elseif getPlayerSex(cid) == 0 then
doPlayerAddOutfit(cid, 269, 1)
end
end
else
selfSay(noitems)
end
else
selfSay(already)
end
end
end

function JesterSecond(cid, message, keywords, parameters, node)

if(not npcHandler:isFocused(cid)) then
return false
end

if isPremium(cid) then
if getPlayerStorageValue(cid,fjester) == 1 then
if getPlayerItemCount(cid,6500) >= 1000 then
if doPlayerRemoveItem(cid,6500,1000) then
npcHandler:say('You are worthy of an advancement. I grant you the rank of Death Dealer of our order. Take this addon and shield as symbol of your new status.')

doSendMagicEffect(getCreaturePosition(cid), 13)
doPlayerAddItem(cid, 6433, 1)
setPlayerStorageValue(cid,sjester,1)
if getPlayerSex(cid) == 1 then
doPlayerAddOutfit(cid, 268, 2)
elseif getPlayerSex(cid) == 0 then
doPlayerAddOutfit(cid, 269, 2)
end
end
else
selfSay(noitems)
end
else
selfSay(already)
end
end
end



node2 = keywordHandler:addKeyword({'first'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To get the first Brotherhood of Bones addon you need to give me 500 demonic essences, do you have them with you?'})
node2:addChildKeyword({'yes'}, JesterFirst, {})
node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you collected them all.', reset = true})

node3 = keywordHandler:addKeyword({'second'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To get the second Brotherhood of Bones addon you need to give me 1000 demonic essences, do you have them with you?'})
node3:addChildKeyword({'yes'}, JesterSecond, {})
node3:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you collected them all.', reset = true})

npcHandler:addModule(FocusModule:new())
 
Back
Top