Ir para conteúdo
  • Cadastre-se

[SQLite] -=[TFS]=- 0.4 8.60 EU NÃO SEI ONDE INSTALA A STORAGE NA PORTA NPC HERICUS INQUISA


Posts Recomendados

 

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, 'permision') 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 1000000000kkk golds.', cid)
                talkState[talkUser] = 0
            end




    elseif talkState[talkUser] == 2 then
        if msgcontains(msg, 'kiukiukiu') then
                selfSay('The fee is 1000000000kkk 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 1000000000kkk 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 1000000000kkk 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, 1000000000) == 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] == 5 then
            if msgcontains(msg, 'yes') then
                if getPlayerStorageValue(cid,500677) == -1 then
                    if(doPlayerRemoveMoney(cid, 1000000000) == 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, 1000000000) == 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())

 

91-thais.png

Link para o post
Compartilhar em outros sites

Eu não entendi muito bem o seu problema, mas pelo que entendi, você quer uma porta que passe com o storage da inquisition?
 

<action actionid="actionid que vai na porta" event="script" value="localdoscript/nomedoscript.lua"/>


 

function onUse(cid, item, frompos, item2, topos)
    if getPlayerStorageValue(cid, 5066) < 0 then
        doCreatureSay(cid, "Você não tem permissão para passar pela porta", TALKTYPE_ORANGE_1)
    end
    if getPlayerStorageValue(cid, 5066) >= 1 then
        doTeleportThing(cid, topos)
    end
    return true
end

 

VlVKQKC.png&key=d5c17620ae9567a1f898dd7a

 

 

 

  • 532144234_Logo_NTO_BLOOD_Finish_HIM_By_Antonio_Luckas(3).png.fd58d1af125a7e82ccdd751637e9ca93.png
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