Ir para conteúdo

Featured Replies

Postado

Como arrumo isso? ate quem é free account ta conseguindo ir pra edron
tfs 0.3.0
script do barco de carlin

---Edron----------------------------------------------------------------------------------------------------------------------------------------- 
local EdronText = 'Do you want to Travel to Edron for 110 gold coins?' 
local EdronTextNo = 'Ok, come back when you want then!' 
local NoTravel = 'Sorry, i do not travel to this city..' 
local EdronLvl = 8 
local EdronPremium = true --True/false 

--Edron-- 
if Edron == true then 
local travelNode = keywordHandler:addKeyword({'edron'},  
StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = EdronText }) 
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = EdronPremium, level = EdronLvl, cost = EdronCost, destination = EdronPosition }) 
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = EdronTextNo }) 
else 
local travelNode = keywordHandler:addKeyword({'edron'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = NoTravel }) 
end 
  • Respostas 5
  • Visualizações 1.5k
  • Created
  • Última resposta

Top Posters In This Topic

Postado
local pos = {x=1, y=2, z=3}
local Topic = {}
if isPremium(cid) then
    if getPlayerLevel(cid) > 7 then
        if msgcontains(msg, 'edron') then
            selfSay('Do you want to Travel to Edron for 110 gold coins?', cid)
            Topic[cid] = 1
        elseif Topic[cid] == 1 and msgcontains(msg, 'yes') then
                if not isPlayerPzLocked(cid) then
                    if doPlayerRemoveMoney(cid, 110) then
                        selfSay('Set the sails!', cid)
                        doSendMagicEffect(getThingPos(cid), CONST_ME_TELEPORT)
                        doTeleportThing(cid, pos)
                        doSendMagicEffect(pos, CONST_ME_TELEPORT)
                        Topic[cid] = 0
                    else
                        selfSay('You need pay the travel.', cid)
                        Topic[cid] = 0
                    end
                else
                    selfSay('First get rid of those blood stains! You are not going to ruin my vehicle!', cid)
                    Topic[cid] = 0
                end
        elseif Topic[cid] == 1 and msgcontains(msg, 'no') then
            selfSay('Ok, come back when you want then!', cid)
            Topic[cid] = 0
        end
    else
        selfSay('You need to be level 8 up to travel in this boat.', cid)
        Topic[cid] = 0
    end
else
    selfSay('You need be premium account to travel with me.', cid)
    Topic[cid] = 0
end

Editado por vankk
Msg se nao tiver money. (veja o histórico de edições)

discord.pngDiscord: vankk #7765

Precisando de ajuda? Entre em contato comigo via Discord.

 

Muitos vêm seus muitos dias de glória, mas poucos vêm seus muitos dias de luta.

Postado
  • Autor
local pos = {x=1, y=2, z=3}
local Topic = {}
if isPremium(cid) then
    if getPlayerLevel(cid) > 7 then
        if msgcontains(msg, 'edron') then
            selfSay('Do you want to Travel to Edron for 110 gold coins?', cid)
            Topic[cid] = 1
        elseif Topic[cid] == 1 and msgcontains(msg, 'yes') then
                if not isPlayerPzLocked(cid) then
                    if doPlayerRemoveMoney(cid, 110) then
                        selfSay('Set the sails!', cid)
                        doSendMagicEffect(getThingPos(cid), CONST_ME_TELEPORT)
                        doTeleportThing(cid, pos)
                        doSendMagicEffect(pos, CONST_ME_TELEPORT)
                        Topic[cid] = 0
                    else
                        selfSay('You need pay the travel.', cid)
                        Topic[cid] = 0
                    end
                else
                    selfSay('First get rid of those blood stains! You are not going to ruin my vehicle!', cid)
                    Topic[cid] = 0
                end
        elseif Topic[cid] == 1 and msgcontains(msg, 'no') then
            selfSay('Ok, come back when you want then!', cid)
            Topic[cid] = 0
        end
    else
        selfSay('You need to be level 8 up to travel in this boat.', cid)
        Topic[cid] = 0
    end
else
    selfSay('You need be premium account to travel with me.', cid)
    Topic[cid] = 0
end

crash tfs 0.3.0

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

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo