Ir para conteúdo

NathanAmaro

Membro
  • Registro em

  • Última visita

Tudo que NathanAmaro postou

  1. Vou testar, já edito para ver. ---------Edit---------- Funcionou perfeitamente, Obrigado amigo! Meus Reps acabaram por hoje, mas já anotei seu nome aqui para amanhã eu te reputar.
  2. Olá Galera! Vim aqui pedir um favor a vocês, um script que quando acabasse a Premium Account do player ele fosse teleportador para X position. Eu uso o Premium Account normal. Rep++
  3. Sim, deu certo. Obrigado
  4. a versão do meu xampp já é 1.7.3 =/ alguma outra ideia?
  5. muda : <health now="170" max="170"/> onde está 170 coloca o quanto de life você quer que ele tenha. Não se esqueça de repetir o número dentro das duas aspas, depois é só dar /reload monsters no seu server e pronto
  6. Olá Galera! Estou instalando meu gesior e está dando alguns problemas, vou cita-los pra ver se alguém pode me ajudar. Notice: Undefined index: sqliteDatabase in C:\xampp\htdocs\config-and-functions.php on line 36 Notice: Undefined index: action in C:\xampp\htdocs\index.php on line 12 Notice: Undefined index: account_login in C:\xampp\htdocs\index.php on line 34 Notice: Undefined index: password_login in C:\xampp\htdocs\index.php on line 35 Notice: Undefined variable: news_content in C:\xampp\htdocs\latestnews.php on line 23 Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'gamesdanger.z_news_tickers' doesn't exist' in C:\xampp\htdocs\latestnews.php:80 Stack trace: #0 C:\xampp\htdocs\latestnews.php(80): PDO->query('SELECT * FROM `...') #1 C:\xampp\htdocs\index.php(72): include('C:\\xampp\\htdocs...') #2 {main} thrown in C:\xampp\htdocs\latestnews.php on line 80 são esses erros que estão ocorrendo quando eu entro em localhost. Rep+ por quem ajudar
  7. Acabei de ver alguns, e consegui um pouco a entender, o tutorial que eu vi ele não dizia pra colocar os arquivos do meu site na pasta do xampp, agora foi tranquilo, até essa parte que da erro: pode me ajudar?
  8. Algumas dessas funções não funcionam em meu servidor. E também onde estão os ids dos items que são necessários?
  9. Não, esses npcs normais eles usam funções de moeda, e não de item, eles tiram moedas do player e dão o item, esse npc será de tirar item e dar item.
  10. Olá Galera! Esses dias eu tive uma ideia para um npc de informações, para deixar melhor o RPG dos OtServers. Esse Npc será um mago experiente que conhece todas as magias do servidor, e ao player chegar nele e falar com ele, o mesmo falará as magias do servidor, e ao player falar o nome da magia desejada que ele quer saber as informações o Npc falará o Level necessário, Magic level necessário e Mana necessária. Só que eu não sei fazer um Npc assim... Por isso vim pedir uma ajuda a vocês caros amigos a fazer esse Npc. Agradeço. Rep++ por quem me ajudar.
  11. Olá Galera! Bom dia. Vim aqui pedir uma ajudinha de vocês novamente . Bom, preciso de um npc de shop, que venderá items Premium em troca de um certo item. Resumindo, você irá comprar items nesse NPC só se tiver um certo item (id: 6527). Mas não seria um npc de Shopsystem normal, esse npc deverá vender os items só no dialogo, não no "Npc Trade". Ex: ~|NPC| Olá Player, eu vendo items Donate, diga "ofertas" para saber seus precos. ~|Player| Ofertas. ~|NPC| Eu vendo blessed ring, scale armor e royal helmet. Diga o que quer para saber seu valor. ~|Player| Blessed ring. ~|NPC| O blessed ring custa 5 VIP Coin, se deseja comprar diga "aceito". ~|Player| aceito. ~|NPC| Aqui esta seu item, aproveite ele. Bom, é basicamente isso, esse é um exemplo do dialogo. Agradeço desde já. Rep+ por quem me ajudar.
  12. Seção de instalação? Como eu vou para essa seção?
  13. Eu tentei usar esse agora a pouco, mas ele não abre.
  14. Olá Galera! Estou tentando abrir um Gesior para meu servidor, estou seguindo este tutorial: criando um servidor com site windows. Bom, foi tudo bem até a parte da instalação do Gesior, o tópico manda entrar no localhost e clicar em "set server patch" mas não estou achando essa parte para instalar o servidor. Preciso de ajuda!
  15. Ok, irei testar para ver se irá funcionar. Obrigado a Todos!
  16. Bom, eu não sei fazer isso, mas acho que nem uma conta está em encrypt, será que criando site em mysql resolve isso? e poderá criar novos personagens na mesma account?
  17. sha1 não da nem para entrar com o account manager normalmente =/
  18. o meu está plain, tem que colocar qual? sha1?
  19. Olá Galera! Estou com um problema no meu server, quando eu crio minha conta e meu character no Account Manager fica tudo bem, mas depois que eu entro na conta e tento entrar novamente no Account Manager (Pela conta que eu criei) aparece "Invalid password" Rep+ por quem me ajudar!
  20. Existe alguma função que eu possa substituir por essa função que está dando o erro?
  21. Olá Galera! Estou trocando meu server de versão e deu alguns erros em alguns scripts de uns npc's, e peço a vocês que me ajudem =/. Aqui está os erros: Aqui vou colocar os scripts que estão dando error acima: defalt.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()) vip.lua: days = 30 vipcoins = 12449 quant = 10 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 function santaNPC(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if (parameters.present == true) then if isPlayer(cid) then if getPlayerItemCount(cid,vipcoins) >= quant then doPlayerAddPremiumDays(cid,days) doPlayerRemoveItem(cid,vipcoins,quant) npcHandler:say('Obrigado, aqui estao seus 30 dias de Premium', cid) else npcHandler:say('Voce nao tem Dangerous Coins suficientes!', cid) end end npcHandler:resetNpc() return true end end npcHandler:setMessage(MESSAGE_GREET, "Ola. Eu vendo dias de {Premium}.") local noNode = KeywordNode:new({'no'}, santaNPC, {present = false}) local yesNode = KeywordNode:new({'yes'}, santaNPC, {present = true}) local node = keywordHandler:addKeyword({'premium'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce gostaria de comprar 30 dias de Premium por 10 Dangerous Coin?'}) node:addChildKeywordNode(yesNode) node:addChildKeywordNode(noNode) npcHandler:addModule(FocusModule:new()) donation.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 local shopWindow = {} local moeda = 12449 -- [ID DA MOEDA] local t = { [12642] = {price = 5}, -- [ID DO ITEM QUE SERÁ VENDIDO] = {QUANTO IRÁ CUSTAR} [12643] = {price = 5}, -- [ID DO ITEM QUE SERÁ VENDIDO] = {QUANTO IRÁ CUSTAR} [12644] = {price = 5}, -- [ID DO ITEM QUE SERÁ VENDIDO] = {QUANTO IRÁ CUSTAR} [12645] = {price = 5}, -- [ID DO ITEM QUE SERÁ VENDIDO] = {QUANTO IRÁ CUSTAR} [12646] = {price = 5}, -- [ID DO ITEM QUE SERÁ VENDIDO] = {QUANTO IRÁ CUSTAR} [8931] = {price = 5}, -- [ID DO ITEM QUE SERÁ VENDIDO] = {QUANTO IRÁ CUSTAR} [8925] = {price = 5}, -- [ID DO ITEM QUE SERÁ VENDIDO] = {QUANTO IRÁ CUSTAR} [2444] = {price = 5}, -- [ID DO ITEM QUE SERÁ VENDIDO] = {QUANTO IRÁ CUSTAR} [12318] = {price = 5}, -- [ID DO ITEM QUE SERÁ VENDIDO] = {QUANTO IRÁ CUSTAR} [8851] = {price = 5}, -- [ID DO ITEM QUE SERÁ VENDIDO] = {QUANTO IRÁ CUSTAR} [7363] = {price = 3}, -- [ID DO ITEM QUE SERÁ VENDIDO] = {QUANTO IRÁ CUSTAR} [2208] = {price = 5}, -- [ID DO ITEM QUE SERÁ VENDIDO] = {QUANTO IRÁ CUSTAR} [2166] = {price = 5}, -- [ID DO ITEM QUE SERÁ VENDIDO] = {QUANTO IRÁ CUSTAR} [2167] = {price = 3}, -- [ID DO ITEM QUE SERÁ VENDIDO] = {QUANTO IRÁ CUSTAR} [2207] = {price = 5} -- [ID DO ITEM QUE SERÁ VENDIDO] = {QUANTO IRÁ CUSTAR} } local onBuy = function(cid, item, subType, amount, ignoreCap, inBackpacks) if t[item] and not doPlayerRemoveItem(cid, moeda, t[item].price) then selfSay("voce nao tem "..t[item].price.." "..getItemNameById(moeda), cid) else doPlayerAddItem(cid, item) selfSay("aqui esta seu item!", cid) end return true end if (msgcontains(msg, 'trade') or msgcontains(msg, 'TRADE'))then for var, ret in pairs(t) do table.insert(shopWindow, {id = var, subType = 0, buy = ret.price, sell = 0, name = getItemNameById(var)}) end openShopWindow(cid, shopWindow, onBuy, onSell) end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) promotion.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 local node1 = keywordHandler:addKeyword({'promot'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can promote you for 20000 gold coins. Do you want me to promote you?'}) node1:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 20000, level = 1, promotion = 1, text = 'Congratulations! You are now promoted.'}) node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then, come back when you are ready.', reset = true}) --[[ local node2 = keywordHandler:addKeyword({'epic'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can epicize you for 200000 gold coins. Do you want me to epicize you?'}) node2:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 200000, level = 120, promotion = 2, text = 'Congratulations! You are now epicized.'}) node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then, come back when you are ready.', reset = true}) ]]-- npcHandler:addModule(FocusModule:new()) runes.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 local shopModule = ShopModule:new() npcHandler:addModule(shopModule) shopModule:addBuyableItem({'magic lightwand'}, 2163, 400, 'magic lightwand') shopModule:addSellableItem({'normal potion flask', 'normal flask'}, 7636, 5, 'empty small potion flask') shopModule:addSellableItem({'strong potion flask', 'strong flask'}, 7634, 10, 'empty strong potion flask') shopModule:addSellableItem({'great potion flask', 'great flask'}, 7635, 15, 'empty great potion flask') shopModule:addBuyableItem({'small health'}, 8704, 20, 1, 'small health potion') shopModule:addBuyableItem({'health potion'}, 7618, 45, 1, 'health potion') shopModule:addBuyableItem({'mana potion'}, 7620, 50, 1, 'mana potion') shopModule:addBuyableItem({'strong health'}, 7588, 100, 1, 'strong health potion') shopModule:addBuyableItem({'strong mana'}, 7589, 80, 1, 'strong mana potion') shopModule:addBuyableItem({'great health'}, 7591, 190, 1, 'great health potion') shopModule:addBuyableItem({'great mana'}, 7590, 120, 1, 'great mana potion') shopModule:addBuyableItem({'great spirit'}, 8472, 190, 1, 'great spirit potion') shopModule:addBuyableItem({'ultimate health'}, 8473, 310, 1, 'ultimate health potion') shopModule:addBuyableItem({'antidote potion'}, 8474, 50, 1, 'antidote potion') shopModule:addBuyableItem({'sudden death'}, 2268, 108, 1, 'sudden death rune') shopModule:addBuyableItem({'ultimate healing'}, 2273, 175, 1, 'ultimate healing rune') shopModule:addBuyableItem({'wand of vortex', 'vortex'}, 2190, 500, 1, 'wand of vortex') shopModule:addBuyableItem({'wand of voodoo', 'voodoo'}, 8922, 22000, 1, 'wand of voodoo') shopModule:addBuyableItem({'snakebite rod', 'snakebite'}, 2182, 500, 1, 'snakebite rod') shopModule:addBuyableItem({'underworld rod', 'underworld'}, 8910, 22000, 1, 'underworld rod') local items = {[1] = 2190, [2] = 2182, [5] = 2190, [6] = 2182} 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, 'first rod') or msgcontains(msg, 'first wand')) then if(isSorcerer(cid) or isDruid(cid)) then if(getPlayerStorageValue(cid, 30002) <= 0) then selfSay('So you ask me for a {' .. getItemNameById(items[getPlayerVocation(cid)]) .. '} to begin your advanture?', cid) talkState[talkUser] = 1 else selfSay('What? I have already gave you one {' .. getItemNameById(items[getPlayerVocation(cid)]) .. '}!', cid) end else selfSay('Sorry, you aren\'t a druid either a sorcerer.', cid) end elseif(msgcontains(msg, 'yes')) then if(talkState[talkUser] == 1) then doPlayerAddItem(cid, items[getPlayerVocation(cid)], 1) selfSay('Here you are young adept, take care yourself.', cid) setPlayerStorageValue(cid, 30002, 1) end talkState[talkUser] = 0 elseif(msgcontains(msg, 'no') and isInArray({1}, talkState[talkUser])) then selfSay('Ok then.', cid) talkState[talkUser] = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) loot.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 -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! keywordHandler:addKeyword({'helmets'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy royal (40k), warrior (6k), crusader (9k), crown (5k), devil (4k), chain (35gp) and iron helmets (30gp), also mystic turbans (500gp).'}) keywordHandler:addKeyword({'boots'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy golden boots (100k), steel boots (40k) and boots of haste (40k).'}) keywordHandler:addKeyword({'armors'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy golden (30k), crown (20k), knight (5k), lady (7,5k), plate (400gp), brass (200gp) and chain armors (100gp), also mpa (100k), dsm (60k) and blue robes (15k).'}) keywordHandler:addKeyword({'legs'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy golden (80k), crown (15k), knight (6k), plate (500gp) and brass legs (100gp).'}) keywordHandler:addKeyword({'shields'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy blessed (150k), great (100k), demon (40k), vampire (25k), medusa (8k), amazon (4k), crown (5k), tower (4k), dragon (3k), guardian (2k), beholder (1k), and dwarven shields (100gp), also mms (80k).'}) keywordHandler:addKeyword({'swords'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy giant (10k), bright (6k), fire (3k) serpent (1.5k), spike (800gp) and two handed swords (400gp), also ice rapiers (4k), magic longswords (150k), magic swords (90k), warlord swords (100k) broad swords (70gp), short swords (30gp), sabres (25gp) and swords (25gp).'}) keywordHandler:addKeyword({'axes'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy fire (10k), guardian halberds (7,5k) knight (2k), double (200gp) and battle axes (100gp), also dragon lances (10k), stonecutters axes (90k), halberds (200gp) and hatchets (20gp).'}) keywordHandler:addKeyword({'clubs'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy thunder hammers (90k), war (6k), dragon (2k) and battle hammers (60gp), also skull staffs (10k) and clerical maces (200gp).'}) npcHandler:addModule(FocusModule:new()) furniture.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 -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! keywordHandler:addKeyword({'chairs'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell wooden, sofa, red cushioned, green cushioned, tusk and ivory chairs.'}) keywordHandler:addKeyword({'tables'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell big, square, round, small, stone, tusk, bamboo tables.'}) keywordHandler:addKeyword({'plants'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell pink and green flowers, also christmas trees.'}) keywordHandler:addKeyword({'furniture'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell large trunks, boxes, drawers, dressers, lockers and troughs.'}) keywordHandler:addKeyword({'more'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell coal basins, birdcages, harps, pianos, globes, clocks and lamps.'}) keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell blue, green, orange, pink, red, white and yellow tapestries.'}) keywordHandler:addKeyword({'small'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell small purple, small green, small red, small blue, small orange, small turquiose and small white pillows.'}) keywordHandler:addKeyword({'round'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell round blue, round red, round purple and round turquiose pillows.'}) keywordHandler:addKeyword({'square'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell blue, red, green and yellow pillows.'}) keywordHandler:addKeyword({'pillows'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell heart, small, sqare and round pillows.'}) keywordHandler:addKeyword({'beds'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell {green}, {red} and {yellow} {beds} for {5000}gp. I can sell you too standard bed (to remove modification)'}) npcHandler:addModule(FocusModule:new()) É de máxima importância que eu consiga arrumar isso, pois esses npc's são fundamentais em meu OTServer. Reputarei com 3Reps quem me ajudar.
  22. NathanAmaro postou uma resposta no tópico em Suporte & Pedidos
    Ficou bom, só acho que está muito parecido com Site de naturo que tem por aí, só mudou praticamente as cores, dá uma modernizada nisso amigo
  23. Bom, eu nunca mexi com PokeTibia, mas tente ir na basta actions, acredito que esteja lá, tente achar algo relacionado as stones na pasta data/actions/scripts. Se não encontrar vá em data/actions e abra o arquivo actions.xml, dê um Ctrl + F procure pelo id das stones e veja no final da tag o nome do script, abra o script dê Ctrl + F e procure pelo ID do efeito que está no pokémon observe a função que o mesmo está, se tem nela algo sobre effects e substitua o mesmo
  24. Olá Galera! Pessoal eu troquei o mapa do meu server e apareceu esses erros na distro do servidor, e preciso que alguém me ajudasse para saber o que é e como posso resolver isso. Aqui está os erros que está apresentando na distro: Rep++ Por quem ajudar.

Informação Importante

Confirmação de Termo