Ir para conteúdo

Vitor Lucas

Membro
  • Registro em

  • Última visita

  1. Vitor Lucas alterou sua foto pessoal
  2. Vitor Lucas reagiu a uma resposta no tópico: NPC ! Ajuda Urgente...
  3. AEEEE, vlw mesmo Obrigado !!! +REP
  4. Vitor Lucas reagiu a uma resposta no tópico: NPC ! Ajuda Urgente...
  5. Então cara fiz tudo isso e nada que vem o bone
  6. Sim, foi como falei NPC esta funcionando corretamente, mais como faço pra quando matar um player ele ganha o item " Bones " Att; Vitor Lucas ! Obg
  7. Fala Pessoal do TK. Então estou criando meu OTserv, Mapa barão... ele vem com NPC " Colecionador De Ossos " Até ai tudo bem. Testei ele está funcionando certinho, os bones os itens, so que quando mata player ele nao da bones :/ como coloca pra ganhar bones á cada player morto. Olha seguites arquivos --> Raiz : C:\Users\Vitor Lucas\Desktop\Baiak Barao OT\data\npc Arquivo: Colecionador De Ossos.xlm ----------------------------------------------------------------------------- <?xml version="1.0" encoding="UTF-8"?> <npc name="Colecionador De Ossos" script="data/npc/scripts/colecionador de ossos.lua" access="3" lookdir="3" walkinterval="2000" floorchange="0"> <health now="4" max="100"/> <look type="145" head="40" body="37" legs="116" feet="95" addons="3"/> <parameters> <parameter key="message_greet" value="E ae matador! Você trouxe mais {bones} para mim? Preciso de 30 bones, se você trouxe diga {bones}."/> <parameter key="message_farewell" value="Mas que beleza... Quantos ossos!" /> <parameter key="message_walkaway" value="Yeah, mate mais! ò.ó" /> <parameter key="message_onsendtrade" value="Yeah, mate mais! ò.ó" /> <parameter key="module_shop" value="1" /> </parameters> </npc> ----------------------------------------------------------------------------- Raiz: C:\Users\Vitor Lucas\Desktop\Baiak Barao OT\data\npc\scripts Arquivo: colecionador de ossos.lua ----------------------------------------------------------------------------- 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, 'ossos') or msgcontains(msg, 'bones') or msgcontains(msg, 'bone')) then selfSay('Você realmente deseja trocar seus preciosos bones por um item aleatório? Diga {yes}.', cid) talkState[talkUser] = 1 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then if(getPlayerItemCount(cid, 5925) >= 30) then if(doPlayerRemoveItem(cid, 5925, 30) == TRUE) then doPlayerAddItem(cid, 6571) selfSay('Here you are.', cid) else selfSay('Desculpe, mas você não tem 30 bones.', cid) end else selfSay('Desculpe, mas você não tem 30 bones.', 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()) ----------------------------------------------------------------------------- Me Ajudem... OBG agradeço muito.
  8. Vitor Lucas postou uma resposta no tópico em Suporte OTServer Derivados
    Opá como eu acho isso no remes ? att Vitor Lucas
  9. Vitor Lucas reagiu a uma resposta no tópico: Help !
  10. Vitor Lucas reagiu a uma resposta no tópico: Help !
  11. Vitor Lucas postou uma resposta no tópico em Suporte OTServer Derivados
    Fala Galera do TK. - Então eu sou novato no tibiaking, Estou Fazendo meu servidor 8.60 com mapa barão. Que peguei aqui no fórum. Gostaria de saber se tem algum bug ou erro nessa parte que abre OT. Usando Alissow Server [04/02/2015 09:00:30] Alissow Server, version 0.4.1 (Alissow) [04/02/2015 09:00:30] Compiled with: Comedinhasss & Fireelement. [04/02/2015 09:00:30] A server developed by: Alissow & CiA. [04/02/2015 09:00:30] Visit our forum for updates & support: http://sotserv.blogspot.com/. [04/02/2015 09:00:30] >> Loading config (config.lua) [04/02/2015 09:00:30] > Using plaintext encryption [04/02/2015 09:00:30] >> Loading RSA key [04/02/2015 09:00:30] >> Starting SQL connection [04/02/2015 09:00:30] >> Running Database Manager [04/02/2015 09:00:31] > Optimized database. [04/02/2015 09:00:31] >> Loading items [04/02/2015 09:00:32] >> Loading groups [04/02/2015 09:00:32] >> Loading vocations [04/02/2015 09:00:32] >> Loading script systems [04/02/2015 09:00:33] >> Loading chat channels [04/02/2015 09:00:33] >> Loading outfits [04/02/2015 09:00:33] >> Loading experience stages [04/02/2015 09:00:33] >> Loading monsters [04/02/2015 09:00:35] >> Loading mods... [04/02/2015 09:00:35] > Loading arena.xml... done. [04/02/2015 09:00:35] > Loading buypremium_command.xml... done. [04/02/2015 09:00:35] > Loading changender_command.xml... done. [04/02/2015 09:00:35] > 3 mods were loaded. [04/02/2015 09:00:35] >> Loading map and spawns... [04/02/2015 09:00:36] > Map size: 2439x2283. [04/02/2015 09:00:36] > Map descriptions: [04/02/2015 09:00:36] "Saved with Remere's Map Editor 2.1" [04/02/2015 09:00:36] "Map dedicated to community tibiaking." [04/02/2015 09:00:36] Duplicate uniqueId 13500 [04/02/2015 09:00:36] Duplicate uniqueId 13500 [04/02/2015 09:00:40] > Map loading time: 4.29 seconds. [04/02/2015 09:00:40] > Data parsing time: 0.202 seconds. [04/02/2015 09:00:51] > Houses synchronization time: 11.139 seconds. [04/02/2015 09:00:51] > Content unserialization time: 0.078 seconds. [04/02/2015 09:00:51] >> Checking world type... PvP [04/02/2015 09:00:51] >> Initializing game state modules and registering services... [04/02/2015 09:00:51] > Global address: albionbaiak.servegame.com [04/02/2015 09:00:51] > Local ports: 7171 7172 [04/02/2015 09:00:51] >> All modules were loaded, server is starting up... [04/02/2015 09:00:51] >> Albion Baiak server Online! Tem algum erro, se tiver como arumar ?
  12. ai amigo como da espaço entre os texto /n nao deu ;x e como tira quando vai criar conta esta apareçendo no account manenger
  13. Vitor Lucas postou uma resposta no tópico em Mapas de Tibia
    Bom, como adicionar no meu mapa ?
  14. Me ajuda com isso nao consegui ADD msn [email protected]. pfv presiso disso mais da erro ajuda aki

Informação Importante

Confirmação de Termo