Ir para conteúdo

luismlk

Campones
  • Total de itens

    33
  • Registro em

  • Última visita

Posts postados por luismlk

  1. Tipo do script:Action/Talktion

    Protocolo (versão do Tibia):8.54

    Servidor utilizado:sql, Demonicsever versao 0.1.0

    Nível de experiência:Basico

    Adicionais/Informações:Eu queria que quando um player criase uma guild pudese escolher entre dois lados o bom e o mau, sendo que escolhendo um lado ganharia um outfit e o ganharia o outro outfit.Exemplo: lado bom outfit hero, lado mau outfit killer. Sendo que os player que ele convidase para a guild tmb ganhase o outfit do lado que o dono da guild escolheu

     

    Dois exemplos de como poderia ser:

    !creatguild Nome da guild, lado(bom/mau)

     

    ou

     

    !creatguild Nome da Guild

    ai aparecia alguma coisa ele teria que escolher

    !lado(bom/mau)

     

    Se... nao for pedir demais.

    Fazer com que cada lado ganhase um item ^^

     

    OBS: Não tenho os outfit terminados nen os items entao coloque onde eu devo colocar os ID dos item e os LOOKTYPE dos outfit

     

    BOM espero que comsiguam (YN) pois eu não consegui.

     

    AGRADESO DES DE JA!

  2. Gif.

     

    a sua gif não tem movimentos só tem fala e um ataque, movinto em gif que eu disse

    é andar.

     

    A Fake ficou super simplés, nada demais.

     

    ps: nao gostei mais espero que gosten <- HUAHAUHAUHAUHA

     

    que que eu poderia faze eu nao gostei

     

    mais en quanto aos movimentos eu to fazendor por etapas primeiro alinhamento e depois alinhamento e movinento e só foi pra min treina msm

  3. Galera fis algumas swords para eu treinar e fikar melhor (claro óbviamente que treinando se fika melhor)

    e vou mostrar para vcs--

     

    Thunder Cats sword--

    imagemz.png

     

    Poison Sabre--

    newswoed.png

     

    Future Sabre--

    sword1.jpg

     

    Strong Sword--

    77760242.png

     

    Future Strong Sword--

    sword.png

     

    Se forem comentar de uma sword só colóquen @e o nome déla

  4. Oi pessoal fis éssa magia para usar no meu ot e dessidi postar aki tmb vamos la

     

    DADOS:

    testado no aries 4.5.0

    usado na versao 8.10

    fuciona en todos os mapas

     

    va em data/spells/scripit copie qualquer um e cole, renomei para strong death e coloke isto dentro:

     

    --By Nandin--
    local combat1 = createCombatObject()
    setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
    setCombatParam(combat1, COMBAT_PARAM_EFFECT,CONST_ME_MORTAREA)
    setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -[color="#FF0000"]2.7[/color], -150, -[color="#FF0000"]2.4[/color], -150)
    
    local combat2 = createCombatObject()
    setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
    setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
    setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -[color="#FF0000"]2.7[/color], -150, -[color="#FF0000"]2.4[/color], -150)
    
    local combat3 = createCombatObject()
    setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
    setCombatParam(combat3, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
    setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -[color="#FF0000"]2.7[/color], -150, -[color="#FF0000"]2.4[/color], -150)
    
    local combat4 = createCombatObject()
    setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
    setCombatParam(combat4, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
    setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -[color="#FF0000"]2.7[/color], -150, -[color="#FF0000"]2.4[/color], -150)
    
    local combat5 = createCombatObject()
    setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
    setCombatParam(combat5, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
    setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -[color="#FF0000"]2.7[/color], -150, -[color="#FF0000"]2.4[/color], -150)
    
    [color="#0000FF"]arr1 = {
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
    {0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0},
    {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    }
    
    arr2 = {
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 1, 0, 2, 0, 1, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    }
    
    arr3 = {
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 1, 0, 0, 2, 0, 0, 1, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    }
    
    arr4 = {
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 1, 0, 0, 0, 2, 0, 0, 0, 1, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    }
    
    arr5 = {
    {1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {1, 0, 0, 0, 0, 2, 0, 0, 0, 0, 1},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    {1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1},
    }[/color]
    
    local area1 = createCombatArea(arr1)
    local area2 = createCombatArea(arr2)
    local area3 = createCombatArea(arr3)
    local area4 = createCombatArea(arr4)
    local area5 = createCombatArea(arr5)
    setCombatArea(combat1, area1)
    setCombatArea(combat2, area2)
    setCombatArea(combat3, area3)
    setCombatArea(combat4, area4)
    setCombatArea(combat5, area5)
    
    local function onCastSpell1(parameters)
       doCombat(parameters.cid, parameters.combat1, parameters.var)
    end
    
    local function onCastSpell2(parameters)
       doCombat(parameters.cid, parameters.combat2, parameters.var)
    end
    
    local function onCastSpell3(parameters)
       doCombat(parameters.cid, parameters.combat3, parameters.var)
    end
    
    local function onCastSpell4(parameters)
         doCombat(parameters.cid, parameters.combat4, parameters.var)
    end
    
    local function onCastSpell5(parameters)
         doCombat(parameters.cid, parameters.combat5, parameters.var)
    end
    
    
    function onCastSpell(cid, var)
    local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3, combat4 = combat4, combat5 = combat5 }
    [color="#006400"]addEvent(onCastSpell1, 100, parameters)
    addEvent(onCastSpell2, 300, parameters)
    addEvent(onCastSpell3, 500, parameters)
    addEvent(onCastSpell4, 700, parameters)
    addEvent(onCastSpell5, 900, parameters)[/color]
    
    end
    

     

    vamos as explicasões

     

    vermelho: a forsa da magia quanto maior mais forte a magia e quanto mais distantes um numero do outro mais chances de bater com varias forsas ex: setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -6.7, -150, -1.4, -150)

    isso teria uma posibilidade de atacar bem poko e bem forte

     

    azul: é a area da magia o 1 é onde éla cata e o dois é da onde éla vai ser lansada

     

    verde: como é uma magia praticamente mista por causa do tempo esse é o tempo que a magia vai sair por (explicasao no gift no final) se for alteral colóque numeros assima de 100 para a distacia de cada um

     

    agr va em data/spells/spell.xml e cole isso:

    <instant name="Strong Death" words="[color="#FF0000"]strong mort[/color]" lvl="[color="#0000FF"]100[/color]" maglv="[color="#006400"]50[/color]" mana="[color="#FF00FF"]2000[/color]" soul="0" exhaustion="1" prem="1" enabled="1" script="Strong Death.lua"><vocation id="5"/></instant>

     

    vermelho o que se ten que falar para conjurar a magia

    azul lvl para usar a magia

    verde o ml nessesario para usala

    rósa a mana nessesaria

     

    um gift da magia ele esta bem rapido pq nao sou bom com isso e tmb pq nao consegui capiturar cada instante da spell

    sadf.gif

     

    créditos: 100% by my

     

    espéro ter ajudado :smile_positivo:

  5. galera minha é a primeira sprite que eu fasso

    comenten critiquen só nao xinguen pois isso nao póde :smile_positivo:

     

    ai vai

    sword.jpg

     

    créditos 50% a min e 50% para os varios tuto que peguei

     

    éra pra ter ficado como eu desenhei na mao, mais ou menos assim:

     

    asudh.jpg

     

    diferente nao!

     

    comenten dem bastantes criticas que isso ajuda flw

  6. Aew galera estou trazendo um the oracle que fiz!!!igual o do global!!

     

    --dados do the oracle

    *versao 8.10 (mais acho que funciona de 8.00 a 8.11)

    *aries testado 0.4.5 e 0.4.0 (xml)

    *com tradução e sem tradução

    *testado em thyrania (mais creio que funcione em quase todos os mapas que tenha mais de uma cidade)

     

    eu consegui fazer um the oracle igual o do global com algumas ajudas eu fiz. mais eu só postei pq nao consegui emcontrar um the oracle para ot 8.10 para xml só em comtrava de versao antiga!

    bom eu coloquei no meu ot de thyrania pq eu odeio aquele the oracle de la!! para quen quer colocar em seu mapa de thyrania é só deletar as talkactions oralcle e se for em outro mapa é só colokar!!

     

    bom então mão na massa!!

    abra data/npc copie um arkivo qualquer de la e cóle e renomeie como the oracle abra-o deléte tudo e colé:

    <?xml version="1.0"?>

    <npc name="The Oracle" script="data/npc/scripts/oracle.lua" access="3">

    <look typeex="1448" corpse="2115"/>

     

    </npc>

    e depois abra data/npc/script copie um arkivo qualquer e cóle e renomeie como oracle abra-o deléte tudo e cóle:

    --by nandinmlk--

    local focus = 0

    local talk_start = 0

    local target = 0

    local following = false

    local attacking = false

    function onThingMove(creature, thing, oldpos, oldstackpos)

    end

     

    function onCreatureAppear(creature)

    end

     

    function onCreatureDisappear(cid, pos)

    if focus == cid then

    selfSay('CHILD! COME BACK WHEN YOU HAVE GROWN UP!')

    focus = 0

    talk_start = 0

    end

    end

     

    function onCreatureTurn(creature)

    end

     

    function msgcontains(txt, str)

    return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)'))

    end

     

    function onCreatureSay(cid, type, msg)

    msg = string.lower(msg)

    -- greeting phrase

    if string.find(msg, '(%a*)hi(%a*)') and focus == 0 and string.len(msg) == 2 and getDistanceToCreature(cid) < 4 then

    if getPlayerLevel(cid) >= 8 then

    selfSay('' .. creatureGetName(cid) .. '! ARE YOU PREPARED TO FACE YOUR DESTINY?')

    focus = cid

    talk_start = os.clock()

     

    else

    selfSay('CHILD! COME BACK WHEN YOU HAVE GROWN UP!')

    focus = 0

    talk_start = 0

    end

    elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then

    selfSay('WAIT UNTIL IT IS YOUR TURN!')

    elseif focus == cid then

    talk_start = os.clock()

     

     

    if msgcontains(msg, 'yes') and talk_state ~= 458 then

     

    selfSay('GREAT! DO YOU WHANT TO BE A KNIGHT, A PALADIN, A SORCERER OR A DRUID?')

    talk_state = 459

     

    elseif msgcontains(msg, 'no') then

    selfSay('COME BACK WHEN YOU ARE READY THEN.')

    focus = 0

    talk_start = 0

    elseif msgcontains(msg, 'bye') then

    selfSay('COME BACK WHEN YOU ARE READY THEN.')

    focus = 0

    talk_start = 0

    elseif talk_state == 459 then

    vocationid = 0

    talk_state = 458

    if msgcontains(msg, 'sorcerer') then

    selfSay('A SORCERER! ARE YOU SURE? THIS DECISION IS IRREVERSIBLE!')

    vocationid = 1

    elseif msgcontains(msg, 'druid') then

    selfSay('A DRUID! ARE YOU SURE? THIS DECISION IS IRREVERSIBLE!')

    vocationid = 2

    elseif msgcontains(msg, 'paladin') then

    selfSay('A PALADIN! ARE YOU SURE? THIS DECISION IS IRREVERSIBLE!')

    vocationid = 3

    elseif msgcontains(msg, 'knight') then

    selfSay('A KNIGHT! ARE YOU SURE? THIS DECISION IS IRREVERSIBLE!')

    vocationid = 4

    elseif msgcontains(msg, 'no') then

    selfSay('COME BACK WHEN YOU ARE READY THEN.')

    focus = 0

    talk_start = 0

    elseif msgcontains(msg, 'bye') then

    selfSay('COME BACK WHEN YOU ARE READY THEN.')

    focus = 0

    talk_start = 0

    else

    selfSay('GREAT! DO YOU WHANT TO BE A KNIGHT, A PALADIN, A SORCERER OR A DRUID?')

    talk_state = 459

    end

     

     

    elseif talk_state == 458 then

    if msgcontains(msg, 'yes') then

    selfSay('GREAT! WHERE DO YOU WANT TO LIVE? THYRANIA, ICYA, MURNIA, VENGA OR SAAHA?')

    talk_state = 452

    else

    selfSay('GREAT! DO YOU WHANT TO BE A KNIGHT, A PALADIN, A SORCERER OR A DRUID?')

    talk_state = 459

    end

    elseif talk_state == 452 then

    if msgcontains(msg, 'icya') then

    if pay(cid,0) then

    doPlayerSetTown(cid,5)

    travel(cid, 795, 712, 7)

    selfSay('Let\'s go!')

    focus = 0

    talk_start = 0

    else

    selfSay('Sorry, you don\'t have enough money.')

    end

     

    elseif msgcontains(msg, 'saaha') then

    if pay(cid,0) then

    doPlayerSetTown(cid,2)

    travel(cid, 101, 395, 8)

    selfSay('Let\'s go!')

    focus = 0

    talk_start = 0

    else

    selfSay('Sorry, you don\'t have enough money.')

    end

    elseif msgcontains(msg, 'thyrania') then

    if pay(cid,0) then

    doPlayerSetTown(cid,1)

    travel(cid, 71, 33, 8)

    selfSay('Let\'s go!')

    focus = 0

    talk_start = 0

    else

    selfSay('Sorry, you don\'t have enough money.')

    end

    elseif msgcontains(msg, 'murnia') then

    if pay(cid,0) then

    doPlayerSetTown(cid,3)

    travel(cid, 844, 561, 7)

    selfSay('Let\'s go!')

    focus = 0

    talk_start = 0

    else

    selfSay('Sorry, you don\'t have enough money.')

    end

    elseif msgcontains(msg, 'venga') then

    if pay(cid,0) then

    doPlayerSetTown(cid,4)

    travel(cid, 402, 434, 7)

    selfSay('Let\'s go!')

    focus = 0

    talk_start = 0

    else

    selfSay('Sorry, you don\'t have enough money.')

    end

     

    elseif msgcontains(msg, 'no') then

    selfSay('COME BACK WHEN YOU ARE READY THEN.')

    focus = 0

    talk_start = 0

    elseif msgcontains(msg, 'bye') then

    selfSay('COME BACK WHEN YOU ARE READY THEN.')

    focus = 0

    talk_start = 0

     

    end

     

     

    talk_state = 0

    talk_start = 0

     

     

    elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then

    selfSay('Good bye, ' .. creatureGetName(cid) .. '!')

    focus = 0

    talk_start = 0

    end

    end

    end

     

    function onCreatureChangeOutfit(creature)

    end

     

    function onThink()

    if (os.clock() - talk_start) > 30 then

    if focus > 0 then

    selfSay('CHILD! COME BACK WHEN YOU HAVE GROWN UP!')

    end

    focus = 0

    end

    if focus ~= 0 then

    if getDistanceToCreature(focus) > 5 then

    selfSay('CHILD! COME BACK WHEN YOU HAVE GROWN UP!')

    focus = 0

    end

    end

    end

    vermelho o nome da cidade que ele sera teleportado

     

    laranja o numero da cidade encontrado no mapa editor

     

    azul cordenada X que ele sera teleportado (colokar cordenadas do templo)

     

    rosa cordenada Y que ele sera teleportada (colokar cordenadas do templo)

     

    verde cordenada Z que ele sera teleportado (colokar cordenadas do templo)

     

    e para adicionar mais cidades é só adicionar isto:

     

    elseif msgcontains(msg, 'nome da cite') then

    if pay(cid,0) then

    doPlayerSetTown(cid,4)

    travel(cid, 402, 434, 7)

    selfSay('Let\'s go!')

    focus = 0

    talk_start = 0

    else

    selfSay('Sorry, you don\'t have enough money.')

    end

     

    depois da ultima cidade! e arrumar as cordenadas e o numero da cidade, e colocar o nome da cidade a onde ele pergunta onde o player quer morar!!

     

    se forem colokar em thyrania é só por ja esta arrumado com as cordenadas de la!!

     

    aki esta ele traduzido tmb para quem quiser!! é só seguir os msm passos!!

    aki vai:

    --by nandinmlk--

    local focus = 0

    local talk_start = 0

    local target = 0

    local following = false

    local attacking = false

    function onThingMove(creature, thing, oldpos, oldstackpos)

    end

     

    function onCreatureAppear(creature)

    end

     

    function onCreatureDisappear(cid, pos)

    if focus == cid then

    selfSay('VOCE NAO ESTA PRONTO!, VOLTE QUANDO ESTIVER PREPARADO!')

    focus = 0

    talk_start = 0

    end

    end

     

    function onCreatureTurn(creature)

    end

     

    function msgcontains(txt, str)

    return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)'))

    end

     

    function onCreatureSay(cid, type, msg)

    msg = string.lower(msg)

    -- greeting phrase

    if string.find(msg, '(%a*)hi(%a*)') and focus == 0 and string.len(msg) == 2 and getDistanceToCreature(cid) < 4 then

    if getPlayerLevel(cid) >= 8 then

    selfSay('' .. creatureGetName(cid) .. '! VOCE ESTA PRONTO PARA EMFRENTAR O SEU DESTINO?')

    focus = cid

    talk_start = os.clock()

     

    else

    selfSay('VOCE NAO ESTA PRONTO!, VOLTE QUANDO ESTER PREPARADO!')

    focus = 0

    talk_start = 0

    end

    elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then

    selfSay('ESPERE A SUA VEZ!')

    elseif focus == cid then

    talk_start = os.clock()

     

     

    if msgcontains(msg, 'yes') and talk_state ~= 458 then

     

    selfSay('OTIMO! OQUE VOCE QUER SER? UM KNIGHT, UM PALADIN, UM SORCERER OU UM DRUID?')

    talk_state = 459

     

    elseif msgcontains(msg, 'no') then

    selfSay('ESTA BEM! VOLTE QUANDO QUISER.')

    focus = 0

    talk_start = 0

    elseif msgcontains(msg, 'bye') then

    selfSay('ESTA BEM! VOLTE QUANDO QUISER.')

    focus = 0

    talk_start = 0

    elseif talk_state == 459 then

    vocationid = 0

    talk_state = 458

    if msgcontains(msg, 'sorcerer') then

    selfSay('UM SORCERER! VOCE TEM SERTEZA? ESTA DESIZAO E IRREVERSIVEL!')

    vocationid = 1

    elseif msgcontains(msg, 'druid') then

    selfSay('UM DRUID! VOCE TEM SERTEZA? ESTA DESIZAO E IRREVERSIVEL!')

    vocationid = 2

    elseif msgcontains(msg, 'paladin') then

    selfSay('UM PALADIN! VOCE TEM SERTEZA? ESTA DESIZAO E IRREVERSIVEL!')

    vocationid = 3

    elseif msgcontains(msg, 'knight') then

    selfSay('UM KNIGHT! VOCE TEM SERTEZA? ESTA DESIZAO E IRREVERSIVEL!')

    vocationid = 4

    elseif msgcontains(msg, 'no') then

    selfSay('ESTA BEM! VOLTE QUANDO QUISER.')

    focus = 0

    talk_start = 0

    elseif msgcontains(msg, 'bye') then

    selfSay('ESTA BEM! VOLTE QUANDO QUISER.')

    focus = 0

    talk_start = 0

    else

    selfSay('OTIMO! OQUE VOCE QUER SER? UM KNIGHT, UM PALADIN, UM SORCERER OU UM DRUID?')

    talk_state = 459

    end

     

     

    elseif talk_state == 458 then

    if msgcontains(msg, 'yes') then

    selfSay('OTIMO! PAR ONDE VOCE QUER IR? THYRANIA, ICYA, MURNIA, VENGA OU SAAHA?')

    talk_state = 452

    else

    selfSay('OTIMO! OQUE VOCE QUER SER? UM KNIGHT, UM PALADIN, UM SORCERER OU UM DRUID?')

    talk_state = 459

    end

    elseif talk_state == 452 then

    if msgcontains(msg, 'icya') then

    if pay(cid,0) then

    doPlayerSetTown(cid,5)

    travel(cid, 795, 712, 7)

    selfSay('Let\'s go!')

    focus = 0

    talk_start = 0

    else

    selfSay('Sorry, you don\'t have enough money.')

    end

     

    elseif msgcontains(msg, 'saaha') then

    if pay(cid,0) then

    doPlayerSetTown(cid,2)

    travel(cid, 101, 395, 8)

    selfSay('Let\'s go!')

    focus = 0

    talk_start = 0

    else

    selfSay('Sorry, you don\'t have enough money.')

    end

    elseif msgcontains(msg, 'thyrania') then

    if pay(cid,0) then

    doPlayerSetTown(cid,1)

    travel(cid, 71, 33, 8)

    selfSay('Let\'s go!')

    focus = 0

    talk_start = 0

    else

    selfSay('Sorry, you don\'t have enough money.')

    end

    elseif msgcontains(msg, 'murnia') then

    if pay(cid,0) then

    doPlayerSetTown(cid,3)

    travel(cid, 844, 561, 7)

    selfSay('Let\'s go!')

    focus = 0

    talk_start = 0

    else

    selfSay('Sorry, you don\'t have enough money.')

    end

    elseif msgcontains(msg, 'venga') then

    if pay(cid,0) then

    doPlayerSetTown(cid,4)

    travel(cid, 402, 434, 7)

    selfSay('Let\'s go!')

    focus = 0

    talk_start = 0

    else

    selfSay('Sorry, you don\'t have enough money.')

    end

     

    elseif msgcontains(msg, 'no') then

    selfSay('ESTA BEM! VOLTE QUANDO QUISER.')

    focus = 0

    talk_start = 0

    elseif msgcontains(msg, 'bye') then

    selfSay('ESTA BEM! VOLTE QUANDO QUISER!.')

    focus = 0

    talk_start = 0

     

    end

     

     

    talk_state = 0

    talk_start = 0

     

     

    elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then

    selfSay('Good bye, ' .. creatureGetName(cid) .. '!')

    focus = 0

    talk_start = 0

    end

    end

    end

     

    function onCreatureChangeOutfit(creature)

    end

     

    function onThink()

    if (os.clock() - talk_start) > 30 then

    if focus > 0 then

    selfSay('VOCE NAO ESTA PRONTO!, VOLTE QUANDO ESTER PREPARADO!')

    end

    focus = 0

    end

    if focus ~= 0 then

    if getDistanceToCreature(focus) > 5 then

    selfSay('VOCE NAO ESTA PRONTO!, VOLTE QUANDO ESTER PREPARADO!')

    focus = 0

    end

    end

    end

    e para adicionar no seu mapa caso vc nao o tenha no mapa editor va na pasta do seu map editor creaturas e adicione isto:

     

    <creature itemid="1448" name="The Oracle" type="npc"/>

     

    se algo nao funcionar avise que te ajudarei mais eu testei e esta tudo funcionando!!

     

    espéro ter ajudado!!! COMENTEN PLIXXX!!! :smile_positivo:

     

    MAIS UMA VEZ COMENTEN PORFAVOR QUÉRO QUE VCS COMENTEM

     

    CRÉDITOS: 100% by my e meu coléga mais ele nao ten comta en nenhun fórum de otserver download

     

    se forem postar em algum lugar colóquen créditos!!

  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...