Ir para conteúdo

PedroPr

Membro
  • Registro em

  • Última visita

Tudo que PedroPr postou

  1. Ai galera editei em varios local ali no treiner, e n deu , alguem sabe me dizer aonde faça o treiner da porada mais rapido e sem da critico q acabe matando o player ??? vlw pela atençao
  2. sim fera Os treiner estavao e estao com protect zone =)
  3. Vlw , com a troca ,deu bug de novo. =/ vou deixar assim mesmo , do geito q tava ! ja me ajudou muito ! e depois dou uma reeditado pra ver se concerta ! vlw pela ajuda , problema resolvido !
  4. Ta ai 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 -- Conversa Jogador/NPC if(msgcontains(msg, 'offer') or msgcontains(msg, 'offer')) then selfSay('Para comprar Premium diga ( premium ).', cid) elseif(msgcontains(msg, 'premium') or msgcontains(msg, 'Premium')) then selfSay('15 Dias por 100k ok - diga yes para comprar-', cid) talkState[talkUser] = 1 -- Confirmação da Compra elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then if(doPlayerRemoveItem(cid, 2160, 100) == true) then selfSay('Parabens, Premium de 15 dias!', cid) doPlayerAddPremiumDays(cid, 15) talkState[talkUser] = 0 else selfSay('Voce nao tem dinheiro suficientes.', cid) talkState[talkUser] = 0 end end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  5. o map è proprio n tinha nada, dai deu error no seu primeiro mais acho q estava funcionado do mesmo geito ! só deu error devido a tradução do google chorme ja retirei as traduçao e deu certo com o ultimo ! reeditei pra cobra 100k 15 dias mais queria q limitase , q n desse pra compra mais q vinte , por isso sobrecarregue o preço !
  6. kkk mals problema resolvido ! os script estavao todos certo , o unico problema eu achei , erra meu google chrome q tava dando traduçao automatica ta funfando sussi abras e vlw por ajuda . Tks o vitin mais uma pergunta , vc sabe uma estensao pra limita a p.a pra maximo trinta dia , ! se tiver 30 dias Vc n pode compra mais ?só quando tiver menos de trinta dias ?
  7. kkk mals problema resolvido ! os script estavao todos certo , o unico problema eu achei , erra meu google chrome q tava dando traduçao automatica ta funfando sussi abras e vlw por ajuda . Tks
  8. ainda continua =/ ta dando error no vende ele ta dizendo q estou sem grana o pq n sei =/ olha oque ele me diz e ve ai oque posso dizer pra compra as premmy lembrando q a crystal esta como platium
  9. rebogou agora , kk n aparece nem mais o npc mais
  10. kk agora vc me confundiu de boa vou ver aqui se da !
  11. vitin reeditei aqui e deu o npc apareceu !só me manda oque tenho q manda pra ele me arruma as premmy olha o oque ele me respondeu !!! 19:57 Buypremmy: Olá Test Ek. Eu vendo Premium Days. 19:57 Test Ek [128]: premium 19:57 Buypremmy: Voce gostaria de comprar "..days.." dias de Premium por "..quant.." Crystal ? 19:57 Test Ek [128]: yes 19:57 Buypremmy: Voce não tem "..quant.." Crystal . 19:57 Test Ek [128]: yes 19:57 Test Ek [128]: 10 19:57 Test Ek [128]: 10 yes 19:57 Test Ek [128]: 1 yes Ficou reeditado assim days = 30 Crystal = 2160 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,crystal ) >= quant then doPlayerAddPremiumDays(cid,days) doPlayerRemoveItem(cid,crystal ,quant) npcHandler:say('Obrigado |PLAYERNAME|, Está aqui seus "..days.." dias de Premium', cid) else npcHandler:say('Voce não tem "..quant.." Crystal .', cid) end end npcHandler:resetNpc() return true end end npcHandler:setMessage(MESSAGE_GREET, "Olá |PLAYERNAME|. Eu vendo {Premium} Days.") 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 "..days.." dias de Premium por "..quant.." Crystal ?'}) node:addChildKeywordNode(yesNode) node:addChildKeywordNode(noNode) npcHandler:addModule(FocusModule:new())
  12. n fuincionou , affe q bug , ja tentei de todas as maneira. só acho estranh pq , o trainer deu boa , consegui importa sussi !
  13. [03/02/2014 18:43:49] [Error - LuaScriptInterface::loadFile] data/npc/scripts/buypremmy.lua:41: 'end' expected (to close 'function' at line 15) near '<eof>' [03/02/2014 18:43:49] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/buypremmy.lua [03/02/2014 18:43:49] data/npc/scripts/buypremmy.lua:41: 'end' expected (to close 'function' at line 15) near '<eof>
  14. Ola galera , alguem ai por acalso n tem o script do Npc Q venda premmy ! vlw pela atenção !
  15. PedroPr postou uma resposta no tópico em Suporte Tibia OTServer
    slguem ai tem alguma idei de como arrumar esse bug , o player ta carregando mais do que a cap 0 e fica lerdo ! alguem sabe o pq e como tira ???
  16. PedroPr postou uma resposta no tópico em Suporte Tibia OTServer
    vlw vitinho vc ja me ajudou dando atençao pow ! é assim pra explica direito ! o char nasce com a cap certa , o unico problema q no logar , cai os itens iniciais no show parece q todo level oito acontece isso o.o depois n cai mais, mais o personagem pode colocar mais itens do que a capacidade exigida !estranho
  17. PedroPr postou uma resposta no tópico em Suporte Tibia OTServer
    entao vitin troquei la , apenas trocou os itens e quando desativei e ative o serve caiu os itens dos player ade quem estava criado ! ainda persiste o problema =/ cai ate do acconunt maneger quando ele loga =/ !
  18. PedroPr postou uma resposta no tópico em Suporte Tibia OTServer
    ta galera ! function onLogin(cid) if getPlayerGroupId(cid) == 1 and getPlayerStorageValue(cid, 50000) == -1 then if isSorcerer(cid) then local bag = doPlayerAddItem(cid, 9774, 1) doAddContainerItem(bag, 2120, 1) doAddContainerItem(bag, 2554, 1) doAddContainerItem(bag, 2152, 20) doPlayerAddItem(cid, 2525, 1) doPlayerAddItem(cid, 2190, 1) doPlayerAddItem(cid, 2463, 1) doPlayerAddItem(cid, 2457, 1) doPlayerAddItem(cid, 2647, 1) doPlayerAddItem(cid, 2643, 1) setPlayerStorageValue(cid, 50000, 1) elseif isDruid(cid) then local bag = doPlayerAddItem(cid, 9774, 1) doAddContainerItem(bag, 2120, 1) doAddContainerItem(bag, 2554, 1) doAddContainerItem(bag, 2152, 20) doPlayerAddItem(cid, 2525, 1) doPlayerAddItem(cid, 2182, 1) doPlayerAddItem(cid, 2463, 1) doPlayerAddItem(cid, 2457, 1) doPlayerAddItem(cid, 2647, 1) doPlayerAddItem(cid, 2643, 1) setPlayerStorageValue(cid, 50000, 1) elseif isPaladin(cid) then local bag = doPlayerAddItem(cid, 9774, 1) doAddContainerItem(bag, 2120, 1) doAddContainerItem(bag, 2554, 1) doAddContainerItem(bag, 2152, 20) doPlayerAddItem(cid, 2389, 3) doPlayerAddItem(cid, 2525, 1) doPlayerAddItem(cid, 2457, 1) doPlayerAddItem(cid, 2643, 1) doPlayerAddItem(cid, 2647, 1) doPlayerAddItem(cid, 2463, 1) setPlayerStorageValue(cid, 50000, 1) elseif isKnight(cid) then local bag = doPlayerAddItem(cid, 9774, 1) doAddContainerItem(bag, 2120, 1) doAddContainerItem(bag, 2554, 1) doAddContainerItem(bag, 2152, 20) doAddContainerItem(bag, 8601, 1) doAddContainerItem(bag, 2383, 1) doAddContainerItem(bag, 2417, 1) doPlayerAddItem(cid, 2525, 1) doPlayerAddItem(cid, 2463, 1) doPlayerAddItem(cid, 2457, 1) doPlayerAddItem(cid, 2647, 1) doPlayerAddItem(cid, 2643, 1) setPlayerStorageValue(cid, 50000, 1) end end return TRUE end
  19. PedroPr postou uma resposta no tópico em Suporte Tibia OTServer
    Sim vitin , e daniel , vlw pela ajuda mais ja ajustei la tbm e n adiantou , acontece q o personagem carrega tudo, até mais q a capacidade , dai fica lento ! quero q barre no zero , vlw pela atenção
  20. PedroPr postou uma resposta no tópico em Suporte Tibia OTServer
    Ola galera minha nova duvida !agora vi q n tem nada a ver com vocação , quando crio um char o persogem nasce sem os items , em sim ele nasce dropado em baixo do personagem, e percebi q o posso colocar muita coisa no char , mais ele fica lerdo o personagem anda paralizado, alguem sabe ai oque pode ter acontecido e como arrumar, obgpela atenção !
  21. bele , dou gostei pra toda resposta q me ajuda ! vlw ai o bug dos treiner oi um erro bobo meu mais simples com ajuda de vc's foi resolvido Vlw , até a próxima =)
  22. ai galera resolvi !vlw pela atenção ai ! só me explica ai como reputo vc's e como confirmo o resolvimento q hoje é o 3 dia No TK
  23. <?xml version="1.0" encoding="UTF-8"?> <monster name="Training Monk" nameDescription="a trainers" race="blood" experience="0" speed="0" manacost="0"> <health now="240000" max="240000"/> <look type="268" head="500" body="77" legs="0" feet="0" addons="2" corpse="6080"/> <targetchange interval="60000" chance="0"/> <strategy attack="100" defense="0"/> <flags> <flag summonable="0"/> <flag attackable="1"/> <flag hostile="1"/> <flag illusionable="0"/> <flag convinceable="0"/> <flag pushable="0"/> <flag canpushitems="1"/> <flag staticattack="50"/> <flag lightlevel="0"/> <flag lightcolor="0"/> <flag targetdistance="1"/> <flag runonhealth="0"/> </flags> <attacks> <attack name="melee" interval="1500" min="-0" max="-1"/> </attacks> <defenses armor="0" defense="0"> <defense name="mass healing" interval="10000" chance="100" min="24000" max="24000"/> </defenses> <immunities> <immunity physical="0"/> <immunity energy="0"/> <immunity fire="0"/> <immunity poison="0"/> <immunity lifedrain="0"/> <immunity paralyze="0"/> <immunity outfit="0"/> <immunity drunk="0"/> <immunity invisible="1"/> </immunities> <loot> <item id="2148" countmax="20" chance1="100000" chancemax="0"/> <item id="1949" chance="10000"/> <item id="2467" chance="10000"/> <item id="2642" chance="6666"/> <item id="1987" chance="100000"> <inside> <item id="2044" chance="6666"/> <item id="2689" countmax="3" chance1="20000" chancemax="0"/> <item id="2401" chance="3333"/> <item id="2166" chance="1428"/> </inside> </item> </loot> </monster>
  24. Já mandei , vlw pela atenção !
  25. jpedro já coloquei mais n adiantou n ele ta andando do mesmo geito =/!

Informação Importante

Confirmação de Termo