-
Total de itens
3611 -
Registro em
-
Última visita
-
Dias Ganhos
60
Tudo que Roksas postou
-
Não funcionou porque você está dentro da PZ, certo? )
-
Exato, nas tags, aonde está "value = " O número que está ao lado é o número de HP,MANA,SKILLS que irá receber. Se quiser basta mudar, eu coloquei conforme você pediu. 25 de cada Skill!
-
Aperte CTRL + N dentro do Jogo, isso não é erro nenhum, se você apertar CTRL+N , some HP, some Nomes! Boa sorte
-
Abra o seu item.xml na pasta data/items, depois disso aperte CTRL+F e digite 2127, irá aparecer o seu anél, que também tem umas tags por exemplo: <attribute key="weight" value="170" /> <attribute key="slotType" value="ring" /> Agora as que eu te passei, que está no meu outro post, basta você colar ai embaixo dessas tags!
-
[Encerrado] [Pda] Como Colocar Npc De Ginásio Para Ganhar Prêmio Ao Derrotá-Lo?
tópico respondeu ao narutochuuu de Roksas em Tópicos Sem Resposta
Substitua seu script por esse aqui: Para colocar o item que você quer que o Player receba, edite o IDDOITEM, que está no meio do script, se não estiver encontrando, aperte CTRL+F, digite IDDOITEM e dê enter! local focus = 0 local max_distance = 8 local talk_start = 0 local conv = 0 local fighting = false local challenger = 0 local afk_limit_time = 30 -- seconds local afk_time = 0 -- don't change local battle_turn = 1 -- don't change local challenger_turn = 0 -- don't change local pokemons = { {name = "Geodude", optionalLevel = 50, sex = SEX_MALE, nick = "", ball = "normal"}, {name = "Rhyhorn", optionalLevel = 80, sex = SEX_MALE, nick = "", ball = "normal"}, --alterado v1.3 {name = "Graveler", optionalLevel = 80, sex = SEX_MALE, nick = "", ball = "normal"}, {name = "Onix", optionalLevel = 100, sex = SEX_MALE, nick = "", ball = "normal"}, {name = "Golem", optionalLevel = 100, sex = SEX_MALE, nick = "", ball = "normal"}, } local function doSummonGymPokemon(npc) local this = npc if not isCreature(this) then return true end if #getCreatureSummons(this) >= 1 or focus == 0 then return true end local it = pokemons[battle_turn] doSummonMonster(this, it.name) local summon = getCreatureSummons(this)[1] local balleffect = pokeballs["normal"].effect if it.ball and pokeballs[it.ball] then balleffect = pokeballs[it.ball].effect end doSendMagicEffect(getThingPos(summon), balleffect) setPlayerStorageValue(summon, 10000, balleffect) setPlayerStorageValue(summon, 10001, gobackmsgs[math.random(#gobackmsgs)].back:gsub("doka", it.nick ~= "" and it.nick or it.name)) setPlayerStorageValue(summon, 1007, it.nick ~= "" and it.nick or it.name) doSetMonsterGym(summon, focus) addEvent(adjustWildPoke, 15, summon, it.optionalLevel) local name = it.nick ~= "" and it.nick or getCreatureName(this).."s "..it.name --alterado v1.3 doCreatureSay(this, gobackmsgs[math.random(#gobackmsgs)].go:gsub("doka", getPlayerStorageValue(summon, 1007)), 1) fighting = true battle_turn = battle_turn + 1 end local function doWinDuel(cid, npc) if not isCreature(cid) then return true end local this = npc local a = gymbadges[getCreatureName(this)] + 8 doCreatureSay(npc, "You won the duel! Congratulations, take this "..getItemNameById(a - 8).." as a prize.", 1) doPlayerAddItem(cid, IDDOITEM, 1) -- AQUI VOCE COLOCA O ID DO ITEM, QUANTIDADE local b = getPlayerItemById(cid, true, a) if b.uid > 0 then doTransformItem(b.uid, b.itemid - 8) end end function onCreatureSay(cid, type, msg) local msg = string.lower(msg) if focus == cid then talk_start = os.clock() end if msgcontains(msg, 'hi') and focus == 0 and getDistanceToCreature(cid) <= 4 then focus = cid talk_start = os.clock() conv = 1 selfSay("Hello "..getCreatureName(cid)..", my name is Brock and I'm Pewter's Gym Leader. How may I help you?") return true end if isDuelMsg(msg) and conv == 1 and focus == cid then --if getPlayerItemCount(cid, gymbadges[getCreatureName(getThis())]) >= 1 then -- selfSay("You have already won my Boulder Badge, maybe some other day we can fight.") -- focus = 0 --return true --end if not hasPokemon(cid) then selfSay("To battle agains't a gym leader you need pokemons.") return true end selfSay("You are challenging me to a battle. It will be a "..#pokemons.." pokemon limit battle, let's start?") conv = 2 return true end if isConfirmMsg(msg) and conv == 2 and focus == cid then challenger = focus setPlayerStorageValue(cid, 990, 1) selfSay("Yea, let's fight!") talk_start = os.clock() addEvent(doSummonGymPokemon, 850, getThis()) conv = 3 return true end if isNegMsg(msg) and conv == 2 and focus == cid then focus = 0 selfSay("It is better for you to refuse a battle against me!") return true end if msgcontains(msg, 'bye') and focus == cid then selfSay('Bye and do your best trainer!') setPlayerStorageValue(focus, 990, -1) focus = 0 return true end end local afk_warning = false local change = false function onThink() if focus == 0 then selfTurn(2) fighting = false challenger = 0 challenger_turn = 0 battle_turn = 1 afk_time = 0 afk_warning = false if #getCreatureSummons(getThis()) >= 1 then setPlayerStorageValue(getCreatureSummons(getThis())[1], 1006, 0) doCreatureAddHealth(getCreatureSummons(getThis())[1], -getCreatureMaxHealth(getCreatureSummons(getThis())[1])) end return true else if not isCreature(focus) then focus = 0 return true end if fighting then talk_start = os.clock() if not isCreature(getCreatureTarget(getThis())) then if #getCreatureSummons(challenger) >= 1 then if getCreatureOutfit(getCreatureSummons(challenger)[1]).lookType ~= 2 then --alterado v1.6 selfAttackCreature(getCreatureSummons(challenger)[1]) challenger_turn = challenger_turn + 1 afk_time = 0 end else afk_time = afk_time + 0.5 if change then change = false challenger_turn = challenger_turn + 1 end end end if afk_time > afk_limit_time then setPlayerStorageValue(focus, 990, -1) focus = 0 selfSay("I have waited too long, come back when you are ready!") return true end if not afk_warning and afk_time > afk_limit_time / 2 then selfSay("Where's your pokemon? Let's fight!") afk_warning = true end if #getCreatureSummons(getThis()) == 0 then if battle_turn > #pokemons then addEvent(doWinDuel, 1000, focus, getThis()) setPlayerStorageValue(focus, 990, -1) focus = 0 return true end addEvent(doSummonGymPokemon, 1000, getThis()) end if not hasPokemon(challenger) or challenger_turn >= 7 or challenger_turn > #pokemons then selfSay("You lost our duel! Maybe some other time you'll defeat me.") setPlayerStorageValue(focus, 990, -1) focus = 0 return true end end local npcpos = getThingPos(getThis()) local focpos = getThingPos(focus) if npcpos.z ~= focpos.z then setPlayerStorageValue(focus, 990, -1) focus = 0 selfSay("Bye then.") return true end if (os.clock() - talk_start) > 30 then selfSay("Good bye and keep training!") setPlayerStorageValue(focus, 990, -1) focus = 0 end if getDistanceToCreature(focus) > max_distance then setPlayerStorageValue(focus, 990, -1) focus = 0 return true end local dir = doRedirectDirection(getDirectionTo(npcpos, focpos)) selfTurn(dir) end return true end Poste se deu certo, BENÇA ) -
Entendo, você esqueceu de adicionar as tags no items.xml: <item id="2127" article="an" name="emerald bangle"> <attribute key="weight" value="170" /> <attribute key="slotType" value="ring" /> Adicione isso embaixo do ring: <attribute key="healthgain" value="100" />[/font] <attribute key="skillFist" value="25" /> <attribute key="skillSword" value="25" /> <attribute key="skillClub" value="25" /> <attribute key="skillAxe" value="25" /> <attribute key="skillShield" value="25" /> <attribute key="skillFist" value="25" /> <attribute key="skillFishing" value="25" /> <attribute key="magiclevelpoints" value="25" /> <attribute key="healthTicks" value="1000" />[/font] <attribute key="manaGain" value="100" /> <attribute key="manaTicks" value="1000" /> Explicação: healthgain = quanto ganhará de HP managain = quanto ganhará de MANA manaticks = a cada quanto tempo? 1sec = 1000 healthticks = a cada quanto tempo? 1sec = 1000 O restante são os skills e magic level, aonde está value basta mudar o valor, para qual quiser! BENÇA )
-
Debaixo do meu post em cima do seu, há uma seta para cima verde e uma vermelha, clique na verde para dar REP+ Cara, esse anexo que está no meu post, pegue-o e substitua na pasta data/XML! @EDIT Quando for pedir uma dúvida, não crie 2 posts. Isso é proibido, crie apenas um e aguarde alguém responder, OK? BENÇA ) channels.xml
-
Ok, agora explique detalhadamente qual foi o erro ocorrido?No Distro, diga-me o ocorrido!
-
Double Post? Já respondi sua dúvida aqui meu amigo: http://www.xtibia.com/forum/topic/201048-por-favor-ajuda/ Flws )
-
Passe o script para corrigirmos, fazendo o favor!
-
No seu stages.xml, substitua isso: <?xml version="1.0" encoding="UTF-8"?> <stages> <world id="0" multiplier="1"> <stage minlevel="1" maxlevel="100" multiplier="100"/> <stage minlevel="100" maxlevel="120" multiplier="95"/> <stage minlevel="120" maxlevel="140" multiplier="80"/> <stage minlevel="140" maxlevel="160" multiplier="70"/> <stage minlevel="160" maxlevel="220" multiplier="65"/> <stage minlevel="300" maxlevel="400" multiplier="30"/> <stage minlevel="401" multiplier="20"/> </world> </stages> Por isso aqui: <?xml version="1.0" encoding="UTF-8"?> <stages> <world id="0" multiplier="1"> <stage minlevel="1" maxlevel="100" multiplier="100"/> <stage minlevel="101" maxlevel="120" multiplier="95"/> <stage minlevel="121" maxlevel="140" multiplier="80"/> <stage minlevel="141" maxlevel="160" multiplier="70"/> <stage minlevel="161" maxlevel="220" multiplier="65"/> <stage minlevel="221" maxlevel="400" multiplier="30"/> <stage minlevel="401" multiplier="20"/> </world> </stages> Explicação: Por exemplo, se tivermos minlevel "1", maxlevel "100", o Próximo deverá ser um a mais do que o maxlevel, exemplo: minlevel"101", maxlevel "140". Entendeu? BENÇA )
-
Tudo bem, reportarei para moverem e fecharem o Tópico. Irei adiconá-lo e poderemos conversar! BENÇA )
-
Provavelmente ele não entende o vocabulário citado. Ravely por favor poderia ir na pasta data/lib, pegar o arquivo 050-function.lua e postar aqui? Depois na pasta data/movements e postar o arquivo vipe.lua? Obrigado!
-
[Encerrado] Como Retirar A Setinha Azul Do Meu Server?
tópico respondeu ao maxisk de Roksas em Tópicos Sem Resposta
Creio que são globalevents, me mande o seu arquivo globalevents.xml para eu ter conclusões! -
[Encerrado] Adicionar Teleport Em Outros Pokemons - Pda 1.7
tópico respondeu ao robsondc de Roksas em Tópicos Sem Resposta
Resolvido? Reportarei para que fechem, qualquer dúvida só perguntar! BENÇA ) -
[Encerrado] Adicionar Teleport Em Outros Pokemons - Pda 1.7
tópico respondeu ao robsondc de Roksas em Tópicos Sem Resposta
Na variável battle, nos valores true e false, adicione uma vírgula ao lado deles! ficando: local config = { premium = false, battle = true, } BENÇA ) @EDIT - Enquanto eu estava postando Slicer foi mais rápido! ^^ -
Então é só isso mesmo, a primeira já passei, agora a segunda é isso! Crie um arquivo chamado magiateleport.lua: function onCastSpell(cid, var) local player = getCreaturePosition(cid) local target = getCreatureTarget(cid) local enemypos = getCreaturePosition(target) if target == isMonster or isCreature then doTeleportThing(cid, enemypos) doSendMagicEffect(enemypos, 2) doCombat(cid, distanceCombat, var) return 1 else doPlayerSendCancel(cid, "Você precisa ter um target para usar essa magia!") end end E em spells.xml adicione esta tag: <instant name="NOMEDAMAGIA" words="OQUE FALA PRA USAR" lvl="16" mana="20" prem="0" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="1000" needlearn="0" event="script" value="NOMEDOSCRIPT.lua"> <vocation id="1"/> <vocation id="2"/> <vocation id="5"/> <vocation id="6"/> Aonde está as tags vocation id="" você pode colocar os IDS das vocações que poderão usar, se todos poderão então retire as tags!
-
Você não pediu duas? A primeira spell está la em cima , e a segunda são as duas debaixo. Para adicionar essa magia, você quer que ela saia junto com Exori por exemplo, ou outra magia, ou sozinha?
-
A primeira spell, você edita uma ou cria uma normal, sem nada. E no final substitua a função castSpell, por essa: function onCastSpell(cid, var) local max_sqm = 3 -- Quantidade máxima que empurrará local pos = getPosByDir(getCreaturePosition(cid), getCreatureLookDirection(cid), 1) pos.stackpos = 253 if (isCreature(getThingFromPos(pos).uid)) then doTeleportThing(getThingFromPos(pos).uid, getClosestFreeTile(getThingFromPos(pos).uid, (getPosByDir(getCreaturePosition(cid), getCreatureLookDirection(cid), max_sqm)))) doSendMagicEffect(pos,10) end return FALSE end Consegui! A Segunda basta você fazer a mesma coisa que a primeira, daremos um exemplo. Abra o arquivo berserk.lua (Exori) e no final de tudo há uma função castSpell, apague-a com seu end e tudo mais, e coloque isso no lugar: function onCastSpell(cid, var) local player = getCreaturePosition(cid) local target = getCreatureTarget(cid) local enemypos = getCreaturePosition(target) if target == isMonster or isCreature then doTeleportThing(cid, enemypos) doSendMagicEffect(enemypos, 2) doCombat(cid, distanceCombat, var) return 1 else doPlayerSendCancel(cid, "Você precisa ter um target para usar essa magia!") end end @EDIT, Se for criar a magia use essa tag: Em verde o ID das vocações que a podem usar! BENÇA )
-
dúvida [Encerrado] Como Tirar Msg Da Tela.
tópico respondeu ao Surfadao de Roksas em Tópicos Sem Resposta
Deleta o arquivo e tira a tag dele do creaturescripts.xml ou globalevents.xml, Seja lá onde você o encontrou! -
dúvida [Encerrado] Como Tirar Msg Da Tela.
tópico respondeu ao Surfadao de Roksas em Tópicos Sem Resposta
É o seguinte, isso aparece numa janela ou no log? no Default? Por favor peço para adicionar um spoiler e colocar o seu arquivo creaturescripts.xml na pasta data/creaturescripts (SE FOR QUANDO LOGAR) (SE FOR DURANTE O JOGO) Me passe o arquivo globalevents.xml na pasta data/globalevents! -
resolvido [Encerrado] Como Comessar Com Tal Itens E Tal Poke?
tópico respondeu ao Heinekennn de Roksas em Tópicos Sem Resposta
É por vocação ou todo mundo começa com as mesmas coisas? -
[Encerrado] Duvida com a Posição do Templo
tópico respondeu ao Maristella de Roksas em Tópicos Sem Resposta
Cara, vá na pasta do seu servidor, lá tem o arquivo config.lua. Abra-o Se você estiver tentando entrar no Account Manager e não der certo. Na primeira parte do config.lua há esse trecho: newPlayerSpawnPosX = 1000 newPlayerSpawnPosY = 1000 newPlayerSpawnPosZ = 7 Vá no MapEditor, no seu mapa e no Templo, veja as coordenadas de algum dos tiles. E mude nesse trecho acima/\ Agora, se estiver tentando entrar no seu Char, basta entrar no SQLITE e ir em players, e no seu Char, mudar a posição dos player, para aquelas coordenadas que você viu no MapEditor! BENÇA ) -
Boa caotic, ficou menor e mais bonito, haha. Ta avançadinho hein U_u Quando liberar aqui REP+
- 9 respostas
-
- talkaction
- de
- (e 4 mais)
-
dúvida Problema Ao Abrir Tfs 0.3.6 Após Compilação
pergunta respondeu ao w0lv3r de Roksas em Resolvidos
Esqueceu de uma coisa amigo ) BENÇA ! http://www.xtibia.com/forum/topic/60572-burlando-rsa-key/
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.