Pesquisar na Comunidade
Mostrando resultados para as tags ''scripts''.
Encontrado 57 registros
-
Neste Tutorial existem varios comandos básicos, bons para iniciantes, parte por parte é explicada, visando um maior entendimento sobre o assunto. Vamos lá! SPELLS Primeiro vamos falar sobre as spells Existem as spells de instant e as spells de rune, as spells de instant sao aquelas em q o monstro usa nele, e as de runa ele vai usar em vc. Entao a primeira coisa que precisamos fazer é decidir se vamos fazer uma spell de runa ou de instant, vou mostrar aqui apenas um exemplo, se nao o topico ficara muito grande. Vamos começar, seguindo um exemplo de uma magia minha: Primeiro, crie um arquivo chamado crossover.lua, na pasta Data>Spells>Instant Começamos o script com isso: CODE area = { {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, } Essa é a area em que a magia ira pegar, o numero 0 simboliza os espaços que a magia nao pega e os numeros 1, os lugares onde acontecerá a magia, no exemplo acima, é uma magia em forma de cruz Pulamos entao uma linha e acrescentamos isso: CODE attackType = ATTACK_PHYSICAL needDirection = false areaEffect = NM_ME_YELLOW_RINGS animationEffect = NM_ANI_NONE hitEffect = NM_ME_HIT_AREA damageEffect = NM_ME_DRAW_BLOOD animationColor = BLACK_WHITE offensive = true drawblood = true Vamos às explicações: attackType = o tipo de ataque que será, no exemplo será um ataque fisico, mas tbm poderia ser um ataque de fogo, ou de energy needDirection = se o ataque precisa de direção, como as firewaves areaEffect = o tipo de animação que saira na area na magia animationEffect = a animação de quando o player sofrer dano da magia damageEffect = o efeito que saira quando o player receber o dano animationColor = a cor da animação da Magia offensive = se a magia é de ataque ou nao drawblood = se embaixo do player vai sair sangue quando ele receber a magia Explicado, pulamos uma linha e adicionamos: CODE UltimateExplosionObject = MagicDamageObject(attackType, animationEffect, hitEffect, damageEffect, animationColor, offensive, drawblood, 0, 0) Essa é a função que fara com q oq explicamos acima funcione, pulamos outra linha e acrescentamos: CODE function onCast(cid, creaturePos, level, maglv, var) centerpos = {x=creaturePos.x, y=creaturePos.y, z=creaturePos.z} n = tonumber(var) if n ~= nil then -- bugged -- ultimateExplosionObject.minDmg = var+0 -- UltimateExplosionObject.maxDmg = var+0 UltimateExplosionObject.minDmg = 0 UltimateExplosionObject.maxDmg = 0 else UltimateExplosionObject.minDmg = (level * 2 + maglv * 3) * 2.6 - 30 UltimateExplosionObject.maxDmg = (level * 2 + maglv * 3) * 3.0 end Essa é a fórmula do Dano que o player irá tomar ao receber a magia, agora pra finalizar adiconamos: CODE return doAreaMagic(cid, centerpos, needDirection, areaEffect, area, UltimateExplosionObject:ordered()) end Pronto ja terminamos nossa primeira spell, agora para faze-la funcionar precisamos acrescenta-la aou arquivo spells.xml vamos lá, na pasta Data>Spells abra o arquivo spells.xml e na sessao de INSTANT, acrescente esta linha: CODE spell name="CrossOver" words="crossover" maglv="12" mana="160" enabled="1">/> Explicando: spell name = nome da magia (pode ser qualquer um) words= as palavras magicas que terao que ser ditas pra magia funcionar (tem q ser igual ao nome do script da magia) magvl= maglv necessario para usar essa magia mana= mana que será gasta enabled = se a magia esta abilitada ou nao vocation id = para quais vocações essa magia funcionará, no caso acima ela so funciona pra sorc e druid ------------------ MONSTERS Spellls Spell criada, vamos passar para o Monstro que usara esta spell Crie um arquivo .xml com um nome qualquer na pasta Data>Monsters CODE Creditos; Kaiotp
- 4 respostas
-
- entendendo
- scripts
- (e 6 mais)
-
item necessário vai em data\actions\scripts criei genio.lua coloca isso --config by notle genio = "Genio" -- aqui coloca nome do NPC temp = 25 -- tempo que genio vai durar (1 por segundos) fala = {"to saindo","bye bye"} -- as fala que vai fazer perto de sair effect = {18,19,21,22,23,24} -- efeitos storage = 415231 --config by notle function onUse(cid, item, frompos, item2, topos) if getGlobalStorageValue(cid,storage) == 1 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"Desculpe Alguem Invoco "..genio.." tente + tarde") return true end if getGlobalStorageValue(cid,storage) == -1 then setGlobalStorageValue(storage, 1) doRemoveItem(item.uid,1) doCreatureSay(cid,"Eu Invoco "..genio.." apareça",TALKTYPE_MONSTER) doSendMagicEffect(getThingPos(cid),6) addEvent(genios,400,cid,1) for i = 1,temp do addEvent(genios,i*950,cid,2) end addEvent(genios,temp*750,cid,3) addEvent(genios,temp*850,cid,4) addEvent(genios,temp*1000,cid,5) end end function genios(cid,x) if x == 1 then doCreateNpc(""..genio.."", getCreaturePosition(cid)) elseif x == 3 then doCreatureSay(getCreatureByName(genio),""..fala[1].."",TALKTYPE_MONSTER) elseif x == 4 then doCreatureSay(getCreatureByName(genio),""..fala[2].."",TALKTYPE_MONSTER) elseif x == 5 then doSendMagicEffect(getThingPos(getCreatureByName(genio)), CONST_ME_TELEPORT) doRemoveCreature(getCreatureByName(genio)) setGlobalStorageValue(storage, -1) else doSendMagicEffect(getThingPos(getCreatureByName(genio)), effect[math.random(1,#effect)]) end end actions.xml <action itemid="2356" script="genio.lua"/> ressumindo esse item cria um npc que fica tempo x que pode ser editado no script não esquesão de edita nome do npc em genio = "Genio" -- aqui coloca nome do NPC espero que gostem rsrs fui...
-
eu quero que quando player pisa no piso ganhar battle ja tenho esse http://www.xtibia.com/forum/topic/196305-piso-que-nao-pode-pisar-em-battle/ agora falta só esse ai pra mim deixa minha Quest bem legal espero que vcs me ajudem
-
talkaction Comando para banir que também tira 20% do level.
um tópico no fórum postou daduloko Actions e Talkactions
Bom, eu queria um comando que a gente desse em um player, pode ser com /ban nickname que tirasse 20% do level do player (parecido com o Bronson server só que em vez de 10% 20% e banisse por 1 dia apenas. por que meu ot é meio de war. Se eu for banir por 7 dias eles não vão entrar mais. E se tiver também quando o player for banido aparecer uma mensagem falando: O jogar (nickame) Foi banido por 1 dia e perdeu 20% dos seus leveis. Obrigado pessoal do xtibia! vocês tem me ajudado bastante! ^^- 1 resposta
-
- talkactions
- talk
- (e 5 mais)
-
Preciso de ajuda com um Systema de Alavancas Tenho um script que achei na net mais ele é normal e preciso de um que seja automatico ou seja que a alavanca se desativa depois de um certo tempo. Este é o Systema que eu tenho: function onUse(cid, item, frompos, item2, topos) wall1 = {x=227, y=142, z=8, stackpos=1} getwall1 = getThingfromPos(wall1) if item.uid == 9666 and item.itemid == 1945 then doRemoveItem(getwall1.uid,1245) doTransformItem(item.uid,item.itemid+1) elseif item.uid == 9666 and item.itemid == 1946 then doTransformItem(item.uid,item.itemid-1) doCreateItem(1547,1,wall1) end return 1 end Se alguem que entenda de scripts poder me ajuda eu agradeço muito.
-
Eae pessoal, irei postar 2 magias para colocar no seu otserver! Abra seuot/data/spells/scripts/attack Copie algum arquivo lua, e nome-ie de rushkina: Primeira Magia: Exori Rush Cole isso dentro da pasta: local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, 36) setAttackFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 50, 60, 60, 65) local arr = { {0, 1, 1, 1, 0}, {1, 1, 1, 1, 1}, {1, 1, 2, 1, 1}, {1, 1, 1, 1, 1}, {0, 1, 1, 1, 0}, } local area = createCombatArea(arr) setCombatArea(combat, area) function onCastSpell(cid, var) return doCombat(cid, combat, var) end Depois volte para a pasta spells, e abra o arquivo spells.xml, cole isso embaixo de alguma magia: <instant name="Rush Kina" words="exori rush" lvl="300" mana="340" prem="1" needweapon="1" exhaustion="1200" needlearn="0" script="attack/rushkina.lua"> <vocation id="4"/> <vocation id="8"/> </instant> Imagem da magia: _____________ Segunda Magia: Exevo mas holy Faça igual a primeira magia: seuot/data/spells/scripts/attack Copie algum arquivo lua, e nome-ie de star Cole isso dentro da pasta: local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_STUN) setAttackFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 4, 4, 5, 6) local arr = { {0, 0, 0, 0, 1, 0, 0, 0, 0}, {0, 0, 0, 1, 1, 1, 0, 0, 0}, {0, 0, 1, 1, 1, 1, 1, 0, 0}, {0, 1, 1, 1, 2, 1, 1, 1, 0}, {0, 0, 1, 1, 1, 1, 1, 0, 0}, {0, 0, 0, 1, 1, 1, 0, 0, 0}, {0, 0, 0, 0, 1, 0, 0, 0, 0}, } local area = createCombatArea(arr) setCombatArea(combat, area) function onCastSpell(cid, var) return doCombat(cid, combat, var) end Depois volte para a pasta spells, e abra o arquivo spells.xml, cole isso embaixo de alguma magia: <instant name="Star" words="exevo mas holy" lvl="100" mana="1100" prem="1" exhaustion="1000" selftarget="1" needlearn="0" script="attack/star.lua"> <vocation id="2"/> <vocation id="6"/> <vocation id="1"/> <vocation id="5"/> </instant> Imagem da magia: Espero te ajudado com essas magias ^^.
-
V1 exemplo como fazer pokemon falar !x E Ae Galera Do XTibia V2 nessa v2 apenas Mewtwo,Meowth,Entei que fala e deixei alakazam e gengar fala espero que gostei *-*
-
bom tou com um ot 8.7 que baixei do darker ele tem varios erros e quero arruma-lo bugs são: Grato pela atenção Rep + pra quem me ajudar
-
Olá galera, estou AQUI para fazer colaboração com as PESSOAS que queiram sistemas personalizados por eles mesmos. Para fazer o seu pedido de SCRIPT só precisa preencher os DADOS abaixo: ---------------------------------------------------------------------------------- \Porque, como STEVE JOBS falava; / \-Conhecimento Humano é para todos. / \-O melhor artista é aquele Que rouba. / \ / Metas: E Criar a Empresa "UNIVERSEXGAMES"
-
preciso de um script que de a second promotion para um player por um item. Exemplo:se o player tiver 25000 vip coins (id:11192) e Tiver uma das primeiras Vocaçoes da primeira promotion (id da vocaçao: do 5 ao 8) ele pode falar !secondpromotion e vira a segunda promotion com as vocations novas (secondvocation id:9,10,11,12) Agradeço a toda ajuda
-
Vai em data / script / actions / e crie um arquivo.lua e renomeie para nomedaruna.lua e add function onUse(cid, item, frompos, item2, topos) if getPlayerStorageValue(cid, 14725) >= os.time() then return true end if not isCreature(item2.uid) then return true end --- configuration by notle local exhaust = 1100 -- Tempo para player poder se curar novamente! (1000 por segundos) local voc = {4,8,12} -- id das vocations local ww,msg = 10,"kkkk que fraco não tem level 10 ainda" -- aqui edita message e menos que 10 não pode usa local t = { [50] = {vidamin = 100, vidamax = 200,manamin = 300, manamax = 400}, [100] = {vidamin = 400, vidamax = 500,manamin = 600, manamax = 700}, [200] = {vidamin = 700, vidamax = 800,manamin = 900, manamax = 1200}, [400] = {vidamin = 1000, vidamax = 1100,manamin = 1200, manamax = 1500}, [800] = {vidamin = 1300, vidamax = 1400,manamin = 1500, manamax = 1600}} --- configuration by notle if not isInArray(voc, getPlayerVocation(cid)) and doPlayerSendCancel(cid, " Your vocation can not.") then return true end if getPlayerLevel(cid) < ww and doCreatureSay(item2.uid,msg,TALKTYPE_ORANGE_1) then return true end for level, n in pairs (t) do if getPlayerLevel(cid) < level then doPlayerAddMana(item2.uid, math.random(n.manamin, n.manamax)) doCreatureAddHealth(item2.uid, math.random(n.vidamin, n.vidamax)) break end end doSendMagicEffect(topos, CONST_ME_MAGIC_BLUE) doCreatureSay(item2.uid, "Aaaah...", TALKTYPE_ORANGE_1) setPlayerStorageValue(cid, 14725, os.time() + exhaust / 1000) return true end em actions.xml <action itemid="ID DA RUNA" script="nomedaruna.lua"/> como adiciona mais uma dessa "tbl" exemplo desse esse colchetes red aqui } e adiciona e coloca virgula na penultima linha quase todas as linha tem virgula mais a ultima não [800] = {vidamin = 1300, vidamax = 1400,manamin = 1500, manamax = 1600}, [1600] = {vidamin = 1600, vidamax = 1700,manamin = 1800, manamax = 1900}} como editar linha de exemplo [50] = {vidamin = 100, vidamax = 200,manamin = 300, manamax = 400}, [50] = -- esse 50 e level {vidamin = 100, --vidamin e minimo de life que vai ganhar vidamax = 200,-- vidamax e máximo de life que vai ganhar manamin = 300,-- manamin e minimo de mana que vai ganhar manamax = 400-- manamax e máximo de mana que vai ganhar },
-
data\talkactions\scripts\nomedoarquivo.lua function onSay(cid, words, param, channel) --configuration by notle local i = {qnt = 3, --Quantia de summons permitida level = 10, -- level pra usa summons mana = 250, -- quanto de mana que vai perde assim que usa voc = {1,2,3,4,5,6,7,8,9,10,11,12}, -- ID das vocations ignore = {"demon","apocalypse","treiner"}} -- summon que não pode ser criandos --configuration by notle local pid = cid local t = string.explode(param, ",") if getPlayerMana(cid) > i.mana then if(t[2]) then pid = getPlayerByNameWildcard(t[2]) if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) and doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. t[2] .. " not found.") then return true end elseif #getCreatureSummons(cid) == i.qnt and doPlayerSendCancel(cid, "Máximo de summons atingido.") then return true elseif getPlayerLevel(cid) <= i.level and doPlayerSendCancel(cid, "sorry insufficient level [up ate " ..i.level.. "].") then return true elseif not isInArray(i.voc, getPlayerVocation(cid)) and doPlayerSendCancel(cid, " Your vocation can not create summons.") then return true elseif isInArray(i.ignore, string.lower(t[1])) and doPlayerSendCancel(cid, "you can not summon this creature.") then return true end for o = 1,i.qnt and doSummonMonster(pid, t[1]) do doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "you invoked a "..t[1].."") return doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_RED) and doPlayerAddMana(cid, -i.mana) and true end else return doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) and doPlayerSendCancel(cid, "sorry insufficient mana.") end end talkactions.xml <talkaction words="!cmd" event="script" value="nomedoarquivo.lua"/> pra usa comando !cmd dragon só editar a o gosto --configuration by notle local i = {qnt = 3, --Quantia de summons permitida level = 10, -- level pra usa summons mana = 250, -- quanto de mana que vai perde assim que usa voc = {1,2,3,4,5,6,7,8,9,10,11,12}, -- ID das vocations ignore = {"demon","apocalypse","treiner"}} -- summon que não pode ser criandos --configuration by notle
-
bom eu queria saber mais sobre getCreatureCondition, das Condition que são mais usadas ate agora não achei tutor falando sobre essa function se alguem, pode me da um exemplo rep+ vlw
-
Entao galera.. Peço a ajuda de voces para arrumar os ajustes finais do meu ot war team x team! É o seguinte, eu quero que quando os players morressem voltassem para o lvl inicial que no caso é 150. E que nao perdessem skill! Gostaria de um script que de acordo com a quantidade que o players vai matando apareça um shield no player parecido com akeles do system war. Exemplo: o player ta fragando, e quando ele chegar a 50 frags apareça akele shield verde, mais quando ele morrer ou deslogar os frags online zera,e o shield sai, mais os frags totais continua! (Esses shields do system war so valem para os frags online) 50 frags = shield verde 80 frags = shield azul 110 frags+ = shield red Tambem gostaria de uma ajuda com relaçao as experience da war. por exemplo, quero que cada frag upe somente 1 lvl independente do lvl.-->> 150 mata um 150 = 151 151 mata um 150 = 152 152 mata um 150 = 153 300 mata um 150 = 301 150 mata um 151 = 151 150 mata um 152 = 151 150 mata um 160 = 151 150 mata um 300 = 151 160 mata um 160 = 161 300 mata um 300 = 301 *Nao é necessario que seje 1 lvl inteiro, pode ser 80 % de 1 lvl! - Tipo galera, todos que atacaram a pessoa que morreu, vao fragar e upar e ganhar 500 gps! - Eu tambem estou com um problema.. quando a pessoa fraga, envez dela ganhar 5 platinum coins, ela ta ganhando 500 gps.. Isso enchera a backpack mais rapido.. Gostaria que a recompensa fosse em forma de 5 platinum coins e nao 500 gps! Gostaria também de um script que os players tivessem somente os addons do citizen! e que sempre que eles morresem ou deslogarem, a outfit e o addon citizen voltasse para o character! ACREDITO QUE SEJE SOMENTE ISSO PESSOAL... DESCULPE POSTAR TANTOS PROBLEMAS EM UM UNICO TOPICO..MUITO OBRIGADO A TODOS QUE PUDEREM ME AJUDAR..ESTOU PRECISANDO MUITO DE TUDO ISSO... FICAREI ETERNAMENTE GRATO!
-
to tentando fazer comando pra criar bicho pq gm criar muitos com /m eu queria que tivesse um limite cria 1 ou 2 ai quando player mata ele vai pode criar outro pq tem vez que fica muito lag gm faz muitos mostros de vez function onSay(cid, words, param) doSummonCreature("demon", getThingPos(cid)) end
-
bom eu seguir tutorial do nosso amigo notle2012 aqui link = http://www.xtibia.com/forum/topic/193478-fazer-um-item-normal-virar-um-item-multiplos/page__p__1332507#entry1332507 bom deu tudo certo só que maquina de boost só pega uma pedra não conhece 100 se alguém puder edita esse script agradeço e do rep+ local ballslot = 12355 local ballslot_run = 12352 local stoneslot = 12354 local stoneslot_run = 12353 local button = 12356 local button_run = 12357 function isRunning(id) if isInArray({button_run, stoneslot_run, ballslot_run}, id) then return true end return false end boost_stones = { ["Bulbasaur"] = {leaf}, ["Ivysaur"] = {leaf}, ["Venusaur"] = {leaf}, ["Charmander"] = {fire}, ["Charmeleon"] = {fire}, ["Charizard"] = {fire}, ["Squirtle"] = {water}, ["Wartortle"] = {water}, ["Blastoise"] = {water}, ["Caterpie"] = {coccon}, ["Metapod"] = {coccon}, ["Butterfree"] = {coccon}, ["Weedle"] = {coccon}, ["Kakuna"] = {coccon}, ["Beedrill"] = {coccon}, ["Pidgey"] = {heart}, ["Pidgeotto"] = {heart}, ["Pidgeot"] = {heart}, ["Rattata"] = {heart}, ["Raticate"] = {heart}, ["Spearow"] = {heart}, ["Fearow"] = {heart}, ["Ekans"] = {venom}, ["Arbok"] = {venom}, ["Pikachu"] = {thunder}, ["Raichu"] = {thunder}, ["Sandshrew"] = {earth}, ["Sandslash"] = {earth}, ["Nidoran Female"] = {venom}, ["Nidorina"] = {venom}, ["Nidoqueen"] = {venom, earth}, ["Nidoran Male"] = {venom}, ["Nidorino"] = {venom}, ["Nidoking"] = {venom, earth}, ["Clefairy"] = {heart}, ["Clefable"] = {heart}, ["Vulpix"] = {fire}, ["Ninetales"] = {fire}, ["Jigglypuff"] = {heart}, ["Wigglytuff"] = {heart}, ["Zubat"] = {venom}, ["Golbat"] = {venom}, ["Oddish"] = {leaf, venom}, ["Gloom"] = {leaf, venom}, ["Vileplume"] = {leaf, venom}, ["Paras"] = {coccon, leaf}, ["Parasect"] = {coccon, leaf}, ["Venonat"] = {coccon, venom}, ["Venomoth"] = {coccon, venom}, ["Diglett"] = {earth}, ["Dugtrio"] = {earth}, ["Meowth"] = {heart}, ["Persian"] = {heart}, ["Psyduck"] = {water}, ["Golduck"] = {water, enigma}, ["Mankey"] = {punch}, ["Primeape"] = {punch}, ["Growlithe"] = {fire}, ["Arcanine"] = {fire}, ["Poliwag"] = {water}, ["Poliwhirl"] = {water}, ["Poliwrath"] = {water, punch}, ["Abra"] = {enigma}, ["Kadabra"] = {enigma}, ["Alakazam"] = {enigma}, ["Machop"] = {punch}, ["Machoke"] = {punch}, ["Machamp"] = {punch}, ["Bellsprout"] = {leaf, venom}, ["Weepinbell"] = {leaf, venom}, ["Victreebel"] = {leaf, venom}, ["Tentacool"] = {water, venom}, ["Tentacruel"] = {water, venom}, ["Geodude"] = {earth, rock}, ["Graveler"] = {earth, rock}, ["Golem"] = {earth, rock}, ["Ponyta"] = {fire}, ["Rapidash"] = {fire}, ["Slowpoke"] = {water, enigma}, ["Slowbro"] = {water, enigma}, ["Magnemite"] = {thunder, metal}, ["Magneton"] = {thunder, metal}, ["Farfetch'd"] = {heart}, ["Doduo"] = {heart}, ["Dodrio"] = {heart}, ["Seel"] = {water, ice}, ["Dewgong"] = {water, ice}, ["Grimer"] = {venom}, ["Muk"] = {venom}, ["Shellder"] = {water, ice}, ["Cloyster"] = {water, ice}, ["Gastly"] = {dark}, ["Haunter"] = {dark}, ["Gengar"] = {dark}, ["Onix"] = {rock, earth}, ["Drowzee"] = {enigma}, ["Hypno"] = {enigma}, ["Krabby"] = {water}, ["Kingler"] = {water}, ["Voltorb"] = {thunder}, ["Electrode"] = {thunder}, ["Exeggcute"] = {enigma, leaf}, ["Exeggutor"] = {enigma, leaf}, ["Cubone"] = {earth}, ["Marowak"] = {earth}, ["Hitmonlee"] = {punch}, ["Hitmonchan"] = {punch}, ["Lickitung"] = {heart}, ["Koffing"] = {venom}, ["Weezing"] = {venom}, ["Rhyhorn"] = {earth, rock}, ["Rhydon"] = {earth, rock}, ["Chansey"] = {heart}, ["Tangela"] = {leaf}, ["Kangaskhan"] = {heart}, ["Horsea"] = {water}, ["Seadra"] = {water}, ["Goldeen"] = {water}, ["Seaking"] = {water}, ["Staryu"] = {water}, ["Starmie"] = {water}, ["Mr. Mime"] = {enigma}, ["Scyther"] = {coccon}, ["Jynx"] = {enigma, ice}, ["Electabuzz"] = {thunder}, ["Magmar"] = {fire}, ["Pinsir"] = {coccon}, ["Tauros"] = {heart}, ["Magikarp"] = {water}, ["Gyarados"] = {water, crystal}, ["Lapras"] = {water, ice}, ["Ditto"] = {heart}, ["Eevee"] = {heart}, ["Vaporeon"] = {water}, ["Jolteon"] = {thunder}, ["Flareon"] = {fire}, ["Porygon"] = {heart, enigma}, ["Omanyte"] = {rock, water}, ["Omastar"] = {rock, water}, ["Kabuto"] = {rock, water}, ["Kabutops"] = {rock, water}, ["Aerodactyl"] = {rock}, ["Snorlax"] = {heart}, ["Articuno"] = {ice}, ["Zapdos"] = {thunder}, ["Moltres"] = {fire}, ["Dratini"] = {crystal}, ["Dragonair"] = {crystal}, ["Dragonite"] = {crystal}, ["Mewtwo"] = {enigma}, ["Mew"] = {enigma}, -- ["Shiny Bulbasaur"] = {leaf}, ["Shiny Ivysaur"] = {leaf}, ["Shiny Venusaur"] = {leaf}, ["Shiny Charmander"] = {fire}, ["Shiny Charmeleon"] = {fire}, ["Shiny Charizard"] = {fire}, ["Shiny Squirtle"] = {water}, ["Shiny Wartortle"] = {water}, ["Shiny Blastoise"] = {water}, ["Shiny Caterpie"] = {coccon}, ["Shiny Metapod"] = {coccon}, ["Shiny Butterfree"] = {coccon}, ["Shiny Weedle"] = {coccon}, ["Shiny Kakuna"] = {coccon}, ["Shiny Beedrill"] = {coccon}, ["Shiny Pidgey"] = {heart}, ["Shiny Pidgeotto"] = {heart}, ["Shiny Pidgeot"] = {heart}, ["Shiny Rattata"] = {heart}, ["Shiny Raticate"] = {heart}, ["Shiny Spearow"] = {heart}, ["Shiny Fearow"] = {heart}, ["Shiny Ekans"] = {venom}, ["Shiny Arbok"] = {venom}, ["Shiny Pikachu"] = {thunder}, ["Shiny Raichu"] = {thunder}, ["Shiny Sandshrew"] = {earth}, ["Shiny Sandslash"] = {earth}, ["Shiny Nidoran Female"] = {venom}, ["Shiny Nidorina"] = {venom}, ["Shiny Nidoqueen"] = {venom, earth}, ["Shiny Nidoran Male"] = {venom}, ["Shiny Nidorino"] = {venom}, ["Shiny Nidoking"] = {venom, earth}, ["Shiny Clefairy"] = {heart}, ["Shiny Clefable"] = {heart}, ["Shiny Vulpix"] = {fire}, ["Shiny Ninetales"] = {fire}, ["Shiny Jigglypuff"] = {heart}, ["Shiny Wigglytuff"] = {heart}, ["Shiny Zubat"] = {venom}, ["Shiny Golbat"] = {venom}, ["Shiny Oddish"] = {leaf, venom}, ["Shiny Gloom"] = {leaf, venom}, ["Shiny Vileplume"] = {leaf, venom}, ["Shiny Paras"] = {coccon, leaf}, ["Shiny Parasect"] = {coccon, leaf}, ["Shiny Venonat"] = {coccon, venom}, ["Shiny Venomoth"] = {coccon, venom}, ["Shiny Diglett"] = {earth}, ["Shiny Dugtrio"] = {earth}, ["Shiny Meowth"] = {heart}, ["Shiny Persian"] = {heart}, ["Shiny Psyduck"] = {water}, ["Shiny Golduck"] = {water, enigma}, ["Shiny Mankey"] = {punch}, ["Shiny Primeape"] = {punch}, ["Shiny Growlithe"] = {fire}, ["Shiny Arcanine"] = {fire}, ["Shiny Poliwag"] = {water}, ["Shiny Poliwhirl"] = {water}, ["Shiny Poliwrath"] = {water, punch}, ["Shiny Abra"] = {enigma}, ["Shiny Kadabra"] = {enigma}, ["Shiny Alakazam"] = {enigma}, ["Shiny Machop"] = {punch}, ["Shiny Machoke"] = {punch}, ["Shiny Machamp"] = {punch}, ["Shiny Bellsprout"] = {leaf, venom}, ["Shiny Weepinbell"] = {leaf, venom}, ["Shiny Victreebel"] = {leaf, venom}, ["Shiny Tentacool"] = {water, venom}, ["Shiny Tentacruel"] = {water, venom}, ["Shiny Geodude"] = {earth, rock}, ["Shiny Graveler"] = {earth, rock}, ["Shiny Golem"] = {earth, rock}, ["Shiny Ponyta"] = {fire}, ["Shiny Rapidash"] = {fire}, ["Shiny Slowpoke"] = {water, enigma}, ["Shiny Slowbro"] = {water, enigma}, ["Shiny Magnemite"] = {thunder, metal}, ["Shiny Magneton"] = {thunder, metal}, ["Shiny Farfetch'd"] = {heart}, ["Shiny Doduo"] = {heart}, ["Shiny Dodrio"] = {heart}, ["Shiny Seel"] = {water, ice}, ["Shiny Dewgong"] = {water, ice}, ["Shiny Grimer"] = {venom}, ["Shiny Muk"] = {venom}, ["Shiny Shellder"] = {water, ice}, ["Shiny Cloyster"] = {water, ice}, ["Shiny Gastly"] = {dark}, ["Shiny Haunter"] = {dark}, ["Shiny Gengar"] = {dark}, ["Shiny Onix"] = {rock, earth}, ["Shiny Drowzee"] = {enigma}, ["Shiny Hypno"] = {enigma}, ["Shiny Krabby"] = {water}, ["Shiny Kingler"] = {water}, ["Shiny Voltorb"] = {thunder}, ["Shiny Electrode"] = {thunder}, ["Shiny Exeggcute"] = {enigma, leaf}, ["Shiny Exeggutor"] = {enigma, leaf}, ["Shiny Cubone"] = {earth}, ["Shiny Marowak"] = {earth}, ["Shiny Hitmonlee"] = {punch}, ["Shiny Hitmonchan"] = {punch}, ["Shiny Hitmontop"] = {punch}, --alterado v1.4 ["Shiny Lickitung"] = {heart}, ["Shiny Koffing"] = {venom}, ["Shiny Weezing"] = {venom}, ["Shiny Rhyhorn"] = {earth, rock}, ["Shiny Rhydon"] = {earth, rock}, ["Shiny Chansey"] = {heart}, ["Shiny Tangela"] = {leaf}, ["Shiny Kangaskhan"] = {heart}, ["Shiny Horsea"] = {water}, ["Shiny Seadra"] = {water}, ["Shiny Goldeen"] = {water}, ["Shiny Seaking"] = {water}, ["Shiny Staryu"] = {water}, ["Shiny Starmie"] = {water}, ["Shiny Mr. Mime"] = {enigma}, ["Shiny Scyther"] = {coccon}, ["Shiny Jynx"] = {enigma, ice}, ["Shiny Electabuzz"] = {thunder}, ["Shiny Magmar"] = {fire}, ["Shiny Pinsir"] = {coccon}, ["Shiny Tauros"] = {heart}, ["Shiny Magikarp"] = {water}, ["Shiny Gyarados"] = {water, crystal}, ["Shiny Lapras"] = {water, ice}, ["Shiny Ditto"] = {heart}, ["Shiny Eevee"] = {heart}, ["Shiny Vaporeon"] = {water}, ["Shiny Jolteon"] = {thunder}, ["Shiny Flareon"] = {fire}, ["Shiny Porygon"] = {heart, enigma}, ["Shiny Omanyte"] = {rock, water}, ["Shiny Omastar"] = {rock, water}, ["Shiny Kabuto"] = {rock, water}, ["Shiny Kabutops"] = {rock, water}, ["Shiny Aerodactyl"] = {rock}, ["Shiny Snorlax"] = {heart}, ["Shiny Articuno"] = {ice}, ["Shiny Zapdos"] = {thunder}, ["Shiny Moltres"] = {fire}, ["Shiny Dratini"] = {crystal}, ["Shiny Dragonair"] = {crystal}, ["Shiny Dragonite"] = {crystal}, ["Shiny Mewtwo"] = {enigma}, ["Shiny Mew"] = {enigma}, -- ["Chikorita"] = {leaf}, ["Bayleef"] = {leaf}, ["Meganium"] = {leaf}, ["Cyndaquil"] = {fire}, ["Quilava"] = {fire}, ["Typhlosion"] = {fire}, ["Totodile"] = {water}, ["Croconaw"] = {water}, ["Feraligatr"] = {water}, ["Sentret"] = {heart}, ["Furret"] = {heart}, ["Hoothoot"] = {heart, enigma}, ["Noctowl"] = {heart, enigma}, ["Ledyba"] = {coccon}, ["Ledian"] = {coccon}, ["Spinarak"] = {coccon, venom}, ["Ariados"] = {coccon, venom}, ["Crobat"] = {venom}, ["Chinchou"] = {water, thunder}, ["Lanturn"] = {water, thunder}, ["Pichu"] = {thunder}, ["Cleffa"] = {heart}, ["Iglybuff"] = {venom}, ["Natu"] = {enigma}, ["Xatu"] = {enigma}, ["Mareep"] = {thunder}, ["Flaaffy"] = {thunder}, ["Ampharos"] = {thunder}, ["Bellossom"] = {leaf}, ["Marill"] = {water}, ["Azulmarill"] = {water}, ["Sudowoodo"] = {rock, earth}, ["Politoed"] = {water, earth}, ["Hoppip"] = {leaf}, ["Skiploom"] = {leaf}, ["Jumpluff"] = {leaf}, ["Aipom"] = {heart}, ["Sunkern"] = {leaf}, ["Sunflora"] = {leaf}, ["Yanma"] = {venom, coccon}, ["Wooper"] = {water}, ["Quagsire"] = {water, earth}, ["Murkrow"] = {dark}, ["Slowking"] = {water,enigma}, ["Misdreavus"] = {dark}, ["Wobbuffet"] = {enigma}, ["Girafarig"] = {enigma}, ["Pineco"] = {coccon}, ["Forretress"] = {coccon}, ["Gligar"] = {dark, heart}, ["Steelix"] = {earth, rock}, ["Snubbull"] = {heart}, ["Granbull"] = {heart}, ["Qwilfish"] = {water}, ["Shuckle"] = {earth}, ["Heracross"] = {coccon}, ["Teddiursa"] = {heart}, ["Ursaring"] = {heart, dark}, ["Slugma"] = {fire}, ["Magcargo"] = {fire}, ["Swinub"] = {ice, earth}, ["Piloswine"] = {ice, earth}, ["Corsola"] = {water}, ["Remoraid"] = {water}, ["Octillery"] = {water}, ["Delibird"] = {ice, heart}, ["Mantine"] = {water}, ["Skarmory"] = {heart}, ["Houndour"] = {fire, dark}, ["Houndoom"] = {fire, dark}, ["Kingdra"] = {water, crystal}, ["Phanpy"] = {earth}, ["Donphan"] = {earth}, ["porygon2"] = {enigma}, ["Stantler"] = {heart}, ["Smeargle"] = {heart}, ["Tyrogue"] = {punch}, ["Hitmontop"] = {punch}, ["Smoochum"] = {ice, enigma}, ["Elekid"] = {thunder}, ["Magby"] = {fire}, ["Miltank"] = {heart}, ["Blissey"] = {heart}, ["Raikou"] = {thunder}, ["Entei"] = {fire}, ["Suicune"] = {water}, ["Larvitar"] = {earth, dark}, ["Pupitar"] = {earth, dark}, ["Tyranitar"] = {earth, dark}, ["Lugia"] = {enigma, water}, ["Ho-oh"] = {enigma, fire}, ["Celebi"] = {leaf, enigma}} function doRestoreBoostMachine(cid, b_pos, p_pos, s_pos, msg, msg2) doSendAnimatedText(b_pos, "DONE.", 215) if isCreature(cid) then doCreatureSetNoMove(cid, false) doPlayerSendTextMessage(cid, 27, msg) doPlayerSendTextMessage(cid, 27, msg2) end local ball_s = getTileItemById(p_pos, ballslot_run) doTransformItem(ball_s.uid, ballslot) local stne_s = getTileItemById(s_pos, stoneslot_run) doTransformItem(stne_s.uid, stoneslot) local butn_s = getTileItemById(b_pos, button_run) doTransformItem(butn_s.uid, button) end local stones_required = { -- custo base de stones para boostar [heart] = 1, [leaf] = 1, [water] = 1, [venom] = 1, [thunder] = 1, [rock] = 1, [punch] = 1, [fire] = 1, [coccon] = 1, [crystal] = 1, [dark] = 1, [earth] = 1, [enigma] = 1, [ice] = 1, } local stone_increase = { -- a cada quantos boosts irá aumentar o custo de stones [heart] = 3, [leaf] = 3, [water] = 3, [venom] = 4, [thunder] = 4, [rock] = 3, [punch] = 4, [fire] = 3, [coccon] = 2, [crystal] = 15, [dark] = 4, [earth] = 4, [enigma] = 4, [ice] = 4, } function onUse(cid, item, topos, item2, frompos) if isRunning(item.itemid) then doPlayerSendCancel(cid, "Wait until boosting finishes.") return true end if item.itemid == button then local pbpos = topos pbpos.x = pbpos.x + 1 local ball_slot = getTileItemById(pbpos, ballslot) local myball = getContainerItem(ball_slot.uid, 0) if myball.uid <= 0 or getItemWeight(myball.uid) == 0 then doPlayerSendCancel(cid, "You need to put a pokeball in the ball slot.") return true end local pokemon = getItemAttribute(myball.uid, "poke") local boost = getItemAttribute(myball.uid, "boost") or 0 if boost >= 50 then doPlayerSendCancel(cid, "Your pokemon is already at maximum boost.") return true end local stnpos = pbpos stnpos.x = stnpos.x - 2 local stone_slot = getTileItemById(stnpos, stoneslot) local stone = getContainerItem(stone_slot.uid, 0) if stone.uid <= 0 then doPlayerSendCancel(cid, "You need to put a stone in the stone slot.") return true end if not isStone(stone.itemid) then doPlayerSendCancel(cid, "Please, put only stones in the stone slot.") return true end if not isInArray(boost_stones[pokemon], stone.itemid) then local cancelstr = "Sorry, you are not using the correct stone." if #boost_stones[pokemon] > 1 then local stonesused = "" cancelstr = cancelstr.." This pokemon needs " for su = 1, #boost_stones[pokemon] do local n = doCorrectString(getItemNameById(boost_stones[pokemon][su])) if su == #boost_stones[pokemon] then stonesused = stonesused.." or "..getArticle(n).." "..n.."" elseif su == 1 then stonesused = stonesused..""..getArticle(n).." "..n.."" else stonesused = stonesused..", "..n.."" end end cancelstr = cancelstr..""..stonesused.." to be boosted." else cancelstr = cancelstr.." This pokemon needs a "..doCorrectString(getItemNameById(boost_stones[pokemon][1])).." to be boosted." end doPlayerSendCancel(cid, cancelstr) return true end local removeStones = 0 local extraStones = math.floor(boost / stone_increase[stone.itemid]) local required_stones = stones_required[stone.itemid] + extraStones local boosts = 0 for a = 0, getContainerSize(stone_slot.uid) - 1 do local it = getContainerItem(stone_slot.uid, a) if it.uid > 0 then if not isStone(it.itemid) then doPlayerSendCancel(cid, "Please, put only stones in the stone slot.") return true end if it.itemid ~= stone.itemid then doPlayerSendCancel(cid, "Please, put only one type of stone in the stone slot.") return true end if required_stones > 0 then required_stones = required_stones - 1 if required_stones <= 0 then boosts = boosts + 1 removeStones = removeStones + stones_required[stone.itemid] + extraStones if boost + boosts <= 49 then extraStones = math.floor((boost + boosts) / stone_increase[stone.itemid]) required_stones = stones_required[stone.itemid] + extraStones end end end end end if required_stones > 0 and boosts == 0 then doPlayerSendCancel(cid, "You need more stones to boost this pokemon.") return true end for b = 1, removeStones do doRemoveItem(getContainerItem(stone_slot.uid, 0).uid, 1) end doSetItemAttribute(myball.uid, "boost", boost + boosts) local msg = "Your "..getPokeballName(myball.uid).." has been boosted!" local msg2 = "• Boost: "..(boost + boosts).." (+"..boosts..")" local downpos = getThingPos(cid) downpos.y = downpos.y + 1 local mypos = getThingPos(cid) doTeleportThing(cid, downpos, false) doTeleportThing(cid, mypos, false) doTransformItem(ball_slot.uid, ballslot_run) doTransformItem(stone_slot.uid, stoneslot_run) doTransformItem(item.uid, button_run) doCreatureSetNoMove(cid, true) doCreatureAddCondition(cid, boostcondition) addEvent(doRestoreBoostMachine, 3000, cid, getThingPos(item.uid), getThingPos(ball_slot.uid), getThingPos(stone_slot.uid), msg, msg2) return true end end
-
Gente do céu...Acabei de criar minha acc no xtibia e ñ sei se é a area correta.... mais eu queria saber como auento o maximo de level no poketibia dos pokemons... Ele ta no level 100 e queria aumentar para 300 por favor respondam!
-
Olá tibianos #Vou postar para voce uma magia com print . #;Magia: Exevo Rush ( Sorcerer e Druid ) Level +400 #Vá Em seuot/data/spells/scripts/attack Copie uma Magia e nome-ie de rush Bom Depois de criar a pasta apague tudo e cole isso: local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, 53) setAttackFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 7, 12) local 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 area = createCombatArea(arr) setCombatArea(combat, area) function onCastSpell(cid, var) return doCombat(cid, combat, var) end ___ Depois volte para spells abra a pasta spells.xml, e cole isso embaixo de uma magia: <instant name="Rush" words="exevo rush" lvl="400" mana="1200" prem="1" range="10" blockwalls="1" exhaustion="1000" needlearn="0" event="script" value="attack/rush.lua"> <vocation id="1"/> <vocation id="5"/> <vocation id="2"/> <vocation id="6"/> </instant> ____ ________ Bom e isso pessoal se voce gostou da +REP Se tiver algum bug comente embaixo.
-
Bom, queria ajuda de vcs em uma scripts que faça mostrar o tempo q falta para tempo da exp pot acabar. scripts que uso esse : data, Actions, scripts. data, actions e actions.xml: PORFAVOR ME AJUDEM AE ^^
-
Fala XTibianos, eu estou com um projeto, de um otserver 8.6, mysql, XAMPP, site etc, mas me deparei com um probleminha enquanto eu instala o sistema vip, o que eu instalei foi esse: http://www.xtibia.com/forum/topic/136543-vip-system-by-account-v10/ , Vip System por Account By Kydrai. O problema é q a configuração do gesior, está para 0.3.4 e o meu é 0.3.8, será que alguem conseguiria alterar para 0.3.8 ? Obrigado ae, ( Rep+ ai quem ajudar )
-
NPCDEPALADIN NPCDEKNIGHT NPCDEMAGES
-
Ollaa Pessoal Sou Novo Akee Bom né Euu To precisando Muito Mesmo Do Comando !vida Quer Mostra A sua Atual E a Total de Vida que o Seu Personagem Tem Mais Eu Vi Tantos Tópicos Mais Nem um Dava certo.. To Querendo Muito Dessa Scripts Pf Quem Puda Me ajudaa Ficarei Muito Gratoo Rep+ Pelo Scripts Olha o Meu como é MAus Não Funfoou ;( oque tem de errado Nisso ??? AJuda PLx e me Desculpa se eu To Na Sessão errada ;(
-
Pet system por itens Dexa eu explica, o player pega o iten de id [xxxx] clica com o botao direito em cima e pan, aparece o pet. -O pet tem que subir level, ml, skills tal. -Nome do dono ao lado exemplo: Xtibiano's Dragon(playername 's monstername) se nao for posivel dese jeito pode ser "Pet Dragon " mesmo. -Para tirar o pet clicar em cima do iten mesmo. -Para curar o pet usar uma pot id [xxxx] para curar, ai coloca aquele jeito la de nao aparecer a maozinha so clica na pot como food ai o pet se cura. Agradeço desde ja !!
-
- pet system
- scripts
- (e 3 mais)
-
Ola, eu preciso de ajuda para fazer o script de uma nova magia pra uma classe que estou testando no meu server. Seguinte, a classe é um Assassin e a intenção e que na magia ele de um teleport para as costas de seu target e desfira um dano parecido com exori gran. Não sei se isso é possível mas agradeceria se me ajudassem. Desculpas antecipadas se já existe algo do tipo postado. Sei que sou pouco ativo no fórum, é que eu estou aprendendo sobre logica de programação e praticando com Tibia e só agora comecei a mexer em servidores
- 7 respostas
-
- scripts
- teleport assassin
- (e 3 mais)