Ir para conteúdo

Carinhah

Membro
  • Registro em

  • Última visita

Tudo que Carinhah postou

  1. Carinhah postou uma resposta no tópico em Suporte Tibia OTServer
    conseguiu fazer??
  2. Carinhah postou uma resposta no tópico em Suporte Tibia OTServer
    vou tentar fazer aqui!!
  3. Carinhah postou uma resposta no tópico em Suporte Tibia OTServer
    bem no caso erro nao seria no script da bless... seria em outro lugar...não me lembro muito bem... mais vc pode me mandar o seu config.lua??
  4. Carinhah postou uma resposta no tópico em Suporte Tibia OTServer
    tenta esse cript aqui no talkactions: function onSay(cid, words, param) if getPlayerBlessing(cid, 1) or getPlayerBlessing(cid, 2) or getPlayerBlessing(cid, 3) or getPlayerBlessing(cid, 4) or getPlayerBlessing(cid, 5) then doPlayerSendCancel(cid,'You have already got one or more blessings!') else if doPlayerRemoveMoney(cid, 50000) == TRUE then doPlayerAddBlessing(cid, 1) doPlayerAddBlessing(cid, 2) doPlayerAddBlessing(cid, 3) doPlayerAddBlessing(cid, 4) doPlayerAddBlessing(cid, 5) doSendMagicEffect(getPlayerPosition(cid), 28) doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE, 'You have been blessed by the gods!') else doPlayerSendCancel(cid, "You need 50.000 gold coins to get blessed!") end end return TRUE end
  5. Carinhah postou uma resposta no tópico em Suporte Tibia OTServer
    posta o script da bless ae??
  6. ta ae... quando ele te teleporta vc ele executa o efeito '49' --Tptemplo.lua: function onUse(cid, item, frompos, item2, topos) local pos = {x=32240, y=32333, z=7} if item.itemid == 2176 then doPlayerSendCancel(cid,"Bem vindo denovo a Cidade dos Iniciantes") doTeleportThing(cid,pos) doSendMagicEffect(getPlayerPosition(cid),cid,49) doSendMagicEffect(getPlayerPosition(cid),49) end return true end
  7. Conselho de amigo... compile ele em linux... mais se vc nao tem experiencia com linux vai ser tenso... e no Windows vc vai ter que entender os erros que dão na hora da compilação para poder corrigi-los... mais o maior erro da compilação em windows é a questão de bibliotexa... muitas bibliotecas nao vem mais instaladas em windows ae vc tem que instala-las... melhor mesmo seria vc pegar um jah compilado e ir fazendo a migração de tudo!!
  8. Vai em data/weapons/weapons.xml... ao abrir o arquivo WEAPONS.XML vc procura por '7417' ele estara mais ou menos assim: <!-- Runed Sword --> <melee id="7417" level="65" unproperly="1" event="function" value="default"> <vocation id="4"/> <vocation id="8" showInDescription="0"/> </melee> ae vc tem logo a frente do (id="7417") bem assim level="65" <<< aqui vc muda o level para usa-la! p TP ali vc poderia postar ele certinho?? e se vc esta colocando ele em Action ou movements essas coisas e tals!! Se ajudei da um REP+ ae!!
  9. Se vc não conseguir sanar ainda me retorna ae que faço um para ti!!
  10. Cara rolar até rola fazer uma runa com 3 tipo de ataques de damage, effects e elemento diferentes! .. mais não sei se daria para por esses requisito de talkaction em uma espécie de runa!!
  11. Carinhah postou uma resposta no tópico em Suporte Tibia OTServer
    pq não falou antes... é só apagar 2 linhas ... ta ela sem o random!! local water = {490, 491, 492, 493, 4608, 4609, 4610, 4611, 4612, 4613, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625} local combat = createCombatObject() local meteor = createCombatObject() setCombatParam(meteor, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(meteor, COMBAT_PARAM_EFFECT, 44) setCombatFormula(meteor, COMBAT_FORMULA_LEVELMAGIC, -4.6, -200, -4.2, -200) local stun = createConditionObject(CONDITION_PARALYZE) setConditionParam(stun, CONDITION_PARAM_TICKS, 5000) setConditionFormula(stun, -0.8, 0, -0.9, 0) setCombatCondition(meteor, stun) local meteor_water = createCombatObject() setCombatParam(meteor_water, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(meteor_water, COMBAT_PARAM_EFFECT, CONST_ME_LOSEENERGY) setCombatFormula(meteor_water, COMBAT_FORMULA_LEVELMAGIC, -4.6, -200, -4.2, -200) combat_arr = { {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0} } local combat_area = createCombatArea(combat_arr) setCombatArea(combat, combat_area) local function meteorCast(p) doCombat(p.cid, p.combat, positionToVariant(p.pos)) end local function stunEffect(cid) doSendMagicEffect(getThingPos(cid), CONST_ME_STUN) end function onTargetTile(cid, pos) local ground = getThingfromPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}) if (isInArray(water, ground.itemid) == TRUE) then local newpos = {x = pos.x - 7, y = pos.y - 6, z = pos.z} doSendDistanceShoot(newpos, pos, CONST_ANI_FIRE) addEvent(meteorCast, 200, {cid = cid, pos = pos, combat = meteor_water}) else local newpos = {x = pos.x - 7, y = pos.y - 6, z = pos.z} doSendDistanceShoot(newpos, pos, 11) addEvent(meteorCast, 200, {cid = cid,pos = pos, combat = meteor}) end end setCombatCallback(combat, CALLBACK_PARAM_TARGETTILE, "onTargetTile") function onCastSpell(cid, var) return doCombat(cid, combat, var) end
  12. Descobri o motivo do erro.. quando vc copiou aqui do forum ele copiou as sintax de código html do site, fazendo com que o distro nao entenda... então tem um modo de eu mandar private o script para vc??, aqui ele esta rodando na distro normalmente!!
  13. tae... acabei de testar ele aqui no meu server e deu certo... testa ele ae e ve se da certo!! vc vai na pasta data/npc/scripts e copia qualquer arquivo que tem lá, e renomeie para icerapier.lua ae vc abre ele e cola este script dentro dele: 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({'ice rapier'}, 2396, 200, 15, 'ice rapier') shopModule:addBuyableItem({'assassin star'}, 7368, 200, 1, 'ice rapier') npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Após feito isso vc vai no NPC Rashid e na linha: <npc name="Rashid" script="data/npc/scripts/default.lua" walkinterval="2000" floorchange="0"> e substitua por: <npc name="Rashid" script="data/npc/scripts/icerapier.lua" walkinterval="2000" floorchange="0"> ou em qualquer outro NPC que vc queira q venda a Ice Rapier e as star's!
  14. No caso posso tentar gerar um outro script aqui para seu rashid ou npc especifico que vc queira que venda a ice rapier entre outros itens... se quiser só falar!! só me fala a versão do seu OT e oque quer q NPC faça!
  15. Carinhah postou uma resposta no tópico em Suporte Tibia OTServer
    Ahh sim... tipo quanto maior é o skills ali, mais dificil fica de pegar skills... veja o exemplo do none vocation... no caso se o cara for "cavaleiro de elite" é bom vc diminuir para 1.0 as skills em vez de aumentar... quanto menor, mais rapido pega skills!!
  16. Carinhah postou uma resposta no tópico em Suporte Tibia OTServer
    as formulas de skill... vc a aumentou... então deixei igual a da primeira vocação... assim quando vc bater a formula estara em estado normal... assim vc muda de leve elas em pequenas proporções para ver ateh o quanto vc pode aumentar sem dar bug!! vc colocou: <skill fist="1.9" club="3.1" sword="3.1" axe="3.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.5"/> Eu coloqueio: <skill fist="1.9" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/> agora vc aumenta de vagar o skills d club, sword, e axe... Ex: club="1.1" >>> vai para club="1.2" apesar que me lembro que quando maior a bagacinha do skills ali, mais dificil é de pegar skills!!
  17. Carinhah postou uma resposta no tópico em Suporte Tibia OTServer
    Cara, apenas um chute... quando vc foi mudar as promotion para transforma-lo em vc deeveria ter deixado os valores igual oq estava antes!! experimente a promotion assim: <vocation id="8" name="Cavaleiro de elite" description="Cavaleiro de Elite" needpremium="1" speed="80" gaincap="50" gainhp="350" gainhpticks="10" gainhpamount="600" attackspeed="150" fromvoc="4" lessloss="10"> <formula meleeDamage="1.5" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.9" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> apenas tente... e ve se da o mesmo erro!!
  18. Ae cara, tipo arrumei alguns erros que encontrei no script e testei ele abrindo o distro do OT... bem ele nao apresentou mais nenhum erro e abriu a distro normalmente!! agora teste ele dentro do jogo para ver como ele via se comportar perante a seus requisitos... script corrigido: focus = 0 talk_start = 0 target = 0 following = false attacking = false function onThingMove(creature, thing, oldpos, oldstackpos) end function onCreatureAppear(creature) end function onCreatureDisappear(cid, pos) if focus == cid then selfSay('Good bye then.') focus = 0 talk_start = 0 end end[/b] [b]function onCreatureTurn(creature) end function msgcontains(txt, str) return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)')) end[/b] [b]function onCreatureSay(cid, type, msg) msg = string.lower(msg) if ((string.find(msg, '(%a*)hi(%a*)')) and (focus == 0)) and getDistanceToCreature(cid) < 4 then selfSay('Hello, ' .. creatureGetName(cid) .. 'Sou o husky hunter da academia gennin , há muito tempo tento cacar uma fera que esta no topo da montanha ao leste da academia e vive atacando todos.. preciso de "ajuda" !') focus = cid talk_start = os.clock() elseif string.find(msg, '(%a*)hi(%a*)') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then selfSay('Sorry, ' .. creatureGetName(cid) .. '! I talk to you in a minute.') elseif msgcontains(msg, 'ajuda') and focus == cid then queststatus = getPlayerStorageValue(cid,60000) if queststatus == -1 then setPlayerStorageValue(cid,60000,1) selfSay('Você quer me ajudar ? mate a fera e traga o seu item especial que lhe darei uma recompensa !!') else selfSay('Voce ja me ajudou!, nao preciso mais de sua ajuda!') end elseif msgcontains(msg, 'item') and focus == cid then valuestatus = getPlayerStorageValue(cid, 60001) if valuestatus == -1 then if getPlayerItem(cid, 2493) then doPlayerRemoveItem(cid, 2493, 1) selfSay('Muito Obrigado, Tome sua Recompensa!') doPlayerAddItem(cid,2494,1) setPlayerStorageValue(cid,60001,1) end else selfSay('Voce ja me ajudou!, nao preciso mais de sua ajuda!') end elseif string.find(msg, '(%a*)bye(%a*)') and focus == cid and getDistanceToCreature(cid) < 4 then selfSay('Good bye, ' .. creatureGetName(cid) .. '!') focus = 0 talk_start = 0 end end[/b] [b]function onCreatureChangeOutfit(creature) end[/b] [b]function onThink() if (os.clock() - talk_start) > 30 then if focus > 0 then selfSay('Next Please...') end focus = 0 end if focus ~= 0 then if getDistanceToCreature(focus) > 5 then selfSay('Good bye then.') focus = 0 end end end
  19. Ops descupa cometi um erro... ali em "<parameter key="shop_buyable" value="ice rapier,2396,200;assassin star,7368,200;"/>" saubistitua por <parameter key="shop_buyable" value="ice rapier,2396,200,100;assassin star,7368,200;"/> e ve se funciona!
  20. Vai no script do NPC onde ele vende a ice rapier e verifica a quantidade que ele esta vendendo ou substitui a linha dela por esta abaixo! Em xxxx vc coloca o valor do item a se pagar em gold... Ex: 1000 Em yyyy vc coloca a quantidade charges é para vender Ex: 100 shopModule:addBuyableItem({'ice rapier'}, 2396, xxxx, yyyy, 'ice rapier') se ajudei, da um REP+ ae!
  21. Carinhah postou uma resposta no tópico em Suporte Tibia OTServer
    Não te dou certeza que conseguirei... mais tentarei fazer algo aqui!!
  22. vc quer que ele venda no trade do npc?? ou pode ser comprar com talks?? talk Ex; player says: buy ice rapier NPC Says: Gostaria de uma ice rapier?? custara 1000 gold! Player says: yes NPC Says: tome aqui sua ice rapier!! Sei que foi inutil meu exemplo... mais se for desta maneira de talks acho que consigo dar um jeitinho de acrescentar mais charges sem vc precisar aumentar no items.xml
  23. Se for apenas Rod de paralyze vc vai em data/weapons/scripts copie qualquer arquivo, renomeie para rodparalyze.lua e cole isto dentro: local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED) local condition = createConditionObject(CONDITION_PARALYZE) setConditionParam(condition, CONDITION_PARAM_TICKS, 20000) setConditionFormula(condition, -0.9, 0, -0.9, 0) setCombatCondition(combat, condition) function onCastSpell(cid, var) if(not doCombat(cid, combat, var)) then return false end doSendMagicEffect(getThingPosition(cid), CONST_ME_MAGIC_GREEN) return true end salve e feche o arquivo e vá em data/weapons/weapons.xml e cole isto lá: <distance id="xxxx" event="script" value="rodparalyze.lua"/> <!-- Rod Paralyze --> em xxxx vc coloca o ID da Rod que vai soltar o paralyze!! se vc quiser acrescentar hits tipo energy, fire coisa e tal, me avisa que edito o script para vc!! Se Ajudei um Rep+ ae
  24. Carinhah postou uma resposta no tópico em Suporte Tibia OTServer
    Amigo, seria melhor vc fazer um tile com animação em seu cliente... não sei se essa parada do tempo daria certo... porem se vc quiser tentar fazer aqui esta o de passar em cima... Na onde ta o "[xxxx]" vc coloca o ID do tile sem ninguem em cima e "yyyy" o ID do item que ele vai se transformar quando o player subir em cima Na onde ta o "[yyyy]" vc coloca o ID do item com o player em cima e "xxxx" o ID do item sem o player em cima local increasingItems = {[xxxx] = yyyy} local decreasingItems = {[yyyy] = xxxx} local checkCreature = {isPlayer, isMonster, isNpc} function onStepIn(cid, item, position, fromPosition) if(not increasingItems[item.itemid]) then return false end if(not isPlayerGhost(cid)) then doTransformItem(item.uid, increasingItems[item.itemid]) end return false end function onStepOut(cid, item, position, fromPosition) if(not decreasingItems[item.itemid]) then return false end if(not isPlayerGhost(cid)) then doTransformItem(item.uid, decreasingItems[item.itemid]) return true end return false end Se Ajudei da um Rep+ ae
  25. Ae cara, tava com um pouco de tempo aqui no serviço ae baixei um server 7.6 e vi as funções dele... fiz esse script em 7.6, provavelmente funcione em 7.81... Tutorial do script, meio por cima: quando vc falar ajuda ele verificara se vc tem o storagevalue '60000' se vc tiver ele agradecera falando q nao precisa mais de vc, se vc não tiver ele pedira a ajuda e vc começara a missão quando vc retornar, vc falara 'item', ele verificara se vc tem o storagevalue '60001' se vc tiver ele falara q nao precisa mais de vc, se vc nao tiver ele removera o item rare da criatura que eu coloquei como '2493' e acrescentara o item '2494' como recompensa e falara 'Muito Obrigado, Tome sua Recompensa!' e acrescentara a storagevalue para vc nao trocar mais o item rare com ele! focus = 0 talk_start = 0 target = 0 following = false attacking = false function onThingMove(creature, thing, oldpos, oldstackpos) end function onCreatureAppear(creature) end function onCreatureDisappear(cid, pos) if focus == cid then selfSay('Good bye then.') focus = 0 talk_start = 0 end end function onCreatureTurn(creature) end function msgcontains(txt, str) return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)')) end function onCreatureSay(cid, type, msg) msg = string.lower(msg) if ((string.find(msg, '(%a*)hi(%a*)')) and (focus == 0)) and getDistanceToCreature(cid) < 4 then selfSay('Hello, ' .. creatureGetName(cid) .. 'Sou o husky hunter da academia gennin , há muito tempo tento cacar uma fera que esta no topo da montanha ao leste da academia e vive atacando todos.. preciso de "ajuda" !') focus = cid talk_start = os.clock() elseif string.find(msg, '(%a*)hi(%a*)') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then selfSay('Sorry, ' .. creatureGetName(cid) .. '! I talk to you in a minute.') elseif msgcontains(msg, 'ajuda') and focus == cid then queststatus = getPlayerStorageValue(cid,60000) if queststatus == -1 then setPlayerStorageValue(cid,60000,1) selfSay('Você quer me ajudar ? mate a fera e traga o seu item especial que lhe darei uma recompensa !!') else selfSay('Voce ja me ajudou!, nao preciso mais de sua ajuda!') end elseif msgcontains(msg, 'item') and focus == cid then valuestatus = getPlayerStorageValue(cid, 60001) if valuestatus == -1 then if getPlayerItem(cid, 2493)then doPlayerRemoveItem(cid, 2493, 1) selfSay('Muito Obrigado, Tome sua Recompensa!') doPlayerAddItem(cid,2494,1) setPlayerStorageValue(cid,60001,1) end elseif selfSay('Voce ja me ajudou!, nao preciso mais de sua ajuda!') end elseif string.find(msg, '(%a*)bye(%a*)') and focus == cid and getDistanceToCreature(cid) < 4 then selfSay('Good bye, ' .. creatureGetName(cid) .. '!') focus = 0 talk_start = 0 end end function onCreatureChangeOutfit(creature) end function onThink() if (os.clock() - talk_start) > 30 then if focus > 0 then selfSay('Next Please...') end focus = 0 end if focus ~= 0 then if getDistanceToCreature(focus) > 5 then selfSay('Good bye then.') focus = 0 end end end fiz meio por cima e não tive a chance de testar pois estou no trabalho... teste ele e ve se funciona... quando eu chegar em minha residencia poderei aprimorar o script para vc... se ajudei pelo menos um pouco de um REP++ ae

Informação Importante

Confirmação de Termo