Ir para conteúdo

Xagah

Membro
  • Registro em

  • Última visita

Tudo que Xagah postou

  1. kkkkkkkkkkkkkkkkkkkkkk... #EuRiAlto Claro, é o 'client' mesmo. Server trabalhado não se passa pra ninguém... Manda no e-mail '[email protected]' Abraço.
  2. Xagah postou uma resposta no tópico em Suporte Tibia OTServer
    Então faz como comentei acima, muda dentro da sua função e coloca isto:
  3. Ok. Onde fica registrado quem é VIP no seu banco de dados? Edited: Abra seu PHPMyAdmin e bata uma 'screenshot' da página com a Variável.
  4. Ah, sim. Isto mesmo. Coloque deste modo que está mencionando. É só mudar o texto 'Premmiun Account' por 'VIP'. Aquele texto entre '<b> </b> é o que irá aparecer para o Player.
  5. Bom, achamos o erro. Uma das coisas que mais faz consumir 'Memory' no server é o tamanho do Mapa. O seu é Global? Além disto, li alguns relatos de muitos NPC´s e Muitos monsters gerarem isto, o que faz sentido quando comparado com o tamanho do mapa... Teste um mapa menor e se o erro retornar volta aqui.
  6. Cara, o 'script' está normal... Ele aparece no final que está 'Free' ou 'Premmiun'. Agora não sei se entendi sua pergunta certo: Você quer que estas informações apareçam no meio das informações do 'char' ou quer mudar o texto que aparece?
  7. Xagah postou uma resposta no tópico em Suporte Tibia OTServer
    Vá até a sua pasta 'creaturescrpits' e veja se existe algum aquivo chamado 'tp'. Se sim, abra-o e cole-o aqui. O erro está lá.
  8. Xagah postou uma resposta no tópico em Suporte Tibia OTServer
    Vá na sua pasta: data > XML > 'outfits.xml' e poste seu arquivo aqui. O erro está lá. Edit: hein, pela sua função os 'Free Account' nem mesmo podem adquirir os 'AddOns'. É isto? Se for, mude seu script para: function onSay(cid, words, param) local femaleOutfits = { ["citizen"]={136}, ["hunter"]={137}, ["mage"]={138}, ["knight"]={139}, ["nobleman"]={140}, ["summoner"]={141}, ["warrior"]={142}, ["barbarian"]={147}, ["druid"]={148}, ["wizard"]={149}, ["oriental"]={150}, ["pirate"]={155}, ["assassin"]={156}, ["beggar"]={157}, ["shaman"]={158}, ["norsewoman"]={252}, ["nightmare"]={269}, ["jester"]={270}, ["brotherhood"]={279}, ["demonhunter"]={288}, ["yalaharian"]={324} } local maleOutfits = { ["citizen"]={128}, ["hunter"]={129}, ["mage"]={130}, ["knight"]={131}, ["nobleman"]={132},["summoner"]={133}, ["warrior"]={134}, ["barbarian"]={143}, ["druid"]={144}, ["wizard"]={145}, ["oriental"]={146}, ["pirate"]={151}, ["assassin"]={152}, ["beggar"]={153}, ["shaman"]={154}, ["norsewoman"]={251}, ["nightmare"]={268}, ["jester"]={273}, ["brotherhood"]={278}, ["demonhunter"]={289}, ["yalaharian"]={325} } local msg = {"Digite o nome correto!", "Voce não possui Addon Doll!", "Bad param!", "Você recebeu seu addons!"} local param = string.lower(param) -- if (not isPremium(cid)) then -- doPlayerSendCancel(cid, "Você nao tem premium account.") -- return TRUE -- end if(getPlayerItemCount(cid, 2112) > 0) then if(param ~= "" and maleOutfits[param] and femaleOutfits[param]) then doPlayerRemoveItem(cid, 2112, 1) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[4]) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS) if(getPlayerSex(cid) == 0)then doPlayerAddOutfit(cid, femaleOutfits[param][1], 3) else doPlayerAddOutfit(cid, maleOutfits[param][1], 3) end else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[1]) end else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2]) end end Coloquei a função que checa o 'Premmiun' abreviada porque vc pode querer usá-la no futuro. Aí vc só retirar os '--' que coloquei.
  9. Cara, vc deu o mesmo nome para todas as novas vocações. Todas elas se chamam 'Indra'. Não sei se isto é, de fato, seu interesse, mas isto poderá ocasionar erros em futuros scripts. Outra coisa, vc deu 'id' acima de 540 para todas elas. Penso (não tenho certeza) que provavelmente isto não tenha 'habilitação' dentro da distro. Assim, mude os nome e ajeite a 'id' (para um número acima da última 'vocation' criada). Se ainda assim não resolver, provavelmente dentro do seu banco de dados não está sendo determinado o 'save'. Portanto, mude conforme eu disse acima. Se não der certo volte aqui.
  10. Xagah postou uma resposta no tópico em Suporte Tibia OTServer
    Você quer que os 'AddOns' só fiquem disponíveis para 'players premmiun', é isto?
  11. Cara, a configuração do Retorno Pagseguro depende de configurações que vc deverá adequar de acordo com seu serve sua respectiva conta no 'PagSeguro'. Uma vez que utiliza medidas de segurança, que vão desde a 'password' do seu banco de dados até o 'token' fornecido pela sua conta do seu 'PagSeguro'. Assim, provavelmente vc encontrará o site, mas o sistema de pagamento deverá ser configurado. Sua sorte é que é muito simples e já criaram um tópico aqui no 'site' excelente e funcional. É certinho, se der algum erro posta aqui que ajudo a resolver. É bom deixar registrado pro pessoal no futuro ir vendo os erros e soluções.
  12. Cara, na linha de comando que indicou ali em cima há várias variáveis que foram declaradas como parâmetros comparativos (ex.: $account, sVipTime()). Assim, não consigo analisar o erro se não postar seu script completo, uma vez que toda e qualquer variável tem que ser 'declarada' no início de todo e qualquer 'script'. Manda aqui e conversamos novamente.
  13. Minha opinião: 1º - Mude o nome da Pasta "Hatera 100% Cidade Inovadora!" para "Hatera". Sério, tire estes símbolos e números. Dependendo da formatação utilizada pelo site isto poderá ser um complicador mais a frente. 2º - Não há erro no seu 'config.lua'. A mensagem diz que não encontrou o arquivo. 3º - Vá no seguinte endereço: c:\ > wamp > www > (nome da pasta do seu site) > config > 'config.php' c:\ > wamp > www > (nome da pasta do seu site) > config > 'config.php' 4º - Vá em: $config['site']['serverPath'] = "C:/Users/Rafael/Desktop/Hatera 100% Cidade Inovadora!/config.lua"; e mude para: $config['site']['serverPath'] = "C:/Users/Rafael/Desktop/Hatera/"; E veja se funciona. Se sim, rep+. Se não, volte aqui.
  14. O seu 'Forgotten.exe' foi compilada para 32 ou 64 bits? Muito provavelmente esta memória a que este erro se refere seja a Randômica, vale dizer, a RAM (Random Acess Memory). Faz o seguinte, por enquanto, executa o '.exe' e abre o Gerenciador de Tarefas (aperta ctrl + shift + esc) e veja quanto de memória ele utiliza quando o erro aparece. Entendeu?
  15. Xagah postou uma resposta no tópico em Suporte Tibia OTServer
    Você precisa mudar no arquivo 'vocations.xml', uma vez que o erro está lá. Abre este arquivo e coloca isto aqui: <?xml version="1.0" encoding="UTF-8"?> <vocations> <vocation id="0" name="None" description="none" needpremium="0" gaincap="5" gainhp="5" gainmana="5" gainhpticks="6" gainhpamount="1" gainmanaticks="6" gainmanaamount="1" manamultiplier="4.0" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="0" attackable="no"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.2" armor="1.0"/> <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="1" name="Sorcerer" description="a sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="7" gainhpamount="10" gainmanaticks="2.5" gainmanaamount="25" manamultiplier="1.1" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="1"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.5" magDamage="1.1" magHealingDamage="1.0" defense="1.0" magDefense="1.2" armor="1.0"/> <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="2" name="Druid" description="a druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="7" gainhpamount="10" gainmanaticks="2.5" gainmanaamount="25" manamultiplier="1.1" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="2"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.5" magDamage="1.1" magHealingDamage="1.0" defense="1.0" magDefense="1.2" armor="1.0"/> <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="3" name="Paladin" description="a paladin" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="5" gainhpamount="30" gainmanaticks="4" gainmanaamount="20" manamultiplier="1.4" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="3"> <formula meleeDamage="1.0" distDamage="1.8" wandDamage="1.0" magDamage="1.1" magHealingDamage="1.3" defense="1.0" magDefense="1.2" armor="1.0"/> <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="4" name="Knight" description="a knight" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="3" gainhpamount="40" gainmanaticks="5" gainmanaamount="15" manamultiplier="3.0" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="4"> <formula meleeDamage="1.6" distDamage="1.0" wandDamage="1.0" magDamage="1.5" magHealingDamage="1.3" defense="1.4" magDefense="1.2" armor="1.0"/> <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="5" name="Master Sorcerer" description="a master sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="5.6" gainhpamount="10" gainmanaticks="2" gainmanaamount="25" manamultiplier="1.1" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="1" lessloss="10"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.5" magDamage="1.1" magHealingDamage="1.0" defense="1.0" magDefense="1.2" armor="1.0"/> <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="6" name="Elder Druid" description="an elder druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="5.6" gainhpamount="10" gainmanaticks="2" gainmanaamount="25" manamultiplier="1.1" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="2" lessloss="10"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.5" magDamage="1.1" magHealingDamage="1.0" defense="1.0" magDefense="1.2" armor="1.0"/> <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="7" name="Royal Paladin" description="a royal paladin" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="4" gainhpamount="30" gainmanaticks="3.2" gainmanaamount="20" manamultiplier="1.4" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="3" lessloss="10"> <formula meleeDamage="1.0" distDamage="1.9" wandDamage="1.0" magDamage="1.1" magHealingDamage="1.3" defense="1.0" magDefense="1.2" armor="1.0"/> <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="8" name="Elite Knight" description="an elite knight" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2.4" gainhpamount="40" gainmanaticks="4" gainmanaamount="15" manamultiplier="3.0" attackspeed="1500" soulmax="200" gainsoulticks="15" fromvoc="4" lessloss="10"> <formula meleeDamage="2.0" distDamage="1.0" wandDamage="1.0" magDamage="1.5" magHealingDamage="1.3" defense="1.7" magDefense="1.2" armor="1.0"/> <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> </vocations> Assim, o erro não é na distro. Agora, pra te ajudar quanto ao primeiro erro, posta o seu script 'monsters.xml' aí pra eu analisar. Ajudei por enquanto? Rep+.
  16. Hein, esse mapa em que você achou o modo como queria, é uma foto ou um servidor? Se for servidor, me passa o 'link' que vou 'crashar' o 'client' e pega isso na marra! hhahahahah Fico no aguardo,
  17. Cara, estão faltando algumas funções no seu server. Abre o local: lib/050-function.lua A adiciona isto aqui depois de tudo: function getCreaturesInRange(position, radiusx, radiusy, showMonsters, showPlayers, showSummons) local creaturesList = {} for x = -radiusx, radiusx do for y = -radiusy, radiusy do if not (x == 0 and y == 0) then local creature = getTopCreature({x = position.x+x, y = position.y+y, z = position.z}) if (creature.type == 1 and showPlayers) or (creature.type == 2 and showMonsters and (not showSummons or (showSummons and getCreatureMaster(creature.uid) == (creature.uid)))) then table.insert(creaturesList, creature.uid) end end end end local creature = getTopCreature(position) if (creature.type == 1 and showPlayers) or (creature.type == 2 and showMonsters and (not showSummons or (showSummons and getCreatureMaster(creature.uid) == (creature.uid)))) then if not(table.find(creaturesList, creature.uid)) then table.insert(creaturesList, creature.uid) end end return creaturesList end E reinicia o server. Aproveitando, qual client está usando? 8.70? Se sim, qual 'rev' está utilizando? .3992?
  18. Então, porque no meu server as únicas conexões são estabelecidas com este arquivo. O único local em todo o server onde tem a palavra 'hello' dentro do parâmetro 'FOCUS' é nela. E chequei outras versões minhas aqui também tem este arquivo. Teste aí. As vezes não tinha ou foi deletada sem querer.
  19. Blz, se estiver utilizando o 'Otbuilder' marque as seguintes opções para os objetos que ficam no chão (as 'dobras'):
  20. Então, vc tem o mapa com a imagem que vc quer ou encontrou aquela imagem em algum lugar?
  21. Cara, no meu existe um arquivo chamado 'main.lua' dentro da pasta data > npc > lib > npcsystem > main.lua Com o seguinte: -- Advanced NPC System (Created by Jiddo), -- Modified by TheForgottenServer Team. if(NpcSystem == nil) then -- Loads the underlying classes of the npcsystem. dofile(getDataDir() .. 'npc/lib/npcsystem/keywordhandler.lua') dofile(getDataDir() .. 'npc/lib/npcsystem/queue.lua') dofile(getDataDir() .. 'npc/lib/npcsystem/npchandler.lua') dofile(getDataDir() .. 'npc/lib/npcsystem/modules.lua') -- Global npc constants: -- Keyword nestling behavior. For more information look at the top of keywordhandler.lua KEYWORD_BEHAVIOR = BEHAVIOR_NORMAL_EXTENDED -- Greeting and unGreeting keywords. For more information look at the top of modules.lua FOCUS_GREETWORDS = {'hi', 'hello'} FOCUS_FAREWELLWORDS = {'bye', 'farewell'} -- The word for requesting trade window. For more information look at the top of modules.lua SHOP_TRADEREQUEST = {'offer', 'trade'} -- The word for accepting/declining an offer. CAN ONLY CONTAIN ONE FIELD! For more information look at the top of modules.lua SHOP_YESWORD = {'yes'} SHOP_NOWORD = {'no'} -- Pattern used to get the amount of an item a player wants to buy/sell. PATTERN_COUNT = '%d+' -- Talkdelay behavior. For more information, look at the top of npchandler.lua. NPCHANDLER_TALKDELAY = TALKDELAY_ONTHINK -- Conversation behavior. For more information, look at the top of npchandler.lua. NPCHANDLER_CONVBEHAVIOR = CONVERSATION_PRIVATE -- Constant strings defining the keywords to replace in the default messages. -- For more information, look at the top of npchandler.lua... TAG_PLAYERNAME = '|PLAYERNAME|' TAG_ITEMCOUNT = '|ITEMCOUNT|' TAG_TOTALCOST = '|TOTALCOST|' TAG_ITEMNAME = '|ITEMNAME|' TAG_QUEUESIZE = '|QUEUESIZE|' NpcSystem = {} -- Gets an npcparameter with the specified key. Returns nil if no such parameter is found. function NpcSystem.getParameter(key) local ret = getNpcParameter(tostring(key)) if((type(ret) == 'number' and ret == 0) or ret == nil) then return nil else return ret end end -- Parses all known parameters for the npc. Also parses parseable modules. function NpcSystem.parseParameters(npcHandler) local ret = NpcSystem.getParameter('idletime') if(ret ~= nil) then npcHandler.idleTime = tonumber(ret) end local ret = NpcSystem.getParameter('talkradius') if(ret ~= nil) then npcHandler.talkRadius = tonumber(ret) end local ret = NpcSystem.getParameter('message_greet') if(ret ~= nil) then npcHandler:setMessage(MESSAGE_GREET, ret) end local ret = NpcSystem.getParameter('message_farewell') if(ret ~= nil) then npcHandler:setMessage(MESSAGE_FAREWELL, ret) end local ret = NpcSystem.getParameter('message_decline') if(ret ~= nil) then npcHandler:setMessage(MESSAGE_DECLINE, ret) end local ret = NpcSystem.getParameter('message_needmorespace') if(ret ~= nil) then npcHandler:setMessage(MESSAGE_NEEDMORESPACE, ret) end local ret = NpcSystem.getParameter('message_needspace') if(ret ~= nil) then npcHandler:setMessage(MESSAGE_NEEDSPACE, ret) end local ret = NpcSystem.getParameter('message_sendtrade') if(ret ~= nil) then npcHandler:setMessage(MESSAGE_SENDTRADE, ret) end local ret = NpcSystem.getParameter('message_noshop') if(ret ~= nil) then npcHandler:setMessage(MESSAGE_NOSHOP, ret) end local ret = NpcSystem.getParameter('message_oncloseshop') if(ret ~= nil) then npcHandler:setMessage(MESSAGE_ONCLOSESHOP, ret) end local ret = NpcSystem.getParameter('message_onbuy') if(ret ~= nil) then npcHandler:setMessage(MESSAGE_ONBUY, ret) end local ret = NpcSystem.getParameter('message_onsell') if(ret ~= nil) then npcHandler:setMessage(MESSAGE_ONSELL, ret) end local ret = NpcSystem.getParameter('message_missingmoney') if(ret ~= nil) then npcHandler:setMessage(MESSAGE_MISSINGMONEY, ret) end local ret = NpcSystem.getParameter('message_needmoney') if(ret ~= nil) then npcHandler:setMessage(MESSAGE_NEEDMONEY, ret) end local ret = NpcSystem.getParameter('message_missingitem') if(ret ~= nil) then npcHandler:setMessage(MESSAGE_MISSINGITEM, ret) end local ret = NpcSystem.getParameter('message_needitem') if(ret ~= nil) then npcHandler:setMessage(MESSAGE_NEEDITEM, ret) end local ret = NpcSystem.getParameter('message_idletimeout') if(ret ~= nil) then npcHandler:setMessage(MESSAGE_IDLETIMEOUT, ret) end local ret = NpcSystem.getParameter('message_walkaway') if(ret ~= nil) then npcHandler:setMessage(MESSAGE_WALKAWAY, ret) end local ret = NpcSystem.getParameter('message_alreadyfocused') if(ret ~= nil) then npcHandler:setMessage(MESSAGE_ALREADYFOCUSED, ret) end local ret = NpcSystem.getParameter('message_placedinqueue') if(ret ~= nil) then npcHandler:setMessage(MESSAGE_PLACEDINQUEUE, ret) end local ret = NpcSystem.getParameter('message_buy') if(ret ~= nil) then npcHandler:setMessage(MESSAGE_BUY, ret) end local ret = NpcSystem.getParameter('message_sell') if(ret ~= nil) then npcHandler:setMessage(MESSAGE_SELL, ret) end local ret = NpcSystem.getParameter('message_bought') if(ret ~= nil) then npcHandler:setMessage(MESSAGE_BOUGHT, ret) end local ret = NpcSystem.getParameter('message_sold') if(ret ~= nil) then npcHandler:setMessage(MESSAGE_SOLD, ret) end -- Parse modules. for parameter, module in pairs(Modules.parseableModules) do local ret = NpcSystem.getParameter(parameter) if(ret ~= nil) then local number = tonumber(ret) if(number ~= nil and number ~= 0) then npcHandler:addModule(module:new()) end end end end end Criar este arquivo e dá uma resposta aqui.
  22. Xagah postou uma resposta no tópico em Suporte Tibia OTServer
    Seu PC tem um IP a cada vez que seu router é reiniciado. Assim, vc precisa de um IP Fixo. Vc pode pagar e ter um 'número' fixo ou ter um pelo 'no-ip' (http://www.noip.com/) Se vc for abrir só nos domingos, compensa inserir seu IP a cada domingo. Use o http://www.meuip.com.br/ e saiba o IP da máquina. Se quiser deixar automático, volta aqui que te ajudo. Se ajudei por enquanto, rep+.
  23. Posta seu arquivo 'latestnews' que ja resolvemos isto.
  24. Reparei que naquele que vc quer que fique igual é uma 'quina' (dobra). Abre ela no 'ObjectBuilder' e veja as propriedades daquele que você quer e insere dentro do que está dando erro. Tenta aí.
  25. Vá dentro da pasta: Data > CreatureScripts > Scripts > login.xml Abra ele e, dentro da função 'onlogin' coloque o seguinte: if(getPlayerPremiumDays(cid) > 0) then doPlayerPopupFYI(cid, "Voce e premmiun!\n e Ganha 30% mais \n de Exp") else doPlayerPopupFYI(cid, "Você nao e premmiun!\n Compre e ganhe 30% a mais \n de Exp") end Veja se é isto.

Informação Importante

Confirmação de Termo