Ir para conteúdo

Carinhah

Membro
  • Registro em

  • Última visita

Tudo que Carinhah postou

  1. Olá galera, gostaria de saber como faço para pegar os address dos clientes tibia, e como sei que aquele address é da mana ou HP essas coisas assim, se alguém puder me ajudar agradecerei muito.
  2. tente usar este script depois e vê se funciona, se não funcionar ae talvez teria que mudar a Source mesmo!! function onCastSpell(cid, var) local from,to = {x=962, y=885, z=7},{x=973, y=892, z=7} -- começo e final do mapa local from2,to2 = {x=979, y=901, z=7},{x=991, y=905, z=7} -- começo e final do mapa local playerpos = getPlayerPosition(cid) local cloth = getCreatureOutfit(cid) local health = getCreatureHealth(cid) local maxhealth = getCreatureMaxHealth(cid) local MaximoSummon = 1 --- Maximo de Monstros Sumonados!! No Caso So Posso Sumonar 5 Clones local summons = getCreatureSummons(cid) if isInRange(getCreaturePosition(cid), from, to) or isInRange(getCreaturePosition(cid), from2, to2) then doPlayerSendCancel(cid, "Você não pode usar Summons Aqui!") return true end if(table.maxn(summons) < MaximoSummon) then -- no summons local clone = doCreateMonster(getPlayerName(cid), playerpos) doConvinceCreature(cid, clone) setCreatureMaxHealth(clone, maxhealth) doCreatureAddHealth(clone, health) doSetCreatureOutfit(clone, cloth, -1) doSendMagicEffect(playerpos, 2) return TRUE end end
  3. Tente desta forma! no script do promotion.lua PS: se der certo vai repetindo o procedimento para cada promotion. 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 = 20, 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())
  4. Você ja tem um script feito né?? que apenas criar o personagem porém com outro nome, poste esse script aqui que eu faço a alteração para vc, ou me passe o nome do OT para eu ver as funções que tem nele de fazer bushin! PS: pedi pq não trabalho com OT Naruto, porém tenho um amigo que tem um OT desses e direto ajudo ele com os scripts, ae posso dar uma ajuda ae!
  5. Tiroleivi, só por curiosidade, me manda seu aquivo vocations.xml, irei analisar e darei um retorno para vc!
  6. Carinhah postou uma resposta no tópico em Formação de Equipe
    Olá, tenho 21 anos, faço ciência da computação achei legal seu projeto! Conhecimentos em: Java; C++(básico porém disposto a aprender mais "linguagem chatinha :P"); Delphi; .LUA(OTServ); LsL(Second Life); algumas alterações em hexadecimal em cliente para server; e não me lembro mais Gosto de: Criar histórias para quests; Quests; Criar magias; Scripts; Funções legais e diferentes; Mapper apenas o básico, não sou muito paciente para detalhar e tudo mais só faço o básico quando necessário em algumas quests que gosto de criar; mecho com o cliente de server modificações simples e agora vou começar a estudar o cliente Otserv também, o mesmo usado pela PxG. tempo disponível: Aos finais de semana e durante as férias de noite. se vc se interessar entre em contato ae! Oque me interessa: Criar algo diferente, pode até ser um tibia Global, porém modificando magias, quests, criaturas, funções e oque for possível para inovar! Contato: Skype: [email protected] E-mail: [email protected]
  7. Ai... to com um tempinho livre aqui no trampo... mais nao tem como eu testar... testa ae !! --[[ tabela dos itens a serem "sacrificados" adicione novas linhas para checar por mais que 4 itens configure a posição onde ele deve estar e o id ]] local items = { {pos = {x = 9975, y = 9993, z = 7}, itemid = 5903}, } --[[ Posição que o player ser teleportado]] local pos = {x = 9990, y = 9990, z = 7} --[[ tabela dos monstros a serem criados após remover os itens adicione novas linhas para criar mais monstros configure a posição onde ele vai nascer o nome do monstro criado ]] local monsters = { {pos = {x = 9981, y = 9998, z = 7}, name = "Ferumbras Enfraquecido"}, } local config = { onSpawnMonster = CONST_ME_TELEPORT, -- efeito lançado quando monstro é criado onRemoveItem = CONST_ME_FIREAREA, -- efeito lançado quando item é removido missingItem = CONST_ME_POFF, -- efeito lançado quando não encontrou o item para remover } -- 255 faz com que não lance efeito algum function onUse(cid, item, frompos, item2, topos) local missing_items, remove_items = false, {} for _, itemcheck in pairs (items) do local i = getTileItemById(itemcheck.pos, itemcheck.itemid).uid if i < 1 then missing_items = true if tonumber(config.missingItem) and config.missingItem ~= 255 then doSendMagicEffect(itemcheck.pos, config.missingItem) end else table.insert(remove_items, i) end end if missing_items then return doPlayerSendCancel(cid, "Está faltando algum item.") else for _, iuid in pairs (remove_items) do if tonumber(config.onRemoveItem) and config.onRemoveItem ~= 255 then doSendMagicEffect(getThingPos(iuid), config.onRemoveItem) end doRemoveItem(iuid) end for _, monsterinfo in pairs (monsters) do local m = doCreateMonster(monsterinfo.name, monsterinfo.pos, false) if isCreature(m) and tonumber(config.onSpawnMonster) and config.onSpawnMonster ~= 255 then doSendMagicEffect(getThingPos(m), config.onSpawnMonster) end end doTeleportThing(cid,pos) end return true end
  8. Faz assim... me manda private o xml e o LUA do seu NPC
  9. Cara eu reescrevi o script de outra forma, nao tenho como testar ele porque estou fazendo td no meu serviço... testa ae e ve se funciona, se funcionar bom, se nao funcionar avisa que arrumo os erros... pelo teste de mesa rapido que fiz antes do chefe chegar o script irá rodar tranquilo!! 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, 'trade') or msgcontains(msg, 'changer')) then selfSay('Voce pode trocar seus tokens por: boots of haste, Demon Helmet, Frozen Starlight, Spellbook of Dark Mysteries, Royal Crossbow!', cid) talkState[talkUser] = 1 elseif(talkState[talkUser] == 1) then if(msgcontains(msg, 'boots of haste')) then selfSay('Boots of Haste custa 10 tokens, aceita trocar??', cid) if(msgcontains(msg, 'yes')) then if(doPlayerRemoveItem(cid, 5468, 10)) then doPlayerAddItem(cid, 2195, 1) selfSay('Here you are.', cid) else selfSay('Sorry, you don\'t have enough tokens.', cid) end elseif(msgcontains(msg, 'no')) selfSay('Okay then.', cid) end elseif(msgcontains(msg, 'demon helmet')) then selfSay('Demon Helmet custa 10 tokens, aceita trocar??', cid) if(msgcontains(msg, 'yes')) then if(doPlayerRemoveItem(cid, 5468, 10)) then doPlayerAddItem(cid, 2493, 1) selfSay('Here you are.', cid) else selfSay('Sorry, you don\'t have enough tokens.', cid) end elseif(msgcontains(msg, 'no')) selfSay('Okay then.', cid) end elseif(msgcontains(msg, 'frozen starlight')) then selfSay('Frozen Starlight custa 10 tokens, aceita trocar??', cid) if(msgcontains(msg, 'yes')) then if(doPlayerRemoveItem(cid, 5468, 10)) then doPlayerAddItem(cid, 2361, 1) selfSay('Here you are.', cid) else selfSay('Sorry, you don\'t have enough tokens.', cid) end elseif(msgcontains(msg, 'no')) selfSay('Okay then.', cid) end elseif(msgcontains('spellbook of dark mysteries', cid)) then selfSay('Spellbook of Dark Mysteries custa 10 tokens, aceita trocar??', cid) if(msgcontains(msg, 'yes') then if(doPlayerRemoveItem(cid, 5468, 10)) then doPlayerAddItem(cid, 8918, 1) selfSay('Here you are.', cid) else selfSay('Sorry, you don\'t have enough tokens.', cid) end elseif(msgcontains(msg, 'no')) selfSay('Okay then.', cid) end elseif(msgcontains(msg, 'royal crossbow')) then selfSay('Royal Rrossbow custa 10 tokens, aceita trocar??', cid) if(msgcontains(msg, 'yes')) then if(doPlayerRemoveItem(cid, 5468, 10)) then doPlayerAddItem(cid, 8918, 1) selfSay('Here you are.', cid) else selfSay('Sorry, you don\'t have enough tokens.', cid) end elseif(msgcontains(msg, 'no')) selfSay('Okay then.', cid) end else selfSay('Sorry, you don\'t have the tokens.', cid) end talkState[talkUser] = 0 elseif(msgcontains(msg, 'no') and isInArray({1}, talkState[talkUser])) then talkState[talkUser] = 0 selfSay('Ok then.', cid) end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  10. não sei esta certo.. porem na linha 5 onde se encontra o "if getCreaturePosition(cid).y toPosition.y then" é uma condição, ele esta perguntando... Se a posição do Player é tal, então execute o comando abaixo... faz o teste... nesta linha vc apaga o "toPosition.y" deixando assim: "if getCreaturePosition(cid).y then" OU faz assim: "if getCreaturePosition(cid).y == toPosition.y then" não sei muito bem... tenta ae!!
  11. Fiz correndo aqui no trampo, q jah ta quase na hora de eu pegar minhas mercedes para ir para casa... testa ae!! além do mais estou meio enferrunado na linguagem e o cara q fez este script fez com algumas coisas diferentes q costumo usar!! porém eu tentei ... mais qqr coisa apenas retorne ae que eu arrumo!! ajudei? REP +... 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 t = { tokens = 5468, -- id of tokens items = { [1] = {"boots of haste", 10, 2195}, [2] = {"demon helmet", 10, 2493}, [3] = {"frozen starlight", 10, 2361}, [4] = {"spellbook of dark mysteries", 10, 8918}, [5] = {"royal crossbow", 10, 8851} } } function creatureSayCallback(cid, type, msg) imsexyandiknowit,s = 0, "" for i = 1, #t.items do imsexyandiknowit = imsexyandiknowit + 1 s = s .. "{" ..t.items[i][1].. "}" b = i == #t.items and "." or i == (#t.items-1) and " and " or ", " s = s .. b end if msgcontains(msg, 'trade') then npcHandler:say("You can change your tokens for: " .. s .."", cid) end for i = 1, #t.items do if msgcontains(msg, t.items[i][1]) then npcHandler:say("Este item custa " .. t.items[i][2] .."tokens, deseja trocar?", cid) if msgcontains(mag, 'yes') then if doPlayerRemoveItem(cid, t.tokens, t.items[i][2]) then doPlayerAddItem(cid, t.items[i][3], 1) npcHandler:say("Aqui tienes tu " .. t.items[i][1] .. "!", cid) else npcHandler:say("You don't have enough tokens!", cid) end else npcHandler:say("Nao?, Okay muito obrigado", cid) end end return true end npcHandler:setCallback(CALLBACK_GREET, greetCallback) npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  12. Aproveitando td q o outro postou vou tentar lhe explicar... este código do post q ele te indicou agora documentarei o código dele e tentarei te ajudar! bem em cima foi, um script de magia de apenas um elemento, no caso o physical, agora multi hist com elementos diferentes! bem cara não sei se esta bem explicado; sou péssimo nisto, porém acho q dára para entender um pouco!! qqr coisa retorne uma resposta q tento te explicar melhor!! se ajudei, REP++
  13. ... precisar só mandar ae, se estiver ao meu alcance ajudarei sim
  14. Bem cara, Ae já é outro problema... Vamos láá... Em data/weapons/weapons.xml abra ele e todas as armas que está lá dentro vc acrescenta a tag com a epig vocation Ex: <!-- Swords --> <!-- Broadsword --> <melee id="2413" unproperly="1" event="function" value="default"> <vocation id="4"/> <vocation id="8" showInDescription="0"/> <vocation id="12" showInDescription="0"/> //aqui vc acrescenta a epic vocation </melee> Agora vamos tentar resolver os potions se o seu for igual ao meu será assim: Vá em data/actions/scripts/potions.lua e na linha q tem: ... fazendo isto em todas as potions... se não for assim vc me retorna que ajudo vc!!
  15. bem no caso da para criar um script de liga e desliga; se se ele der use; ele adiciona os atributos ao player e começa a contagem, e se der use de novo ele desliga e para de contar o tempo e faz que só funcione se tiver tempo e depois que acabar ele possa recarregar! nunca joguei o OT que vc falou, me fale como que funciona o item láá!
  16. Cara fiz correndo aqui no serviço, não tive como testar pq trabalho no linux e aqui to sem distro e tmbm testar no serviço é tenso tenta ae, se não der avise para que eu possa corrigir! Script Magia: local combat1 = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLHOLY) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -10, -1, -20, 5, 5, 1.4, 2.1) local combat2 = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLHOLY) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -10, -1, -20, 5, 5, 1.4, 2.1) local combat3 = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLHOLY) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -10, -1, -20, 5, 5, 1.4, 2.1) local function onCastSpell1(parameters) doCombat(parameters.cid, parameters.combat1, parameters.var) end local function onCastSpell2(parameters) doCombat(parameters.cid, parameters.combat2, parameters.var) end local function onCastSpell3(parameters) doCombat(parameters.cid, parameters.combat3, parameters.var) end function onCastSpell(cid, var) addEvent(onCastSpell1, 0, parameters) addEvent(onCastSpell2, 275, parameters) addEvent(onCastSpell3, 550, parameters) end Ajudei?? Rep++
  17. no Script do NPC, Exemplo: Npc que renova a softboots, tem uma linha de código assim: "if(doPlayerRemoveMoney(cid, 10000)) then" vc trocaria este "doPlayerRemoveMoney(cid, 10000)" por "doPlayerRemoveItem(cid, 2159, 1)" << no caso aqui ele irá remover apenas 1 scarab coin do player!! se quiser fazer um NPC em especifico, me fale o Server que usa e como quer o NPC! Se ajudei Rep+
  18. não sei se entendi direito, se vc quer q ele use todos de uma vez ou se vão ser magias diferentes e cada uma vai ser uma magia diferente e cada usara um item diferente, acho que é o sono da noite não dormida que esta afetando meu cérebro. bem se for magias diferentes e cada uma usando um item diferente ae vc só modifica a linha que esta assim: "local ammunition = {7368, 7368}" sem aspas, o 7368 é a assassin star; se não for isso só me da uma resposta ae explicando certim q tento ajeitar para ti!
  19. bem isso vc pode editar no items.xml CODE: <item id="2158" article="a" name="blue gem"> <attribute key="weight" value="80"/> <attribute key="slotType" value="ring"/> <attribute key="decayTo" value="0"/> <attribute key="speed" value="80"/> <attribute key="magiclevelpoints" value="12"/> <attribute key="duration" value="1200"/> <attribute key="showduration" value="1"/> <attribute key="showattributes" value="1"/> </item>
  20. tenta este aque, fiz no serviço, e aqui trabalho com linux e estou sem distro em linux para testar, então teste ve se funciona se não funcionar me retorne uma resposta que arrumarei o código! vai em data/npc/script no arquivo.lua do seu NPC, coloque isto dentro: 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 onPlayerEndTrade(cid) npcHandler:onPlayerEndTrade(cid) end function onPlayerCloseChannel(cid) npcHandler:onPlayerCloseChannel(cid) end local node1 = keywordHandler:addKeyword({'promote'}, 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 = 20, 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 = 200, 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()) Se ajudei, Rep+
  21. ontato Skype/Facebook: ruan_go(skype) / [email protected] (msn/skype) / https://www.facebook.com/RuanGO2 Trabalho: 1: http://tibiaking.com...41-death-skith/ (este aqui além de resolver identifiquei um bug na arma do OT do cara e fiz de maneira diferente de acordo com oque o cliente aceitou!) 2: http://tibiaking.com...raves-de-falar/ (este não esta totalmente resolvido no post... pois foi resolvido em private pq a versão do OT da pessoa era muito antiga!) 3: http://tibiaking.com...mate-mana-rune/ (resolvido igualmente ao video com possibilidade de edição de distancia dos efeitos e muito mais além da tmbm que da para mudar o estilo de real da mana que foi mudado apenas em private!) E mais alguns não citados que fiz por brincadeira em casa! não sou lá essas coisas mais gostei do projeto e gostaria de participar, estou parado sem fazer nada no período vago e gostaria de preencher este tempo com aprendizagem e algo que me motive, achei a ideia do server interessante e gostaria de participar!! Entra em contato ae!!
  22. Carinhah postou uma resposta no tópico em Formação de Equipe
    Mapa Global??... entre em contato ae vamos conversar sobre então!! Skype: ruan_go / [email protected]
  23. Nome: Ruan Gustavo Idade:20 Tempo Disponível: maioria das tardes e algumas madrugadas Contato Skype/Facebook: ruan_go(skype) / [email protected] (msn/skype) / https://www.facebook.com/RuanGO2 Vaga: Scripter e/ou Programador Tempo De Experiência: Estudo ciência da computação, ja trabalhei com a .LUA dos OT's, JAVA, um pouco de C++, LsL... Trabalho: 1: http://tibiaking.com/forum/topic/11241-death-skith/ (este aqui além de resolver identifiquei um bug na arma do OT do cara e fiz de maneira diferente de acordo com oque o cliente aceitou!) 2: http://tibiaking.com/forum/topic/23724-npc-que-vende-runas-atraves-de-falar/ (este não esta totalmente resolvido no post... pois foi resolvido em private pq a versão do OT da pessoa era muito antiga!) 3: http://tibiaking.com/forum/topic/11177-utimate-mana-rune/ (resolvido igualmente ao video com possibilidade de edição de distancia dos efeitos e muito mais além da tmbm que da para mudar o estilo de real da mana que foi mudado apenas em private!) E mais alguns não citados que fiz por brincadeira em casa!
  24. Qual o erro??

Informação Importante

Confirmação de Termo