Ir para conteúdo
  • Cadastre-se

Posts Recomendados

eae galera

blz?

Estou voltando mais uma vez para k... AUSHau

Bom Agora o o bug eh o seguinte: quando eu chego na sala de premio da inq e clico no bau, aparece que eu ja fiz a quest, sendo que é a primeira vez..

oq pode ser??

vlw

abraçow

Link para o post
Compartilhar em outros sites

Crie um arquivo lua com o nome Inquisiton, e coloque isso:

function onUse(cid, item, frompos, item2, topos)

if item.uid == 5610 then

queststatus = getPlayerStorageValue(cid,5619)

if queststatus == -1 then

doPlayerSendTextMessage(cid,22,"You have found a royal crossbow.")

doPlayerAddItem(cid,8851,1)

setPlayerStorageValue(cid,5619,1)

else

doPlayerSendTextMessage(cid,22,"It is empty.")

end

elseif item.uid == 5611 then

queststatus = getPlayerStorageValue(cid,5619)

if queststatus == -1 then

doPlayerSendTextMessage(cid,22,"You have found a warsinger bow.")

doPlayerAddItem(cid,8854,1)

setPlayerStorageValue(cid,5619,1)

else

doPlayerSendTextMessage(cid,22,"It is empty.")

end

elseif item.uid == 5612 then

queststatus = getPlayerStorageValue(cid,5619)

if queststatus == -1 then

doPlayerSendTextMessage(cid,22,"You have found a spellbook of dark mysteries.")

doPlayerAddItem(cid,8918,1)

setPlayerStorageValue(cid,5619,1)

else

doPlayerSendTextMessage(cid,22,"It is empty.")

end

elseif item.uid == 5613 then

queststatus = getPlayerStorageValue(cid,5619)

if queststatus == -1 then

doPlayerSendTextMessage(cid,22,"You have found a emerald sword.")

doPlayerAddItem(cid,8930,1)

setPlayerStorageValue(cid,5619,1)

else

doPlayerSendTextMessage(cid,22,"It is empty.")

end

elseif item.uid == 5614 then

queststatus = getPlayerStorageValue(cid,5619)

if queststatus == -1 then

doPlayerSendTextMessage(cid,22,"You have found a hellforged axe.")

doPlayerAddItem(cid,8924,1)

setPlayerStorageValue(cid,5619,1)

else

doPlayerSendTextMessage(cid,22,"It is empty.")

end

elseif item.uid == 5615 then

queststatus = getPlayerStorageValue(cid,5619)

if queststatus == -1 then

doPlayerSendTextMessage(cid,22,"You have found a obsidian truncheon.")

doPlayerAddItem(cid,8928,1)

setPlayerStorageValue(cid,5619,1)

else

doPlayerSendTextMessage(cid,22,"It is empty.")

end

elseif item.uid == 5616 then

queststatus = getPlayerStorageValue(cid,5619)

if queststatus == -1 then

doPlayerSendTextMessage(cid,22,"You have found a master archer's armor.")

doPlayerAddItem(cid,8888,1)

setPlayerStorageValue(cid,5619,1)

else

doPlayerSendTextMessage(cid,22,"It is empty.")

end

elseif item.uid == 5617 then

queststatus = getPlayerStorageValue(cid,5619)

if queststatus == -1 then

doPlayerSendTextMessage(cid,22,"You have found a fireborn giant armor.")

doPlayerAddItem(cid,8881,1)

setPlayerStorageValue(cid,5619,1)

else

doPlayerSendTextMessage(cid,22,"It is empty.")

end

elseif item.uid == 5618 then

queststatus = getPlayerStorageValue(cid,5619)

if queststatus == -1 then

doPlayerSendTextMessage(cid,22,"You have found a robe of the underworld.")

doPlayerAddItem(cid,8890,1)

setPlayerStorageValue(cid,5619,1)

else

doPlayerSendTextMessage(cid,22,"It is empty.")

end

else

return 0

end

return 1

end

Agora em actions.xml, vc adiciona isso:

<!-- Inquisition quest -->

        <action uniqueid="5610" script="inquisition.lua" />

        <action uniqueid="5611" script="inquisition.lua" />

        <action uniqueid="5612" script="inquisition.lua" />

        <action uniqueid="5613" script="inquisition.lua" />

        <action uniqueid="5614" script="inquisition.lua" />

        <action uniqueid="5615" script="inquisition.lua" />

        <action uniqueid="5616" script="inquisition.lua" />

        <action uniqueid="5617" script="inquisition.lua" />

        <action uniqueid="5618" script="inquisition.lua" />

Edit

Esqueci, adicione os ID nos baus pelo map editor,

Editado por Kimoszin (veja o histórico de edições)
Link para o post
Compartilhar em outros sites

Pelo map editor vc bota:

No bau do Royal CrossBow:

UniqueID: 5610

No bau do Warsinger bow:

UniqueID: 5611

No bau do Spellbook of Dark Mysteries:

UniqueID: 5612

No bau da Esmerald Sword:

UniqueID: 5613

No bau do Hellforged Axe:

UniqueID: 5614

No bau da Obsidian Truncheon:

UniqueID: 5615

No bau da Master Archer's Armor:

UniqueID: 5616

No bau da Fireborn Giant Armor:

UniqueID: 5617

No bau da Robe Of The Underworld:

UniqueID: 5618

Link para o post
Compartilhar em outros sites

o meu npc pra ir pra inq ta bugado, eu pago o dinheiro que ele pede mais mesmo assim nao consigo entrar... tem como me ajudar nessa ai?

Link para o post
Compartilhar em outros sites

Poste o script do NPC,

Geralmente esta em \data\npc ai vc acha o nome do npc, e cola aqui depois o script

o script vc encontra numa linha igual a essa:

<npc name="SemNome" script="data/npc/scripts/ScriptDoNpc.lua" walkinterval="5000" floorchange="0">
Link para o post
Compartilhar em outros sites

ta ae

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

function creatureSayCallback(cid, type, msg)

if(not npcHandler:isFocused(cid)) then

return false

end

local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid

if msgcontains(msg, 'permission') then

selfSay('You want to Acquire Permissions for The Inquisition Quest? If you want to say {inquisition}?', cid)

talkState[talkUser] = 2

elseif msgcontains(msg, 'rules') then

selfSay('What do you want to know? Something about the three different {GENERAL} rules or the {PRICES}? Maybe you also want to know what happens when you die?', cid)

talkState[talkUser] = 1

elseif talkState[talkUser] == 1 then

if msgcontains(msg, 'çopopo') then

selfSay('We have three difficulty. The hardest are warlord.', cid)

talkState[talkUser] = 0

elseif msgcontains(msg, 'general') then

selfSay('Remember that if you die, it is YOUR problem and you won\'t be able to get back to your corpse and your backpack.If you enter in inquisition or you win or you go to temple.', cid)

talkState[talkUser] = 0

elseif msgcontains(msg, 'prices') then

selfSay('A great Inquisition cost 400000 golds.', cid)

talkState[talkUser] = 0

end

elseif talkState[talkUser] == 2 then

if msgcontains(msg, 'kiukiukiu') then

selfSay('The fee is 1000 gold for one try. Remember that if you die, it is YOUR problem and you won\'t be able to get back to your corpse andyour backpack. Do you really want to participate in the arena in the easiest difficulty?', cid)

talkState[talkUser] = 3

elseif msgcontains(msg, 'koikoikoi') then

selfSay('The fee is 5000 gold for one try. Remember that if you die, it is YOUR problem and you won\'t be able to get back to your corpse and your backpack. Do you really want to participate in the arena in the medium difficulty?', cid)

talkState[talkUser] = 4

elseif msgcontains(msg, 'inquisition') then

selfSay('You really want to pay 600k in the Permissions Inquisition Quest, Knowing You Back there dead?', cid)

talkState[talkUser] = 5

end

elseif talkState[talkUser] == 3 then

if msgcontains(msg, 'yes') then

if getPlayerStorageValue(cid,50066) == -1 then

if(doPlayerRemoveMoney(cid, 1000) == TRUE) then

setPlayerStorageValue(cid,5066,1)

selfSay('As you wish! You can pass the door now and enter the teleporter to the pits.', cid)

end

else

selfSay('You already win this arena!', cid)

end

else

selfSay('Then not. Get away and don\'t waste my time!', cid)

end

elseif talkState[talkUser] == 4 then

if msgcontains(msg, 'yes') then

if getPlayerStorageValue(cid,500677) == -1 then

if(doPlayerRemoveMoney(cid, 5000) == TRUE) then

setPlayerStorageValue(cid,500677,1)

selfSay('As you wish! You can pass the door now and enter the teleporter to the pits.', cid)

end

else

selfSay('You already win this arena!', cid)

end

else

selfSay('Then not. Get away and don\'t waste my time!', cid)

end

elseif talkState[talkUser] == 5 then

if msgcontains(msg, 'yes') then

if getPlayerStorageValue(cid,5076) == -1 then

if(doPlayerRemoveMoney(cid, 600000) == TRUE) then

setPlayerStorageValue(cid,5074,1)

selfSay('As you wish! You can pass the door now and enter the door to the pits.', cid)

end

else

selfSay('As you wish! You can pass the door now and enter the door to the pits.', cid)

end

else

selfSay('Then not. Get away and don\'t waste my time!', cid)

end

talkState[talkUser] = 0

elseif(msgcontains(msg, 'no') and isInArray({1}, talkState[talkUser]) == TRUE) then

talkState[talkUser] = 0

selfSay('Ok then.', cid)

end

return true

end

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)

npcHandler:addModule(FocusModule:new())

Henricus.xml

Link para o post
Compartilhar em outros sites

Tente esse:

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


function creatureSayCallback(cid, type, msg)

    if(not npcHandler:isFocused(cid)) then

        return false

    end


    local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid



    if msgcontains(msg, 'inquisitor') then

        selfSay('The churches of the gods entrusted me with the enormous and responsible task to lead the inquisition. I leave the field work to inquisitors who I recruit from fitting people that cross my way. If you wanna {join} in the inquisition, ask me why!' ,cid)

        talkState[talkUser] = 1


    elseif talkState[talkUser] == 1 then

        if msgcontains(msg, 'join') then

        selfSay('Do you want to join the inquisition?', cid)

        talkState[talkUser] = 2

        end


    elseif msgcontains(msg, 'mission') then

        if getPlayerStorageValue(cid,20000) == 1 then

            selfSay('Your mission is simple,You must enter in the retreat and destruct the Shadow Nexus. Then report to me about your mission.', cid)

            setPlayerStorageValue(cid,20000,2)

            setPlayerStorageValue(cid,15202,1)

        elseif getPlayerStorageValue(cid,20000) == 2 then

            selfSay('Are you so crazy? You don\'t have finished this mission.', cid)

        elseif getPlayerStorageValue(cid,20000) == 3 then

            selfSay('Did you destructed the shadow nexus?', cid)

            talkState[talkUser] = 3

        elseif getPlayerStorageValue(cid,20000) == 4 then

            selfSay('Sorry, no missions yet!', cid)

        end


        elseif msgcontains(msg, 'yes') then

            if talkState[talkUser] == 2 then

            selfSay('So be it. Now you are a member of the inquisition. You might ask me for a {mission} to raise in my esteem.', cid)

            setPlayerStorageValue(cid,20000,1)

        elseif msgcontains(msg, 'yes') and talkState[talkUser] = 3 then

            selfSay('Congratulations! Now you can get your reward in the room to the north, in addition you can use the Demonhunter Outfit.', cid)

            doPlayerAddExp(cid,1500000)

            doPlayerAddOutfitId(cid,20,0)

            setPlayerStorageValue(cid,20000,4)

            setPlayerStorageValue(cid,15203,1)

        elseif talkState[talkUser] == 5 then

            selfSay('Ok, Good Looky. Then report to me about your mission.', cid)

            setPlayerStorageValue(cid,15201,4)

        end


    end


    return true

end


npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)

npcHandler:addModule(FocusModule:new())

Editado por Kimoszin (veja o histórico de edições)
Link para o post
Compartilhar em outros sites

nao nao o npc eh da inquistion.... os scripts dele sao todos da inq, nenhum da arena

ai o erro que da

imagem.bmp

Editado por mariatti (veja o histórico de edições)
Link para o post
Compartilhar em outros sites

Esse erro acontece quando vc bota o script que te passei?

Se for use esse script pro npc:

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


function creatureSayCallback(cid, type, msg)

    if(not npcHandler:isFocused(cid)) then

        return false

    end


    local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid



    if msgcontains(msg, 'inquisitor') then

        selfSay('The churches of the gods entrusted me with the enormous and responsible task to lead the inquisition. I leave the field work to inquisitors who I recruit from fitting people that cross my way. If you wanna {join} in the inquisition, ask me why!' ,cid)

        talkState[talkUser] = 1


    elseif talkState[talkUser] == 1 then

        if msgcontains(msg, 'join') then

        selfSay('Do you want to join the inquisition?', cid)

        talkState[talkUser] = 2

        end


    elseif msgcontains(msg, 'mission') then

        if getPlayerStorageValue(cid,20000) == 1 then

            selfSay('Your mission is simple,You must enter in the retreat and destruct the Shadow Nexus. Then report to me about your mission.', cid)

            setPlayerStorageValue(cid,20000,2)

            setPlayerStorageValue(cid,15202,1)

        elseif getPlayerStorageValue(cid,20000) == 2 then

            selfSay('Are you so crazy? You don\'t have finished this mission.', cid)

        elseif getPlayerStorageValue(cid,20000) == 3 then

            selfSay('Did you destructed the shadow nexus?', cid)

            talkState[talkUser] = 3

        elseif getPlayerStorageValue(cid,20000) == 4 then

            selfSay('Sorry, no missions yet!', cid)

        end


        elseif msgcontains(msg, 'yes') then

            if talkState[talkUser] == 2 then

            selfSay('So be it. Now you are a member of the inquisition. You might ask me for a {mission} to raise in my esteem.', cid)

            setPlayerStorageValue(cid,20000,1)

        elseif msgcontains(msg, 'yes') and talkState[talkUser] == 3 then

            selfSay('Congratulations! Now you can get your reward in the room to the north, in addition you can use the Demonhunter Outfit.', cid)

            doPlayerAddExp(cid,1500000)

            doPlayerAddOutfitId(cid,20,0)

            setPlayerStorageValue(cid,20000,4)

            setPlayerStorageValue(cid,15203,1)

        elseif talkState[talkUser] == 5 then

            selfSay('Ok, Good Looky. Then report to me about your mission.', cid)

            setPlayerStorageValue(cid,15201,4)

        end


    end


    return true

end


npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)

npcHandler:addModule(FocusModule:new())

Editado por Kimoszin (veja o histórico de edições)
Link para o post
Compartilhar em outros sites

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo