Ir para conteúdo

kevinsz

Campones
  • Total de itens

    41
  • Registro em

  • Última visita

Sobre kevinsz

Informações

  • Forma que conheci o xTibia
    Sites de Busca
  • Sou
    Scripter

kevinsz's Achievements

  1. kevinsz

    Ajuda Plix

    Lol.. Não da pra entende nada assim.. Tente melhorar a estrutura de seu tópico, ser mais claro, e explicar melhor, se precisar faça algo mais interativo, como videos imagens, etc. E nunca faça um tópico com o titulo assim. Quer algumas dicas? Click Aqui. Agora arruma seu tópico e eu vejo o que posso fazer por você.. Pois isso ajuda os membros(xtibianos) a te ajudarem.
  2. Resetaria como? Resetar o char inteiro? ou resetar apenas level?
  3. mayNotMove(cid, value) -- Acho que esse da certo! doCreatureSetNoMove doPlayerSetNoMove exemplo de uma: doCreatureSetNoMove(cid, cannotMove) TESTA AI, POIS NÃO SEI SE FUNFA EM 8.4 --- Caso nem uma funcione faça isso: Se caso for item você pode começar usando essa function isMoveable ou isItemMoveable e verificar se pode ser movido se for faz acontecer return FALSE
  4. Kydrai - Muito bom! -- edit Na verdade nem gostei desse script.. Pois isso ai basta usar a seguite function: doTransformItem, então ficou muito simples.. E pelo visto existem muitos items que se acha no chão ali.. Imagine trocar 100 Crystal coin por uma Katana :blink: Nicekid oq vc achou do script?
  5. Bom, Como ninguem te ajudou.. Vou tentar te ajudar, seu tópico ta muito mal formulado :excl: Bom, vou te mostrar um NPC que vende vários items depois explico, ( esse NPC eu inclui alguns itens 8.54 ). Primeiramente va em data/npc e crie um arquivo chamado Vendedor.xml e adicione esse código: <?version="1.0" encoding="UTF-8"?> <npc name="Vendedor" script="data/npc/script/vendedornpc.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="71" head="113" body="113" legs="113" feet="115" addons="0"/> <parameters> <parameter key="message_greet" value="Hello |PLAYERNAME|. What is your need?"/> <parameter key="message_farewell" value="Bye."/> <parameter key="module_keywords" value="1" /> <parameter key="keywords" value="job;" /> <parameter key="keyword_reply1" value="I buy all itens." /> </parameters> </npc> Depois va em data/npc/script e crie um arquivo chamado vendedornpc.lua depois adicione esse código: 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 local shopModule = ShopModule:new() npcHandler:addModule(shopModule) shopModule:addSellableItem({'Zaoan Helmet'}, 11296, 45000, 'Zaoan Helmet') shopModule:addSellableItem({'Drakinata'}, 11299, 10000, 'Drakinata') shopModule:addSellableItem({'Twin Hooks'}, 11303, 2, 'Twin Hooks') shopModule:addSellableItem({'Zaoan Halberd'}, 11317, 500, 'Zaoan Halberd') shopModule:addSellableItem({'Zaoan Sword'}, 11301, 30000, 'Zaoan Sword') shopModule:addSellableItem({'Zaoan Armor'}, 11295, 14000, 'Zaoan Armor') shopModule:addSellableItem({'Zaoan Legs'}, 11298, 14000, 'Zaoan Legs') shopModule:addSellableItem({'Dragon Scale Boots'}, 11114, 40000, 'Dragon Scale Boots') shopModule:addSellableItem({'Guardian Boots'}, 11234, 35000, 'Guardian Boots') shopModule:addSellableItem({'Zaoan Shoes'}, 11297, 5000, 'Zaoan Shoes') shopModule:addSellableItem({'Drachaku'}, 11302, 10000, 'Drachaku') shopModule:addSellableItem({'Broken Halberd'}, 11329, 100, 'Broken Halberd') shopModule:addSellableItem({'Cursed Shoulder Spikes'}, 11321, 320, 'Cursed Shoulder Spikes') shopModule:addSellableItem({'Legionnaire Flags'}, 11328, 500, 'Legionnaire Flags') shopModule:addSellableItem({'Sais'}, 11300, 16500, 'Sais') shopModule:addSellableItem({'Spiked Iron Ball'}, 11319, 100, 'Spiked Iron Ball') shopModule:addBuyableItem({'two handed sword'}, 2377, 950, 'two handed sword') shopModule:addBuyableItem({'broad sword'}, 2413, 950, 'broad sword') shopModule:addBuyableItem({'sword'}, 2376, 85, 'sword') shopModule:addBuyableItem({'crimson sword'}, 7385, 610, 'crimson sword') shopModule:addBuyableItem({'dagger'}, 2379, 5, 'dagger') shopModule:addBuyableItem({'rapier'}, 2384, 15, 'rapier') shopModule:addBuyableItem({'sabre'}, 2385, 35, 'sabre') shopModule:addBuyableItem({'battle hammer'}, 2417, 350, 'battle hammer') shopModule:addBuyableItem({'clerical mace'}, 2423, 540, 'clerical mace') shopModule:addBuyableItem({'mace'}, 2398, 90, 'mace') shopModule:addBuyableItem({'morning star'}, 2394, 430, 'morning star') shopModule:addBuyableItem({'hand axe'}, 2380, 8, 'hand axe') shopModule:addBuyableItem({'axe'}, 2386, 20, 'hand axe') shopModule:addBuyableItem({'barbarian axe'}, 2429, 590, 'barbarian axe') shopModule:addBuyableItem({'battle axe'}, 2378, 235, 'battle axe') shopModule:addBuyableItem({'leather helmet'}, 2461, 12, 'leather helmet') shopModule:addBuyableItem({'chain helmet'}, 2458, 52, 'chain helmet') shopModule:addBuyableItem({'chain legs'},2648, 80, 'chain legs') shopModule:addBuyableItem({'wooden shield'}, 2512, 15, 'wooden shield') shopModule:addBuyableItem({'steel shield'}, 2509, 240, 'steel shield') shopModule:addBuyableItem({'viking shield'}, 2531, 260, 'viking shield') shopModule:addBuyableItem({'chain legs'},2648, 80, 'chain legs') shopModule:addBuyableItem({'brass armor'}, 2465, 450, 'brass armor') shopModule:addBuyableItem({'chain armor'}, 2464, 200, 'chain armor') shopModule:addBuyableItem({'leather armor'}, 2467, 35, 'leather armor') shopModule:addBuyableItem({'scale armor'}, 2483, 260, 'scale armor') npcHandler:addModule(FocusModule:new()) Agora vou explicar, cada linha que comeÇa com "shopModule:addBuyableItem({" é um item que pode ser vendido, da pra você acrescentar quantos itens quiser apenas fazendo o que esta abaixo. Aonde tem mais ou menos isso: Legenda: Vermelho: Significa o nome do item. Verde: ID do item. Em azul: Preço do item. Espero ter te ajudado, se quiser saber mais sobre NPC'S pesquise no fórum. :happy:
  6. kevinsz

    Help Plix!

    Acho que não tem como não aparecer a vida a num ser mecher nas sources. Fui
  7. Acho que já responde as duas.. basta você mesmo configurar.( Caso não saiba exclareça sua dúvida aqui ) Em data/npc crie um arquivo chamado vocationseller.xml e adicione este código: <?xml version="1.0" encoding="UTF-8"?> <npc name="Vocation seller" script="data/npc/scripts/vocation.lua" floorchange="0" access="5" level="1" maglevel="1"> <health now="150" max="150"/> <look type="128" head="20" body="100" legs="50" feet="99" corpse="2212"/> <parameters> <parameter key="message_greet" value="Ola |PLAYERNAME|. Caso queira ser promotion diga {promotion}." /> </parameters> </npc> E em data/npc/scripts crie um arquivo chamado vocation.lua e adicione o seguinte código: 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 -- Script by Focost CONFIGURACAO lvl = 1 -- Level necessario iditem = 7410 -- ID do item que e necessario quanty = 1 -- Quantidade do item acima que e necessario idvoc = 1 -- ID da vocacao que ira receber msgyes = "agora você tem promotion" -- msg que aparece Se vocação for recebida msgno = "você não pode ter promotion" -- msg que aparece Se caso o player nao ter os items necessarios function promotion(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if getPlayerLevel(cid) >= lvl then if getPlayerItemCount(cid,iditem) >= quanty then doPlayerRemoveItem(cid,iditem,quanty) npcHandler:say(msgyes, cid) doPlayerSetVocation(cid, idvoc) else npcHandler:say(msgno, cid) end end end local node1 = keywordHandler:addKeyword({'promotion'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Deseja trocar 10 apples pela prommotion?'}) node1:addChildKeyword({'yes'}, promotion, {npcHandler = npcHandler, onlyFocus = true, reset = true}) node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, volte quando quizer.', reset = true}) npcHandler:addModule(FocusModule:new()) Espero ter ajudado!
  8. Deixa assim! function onStepIn(cid, item, position, fromPosition) if item.uid == 11055 then newpos = {x=1072, y=1064, z=10} if getPlayerStorageValue(cid, 11055) == -1 then doTeleportThing(cid,newpos) doSendMagicEffect(newpos,2) doPlayerSendTextMessage(cid,22,"Parabens ! Você Conseguiu Passar !!") setPlayerStorageValue(cid,11055,1) else doPlayerSendTextMessage(cid,22,"Você Não Conseguiu Passar !!") end end end
  9. Acho que tem um tópico mais ou menos igual! Mas o seu tutorial ficou melhor. Porém o tópico é de um roteador D-LINK 524 devia ter no titulo essa informação e o tópico não explica muito para que serve.Talvez você pudesse acrescentar mais informações como por exemplo para que serve "DMZ". As imagens estão boas, o tópico está bom, só falto aquilo que eu te disse. Por mim REPROVADO Tente melhorar amigo.
  10. Parabéns cara! Talvez assim ficaria melhor =] function onUse(cid, item, frompos, item2, topos) doCreatureAddHealth(cid,-900) doSendAnimatedText(getCreaturePosition(cid), "Take This!", TEXTCOLOR_RED) doSendMagicEffect(cid,15) return 1 end
  11. kevinsz

    Tiles

    NPC: Em data/npc crie um arquivo chamado questpermission.xml e adicione o seguinte código: <?xml version="1.0" encoding="UTF-8"?> <npc name="Lector" script="data/npc/scripts/permission.lua" floorchange="0" access="5" level="1" maglevel="1"> <health now="150" max="150"/> <look type="128" head="20" body="100" legs="50" feet="99" corpse="2212"/> <parameters> <parameter key="message_greet" value="Hello |PLAYERNAME|. Se Deseja fazer a quest diga {quest}" /> </parameters> </npc> Agora crie um arquivo chamado permission.lua em data/npc/script e adicione o seguinte código: 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 -- Script by Focost function questf(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if getPlayerStorageValue(cid, 91012) == -1 then npcHandler:say('Ok, Agora você esta permitido ir!', cid) setPlayerStorageValue(cid, 91012, 1) else npcHandler:say('Você ja tem permissão para ir para quest!', cid) end end local node1 = keywordHandler:addKeyword({'quest'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Tem certeza que quer a permissão para fazer esta quest?'}) node1:addChildKeyword({'yes'}, questf, {npcHandler = npcHandler, onlyFocus = true, reset = true}) node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, Good bye then.', reset = true}) npcHandler:addModule(FocusModule:new()) TILE: Agora vá em data/movements e abra o arquivo chamado movements.lua adicione abaixo de <movements> isso: <movevent type="StepIn" actionid="4562" event="script" value="viptile.lua"/> Depois va em data/movements/scripts e crie um novo arquivo chamado viptile.lua e adicione o seguinte código: function onStepIn(cid, item, position, fromPosition) if getPlayerStorageValue(cid, 91012) <= 0 then doTeleportThing(cid, fromPosition) doPlayerSendCancel(cid, "Você não pode acessar esta area sem pedir permissão.") else doPlayerSendTextMessage(cid, 22, "Boa Sorte!") end return true end No map editor procure os tiles que você quer e nele em ACTIONID você adiciona o número 91012 Espero ter ajudado! Qualquer problema estou ai...
  12. Aewww! Muito bom cara! É disso que o xtibia precisa. Parabéns!
  13. Eu sinceramente não gostei. Mas é uma boa para quem esta procurando idéias.
  14. Desculpe, Achei muito básico.. E tutoriais como esse já existem por aqui.
  • Quem Está Navegando   0 membros estão online

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