Ir para conteúdo
  • Cadastre-se

Posts Recomendados

Descrição: NPC Simples do Tibia Global que vende cartas, parcels e labels. Ele também vende vários rings e alguns itens gerais.

Nome do Npc: Benjamin

Função: Vendedor de itens.

 

Vende:

  • Key ring
  • Label
  • Parcel
  • Letter
  • Time Ring
  • Energy Ring
  • Life Ring
  • Stealth Ring
  • Sword Ring
  • Axe Ring
  • Club Ring
  • Dwarven Ring
  • Blood herb
  • Coconut
  • Scarf
  • Platinum amulet

 

Benjamin.lua

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

npcHandler:addModule(FocusModule:new())

 

Benjamin.xml

<?xml version="1.0" encoding="UTF-8"?>
<npc name="Benjamin" script="data/npc/scripts/Benjamin.lua" walkinterval="2000" floorchange="0">
<health now="100" max="100"/>
<look type="128" head="116" body="79" legs="117" feet="76" addons="0"/>

<voices>
<voice text="If you need help with letters or parcels, just ask me. I can explain everything." interval2="1000" margin="1" yell="no"/>
<voice text="Hey, send a letter to your friend now and then. Keep in touch, you know." interval2="1200" margin="1" yell="no"/>
<voice text="Welcome to the post office!" interval2="900" margin="1" yell="no"/>
</voices>
<parameters>
		<parameter key="module_shop" value="1" />
		<parameter key="shop_buyable" value="key ring,5801,15000;label,2599,1;parcel,2595,15;letter,2597,8;time ring,2169,1000;energy ring,2204,1000;life ring,2205,1000;stealth ring,2202,1000;sword ring,2207,1000;axe ring,2208,1000;club ring,2209,1000;dwarven ring,2213,1000;blood herb,2798,500;coconut,2678,500;platinum amulet,2171,3000;scarf,2661,2000;"/>
     		<parameter key="message_greet" value="Hello. How may I help you |PLAYERNAME|? Ask me for a {trade} if you want to buy something. I can also explain the {mail} system."/>
      		<parameter key="message_farewell" value="It was a pleasure to help you, |PLAYERNAME|."/>
		<parameter key="message_walkaway" value="Good bye." />
		<parameter key="message_sendtrade" value="Here. Don't forget that you need to buy a label too if you want to send a parcel. Always write the name of the {receiver} in the first line and the name of the {city} in the second line." />
    </parameters>
</npc>

 

Link para o post
Compartilhar em outros sites

Parabéns, seu tópico de conteúdo foi aprovado!
Muito obrigado pela sua contribuição, nós do Tibia King agradecemos.
Seu conteúdo com certeza ajudará à muitos outros, você recebeu +1 REP.

Spoiler

Congratulations, your content has been approved!
Thank you for your contribution, we of Tibia King we are grateful.
Your content will help many other users, you received +1 REP.

 

Bruno Carvalho / Ex-Administrador TibiaKing

[email protected]

 

Em 26/12/2016 em 03:47, Spraypaint disse:

A força da alienação vem dessa fragilidade dos indivíduos, quando apenas conseguem identificar o que os separa e não o que os une.

-miltinho

 

wMwSJFE.png?1

 

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.

  • Conteúdo Similar

    • Por xWhiteWolf
      Fala galera do TK, criei esse anelzinho pra servers que procuram inovar.. 
      bom, oque ele faz??
      Simples, ele torna o usuário invisível.
      aff, mas já existe o stealth ring que faz isso!
      Sim mas dessa vez eu digo invisível mesmo, nenhum monstro ou players conseguirá te ver.
      que lixo, assim qualquer player vai poder ficar invisível e passar no meio dos monstros e players.. vai estragar o server
      Aí é que vc se engana porque o anel vem uma maldição, quem usar ele vai perdendo 3% de vida por segundo (ajustável) e só vai estragar o server se vc sair distribuindo o anel pra todos os players haha

      O anel em si possui duas versões, na primeira ele retira 3% de vida por segundo, na segunda ele adiciona uma condição que te deixa perdendo uma quantidade fixa de vida, CONTUDO, na segunda versão aparece uma poça de sangue cada vez que toma o dano então dá pros players te pegarem caso vc coloque o anel e resolva fugir kkkkk
      Vou chamar aqui de versão 1 e 2 respectivamente.
      OBS: ISSO É EM MOVEMENTS!

       
       
      1ª versão (sem sangue mas que tira 3% de vida por segundo):
      local invisible = createConditionObject(CONDITION_GAMEMASTER, -1, false, GAMEMASTER_INVISIBLE) local outfit = createConditionObject(CONDITION_INVISIBLE, -1, false) local percent = 3 local tempo = 1 -- em segundos function onEquip(cid, item, slot) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "By using this ring you will become fully invisible and lose health over time because of it's curse.") function lifesteal(cid) steal = addEvent(lifesteal, 1000*tempo, cid) if isCreature(cid) then doSendAnimatedText(getCreaturePos(cid), "-"..math.floor((getCreatureMaxHealth(cid) * (percent/100))), 144, cid) doCreatureAddHealth(cid, -math.floor(getCreatureMaxHealth(cid) * (percent/100))) end end lifesteal(cid) doAddCondition(cid, invisible) doAddCondition(cid, outfit) doSendMagicEffect(getCreaturePos(cid), 12) return true end function onDeEquip(cid, item, slot) doTransformItem(item.uid, 2165) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You're no longer receiving the special bonus..") stopEvent(steal) doRemoveCondition(cid, CONDITION_INVISIBLE) doSendMagicEffect(getCreaturePos(cid), 12) doRemoveCondition(cid, CONDITION_GAMEMASTER, GAMEMASTER_INVISIBLE) return true end   2ª versão (a cada 1,5 segundos ele te tira um dano configurado e deixa uma poça de sangue embaixo de vc facilitando que te identifiquem mesmo estando invisivel):
      local invisible = createConditionObject(CONDITION_GAMEMASTER, -1, false, GAMEMASTER_INVISIBLE) local outfit = createConditionObject(CONDITION_INVISIBLE, -1, false) local condition = createConditionObject(CONDITION_PHYSICAL) setConditionParam(condition, CONDITION_PARAM_DELAYED, TRUE) addDamageCondition(condition, -1, 1500, -500) function onEquip(cid, item, slot) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "By using this ring you will become fully invisible and lose health over time because of it's curse.") doAddCondition(cid, condition) doAddCondition(cid, invisible) doAddCondition(cid, outfit) doSendMagicEffect(getCreaturePos(cid), 12) return true end function onDeEquip(cid, item, slot) doTransformItem(item.uid, 2165) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You're no longer receiving the special bonus..") doRemoveCondition(cid, CONDITION_PHYSICAL) doRemoveCondition(cid, CONDITION_INVISIBLE) doSendMagicEffect(getCreaturePos(cid), 12) doRemoveCondition(cid, CONDITION_GAMEMASTER, GAMEMASTER_INVISIBLE) return true end Agora edite no items.xml o stealth ring pra que ele seja infinito:
      <item id="2202" article="a" name="stealth ring"> <attribute key="weight" value="100" /> <attribute key="slotType" value="ring" /> <attribute key="transformDeEquipTo" value="2165" /> </item> e em movements.xml adicione essas linhas:
      <movevent type="Equip" itemid="2202" slot="ring" event="script" value="stealth.lua"/> <movevent type="DeEquip" itemid="2202" slot="ring" event="script" value="stealth.lua"/> Editando:
      Na primeira versão vc pode alterar as seguintes coisas que estão em colorido:
      local invisible = createConditionObject(CONDITION_GAMEMASTER, -1, false, GAMEMASTER_INVISIBLE)
      local outfit = createConditionObject(CONDITION_INVISIBLE, -1, false)
      local percent = 3
      local tempo = 1 -- em segundos
       
      em vermelho é o tempo que dura a invisibilidade... -1 é infinito
      em azul é a porcentagem de vida que perde por tempo
      em verde é o tempo em que se perde vida.. nesse caso a cada 1 segundo perde 3%
       
      Na segunda versão vc pode editar as mesmas coisas do primeiro só que o tempo e o dano pelo tempo estão na condition:
       
      local condition = createConditionObject(CONDITION_PHYSICAL)
      setConditionParam(condition, CONDITION_PARAM_DELAYED, TRUE)
      addDamageCondition(condition, -1, 1500, -500)
       
      em vermelho é o numero de vezes que vai tirar vida. Mais uma vez -1 significa infinito (infinito até remover o anel)
      em azul é o dano que vc toma a cada tempo (lembre-se de deixar sempre um - na frente se não ele vai adicionar vida)
      em verde é o tempo em que se perde vida.. nesse caso a cada 1 segundo e meio retira 500 de vida
       
       
      Bom, é isso.. um script simples mas que vai ajudar muita gente pelo fato de usar conditions não tão comuns e de uma forma diferente haha
    • Por Duzinho
      Galera Muitos querem esse script de bike
       
      P: O que esse script faz?
      R: Esse script não deixa mover o item da bike quando ela esta no slot RING que o player está montado
       
       
      Em movements.xml adicione as tags abaixo:
      <movevent type="Equip" itemid="ID_BIKE" slot="ring" event="script" value="blockBike.lua"/> <movevent type="DeEquip" itemid="ID_BIKE" slot="ring" event="script" value="blockBike.lua"/>  
      Em movements/scripts crie um arquilo lua chamado blockBike.lua e cole o código abaixo:
      local storage = 5700 -- Coloque a Storage Que Controla o Sistema de Bike function onDeEquip(cid, item, slot) if getPlayerStorageValue(cid, storage) > 0 then itemID = item.itemid doRemoveItem(item.uid, 1) doPlayerAddItem(cid, itemID, 1) doPlayerSendCancel(cid, "You cannot take out this item while you're mounted on the bike.") end return true end  
      Créditos
      Pelo Script: @Adriano SwaTT
      Eu por Editar o Script @Duzinho
       
       
    • Por Henrique Gaudard
      Olá pessoal, primeiramente quero dizer que acho muito complicado mecher em monsters, poís qualquer erro, é fatal!! não sei porque quando fasso algumas modficações nos monsters/npcs que é quando eu modfico algumas coisas.., não entendo, só edito os nomes tipo assim;
      name "sfdsdfds" eu ponho "dhfudshgusopofkpsdakfgjid" (obs: não é no nome do arquivo lua mais sim o nome do monster mesmo já na edição) e dá erro. Se eu meche-se nas parada lá nos código todo doido de scripting tudo bem mais eu só quero editar e quando eu vou colocá-lo no mapa acontece o seguinte:
       
      Quando ligo aparece: "[Spawn : : addMonster] Cannot find "Ninja Star"" (ele está no presente no mapa e é um script obviamente). Falo!!
       
      Sistema Operacional: Windows 10

    • Por DTrajano
      Pessoal.
       
      Estou com um problema bem crítico e não estou conseguindo resolver.
       
      Acontece que os rings não funcionam em alguns chars, outros funcionam. Não consegui isolar a falha em um critério, por exemplo, promotion, vocação, level, qualquer coisa que consiga ajudar.
       
      Até agora consegui identificar que o problema ocorre em três chars: 1 Elite Knight, 1 Elder Druid, 1 Master Sorcerer.
       
      São main chars que são jogados regularmente, fazendo quests, adquirindo storages. Testei com outros diversos makers e nenhum apresentou o problema.
       
      Testei com todos os rings, isso acontece com os rings que trocam de ID ao equipar. por exemplo: Ring of Healing, Life Ring, Time Ring, Sword Ring, etc.
       
      Eu coloquei alguns atributos no Gold Ring e no Ring of the Sky e esses não apresentam problemas, porém não trocam de ID.
       
      O que eu já fiz?
       
      Revisei toda a pasta movements e items, nada de anormal.
      Troquei todas as linhas do movements.xml relacionadas a Rings pela mesma parte do projeto vanaheim.
      Comparei os atributos dos rings no items.xml com o projeto vanaheim e está idêntico.
       
      No console não aparece nenhuma mensagem de erro.
       
       
      Enfim, estou tentando seguir uma linha de raciocínio para identificar o problema, mas está difícil. Agradeço qualquer ajuda.
    • Por firebolt
      galera como eu fasso para adicionar atributos nos anéis? tipo skill sword, axe, speed, etc..
      e se alguem souber pode me passar uma lista de todos os atributos que se pode colocar nos items do tibia?
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo