Ir para conteúdo

Pesquisar na Comunidade

Mostrando resultados para as tags ''action''.

  • Pesquisar por Tags

    Digite tags separadas por vírgulas
  • Pesquisar por Autor

Tipo de Conteúdo


Fóruns

  • xTibia - Notícias e Suporte
    • Regras
    • Noticias
    • Soluções
    • Projetos Patrocinados
    • Tutoriais para Iniciantes
    • Imprensa
  • OTServ
    • Notícias e Debates
    • OTServlist
    • Downloads
    • Recursos
    • Suporte
    • Pedidos
    • Show-Off
    • Tutoriais
  • OFF-Topic
    • Barzinho do Éks
    • Design
    • Informática

Encontrar resultados em...

Encontrar resultados que contenham...


Data de Criação

  • Início

    FIM


Data de Atualização

  • Início

    FIM


Filtrar pelo número de...

Data de Registro

  • Início

    FIM


Grupo


Sou

  1. eae Galera Eu Vejo Muitos Garotos querendo A Scripts Do Hirashin Kunai Que Nao Passe Por cima Da Agua E Etc Hoje Eu vi um Scripts porem estava passando entao eu Reditei o Scripts Nao sei quem Crio Mas Editei E Deixei Assim Em Seu Actions Scripts Copie um Arquivo lua e renomei para Hiraishin.lua e cole Isso Dentro function onUse(cid, item, fromPosition, itemEx, toPosition) local pos = fromPosition local aqui = getPlayerPosition(cid) local vocs = {150, 300, 562, 563, 564, 565, 566, 567, 568} local agua = {4610, 4612, 4611, 4664, 4613, 4666, 4646, 4654, 4609, 4665, 4608, 4625, 4665, 4666, 4820, 4821, 4822, 4823, 4824, 4825, 4645} local parede = {1030, 1029, 1028, 1032, 1034, 1033, 873, 919, 874, 1037, 4472, 4475, 4471, 3388, 3363, 3398, 3408, 3417, 3420, 3407, 3368, 2701, 5130} local pedra = {874, 919, 873, 2784, 2778, 3330, 4471, 4475, 4473, 4472, 4474, 4468, 4478, 4469, 4470, 4479} if getDistanceBetween(aqui, toPosition) >= 4 then return doPlayerSendTextMessage(cid, 27, "Não pode.") elseif(not(isSightClear(aqui, toPosition, 1))) then return doPlayerSendTextMessage(cid, 27, "Isso E Impossivel.") elseif(getTilePzInfo(aqui)) then return doPlayerSendCancel(cid, "voce nao pode usar quando estiver em protect zone.") elseif(isInArray(agua, itemEx.itemid)) then return doPlayerSendTextMessage(cid, 27, "voce nao pode usar em agua") elseif(isInArray(parede, itemEx.itemid)) then return doPlayerSendTextMessage(cid, 27, "voce nao pode usar em paredes") elseif(isInArray(pedra, itemEx.itemid)) then return doPlayerSendTextMessage(cid, 27, "voce nao pode usar em pedras") elseif(not(isInArray(vocs, getPlayerVocation(cid)))) then return doPlayerSendTextMessage(cid, 27, "Desculpe Apenas Vocacao Minato Para Usar.") end if(doTeleportThing(cid, toPosition, false)) then doSendMagicEffect(pos, 252) doSendMagicEffect(toPosition, 252) end return doPlayerSendCancel(cid, "Desculpe Nao Foi Possivel.") end e em Actions.xml Se coloque <action itemid="7382" event="script" value="hiraishin.lua" allowfaruse="1"/> Caso Nao saiba Mudar a Vocation local vocs = {150, 300, 562, 563, 564, 565, 566, 567, 568} So Colocar o Id Da sua vocation Do Minato Ateciosamente, Luan Mello
  2. quando vou criar account manage aparece a seguinte mensagem meu configure.lua esta a sim account pelo site também não esta pegando quando crio account e coloco dis senha incorreta
  3. galera estou com um problema fiz um tipo de "kawarimi" ele teleporta para onde o player usar o use ! porem se o player da use na parede o player vai até a parede, tem como colocar para ele nao atravessar paredes, e portas? function onUse(cid, item, frompos, item2, topos, item3) local pos = getThingPos(item2.uid) local effect = 2 ------Coloque aki o efeito que saira quando usar o item-------- local time = 40 -- tempo em segundos. local itemId = 2554 -- id do item --[[ o mesmo da tag ]]-- local pos1 = getCreaturePosition(cid) if getTilePzInfo(getCreaturePosition(cid)) then return doPlayerSendCancel(cid, "O item nao tem poder em Protection Zones.") end if getDistanceBetween(pos1, pos) <= 6 then if getPlayerSlotItem(cid, 9).itemid == itemId or getPlayerSlotItem(cid, 10).itemid == itemId then if getPlayerStorageValue(cid, 1239870) - os.time() <= 0 then doTeleportThing(cid, pos, false) doSendMagicEffect(pos, effect) setPlayerStorageValue(cid, 1239870, os.time()+time) else doPlayerSendCancel(cid, "Você só pode usar esse item a cada "..time.." segundos!") end else doPlayerSendCancel(cid, "Você só pode usar o item "..getItemNameById(itemId).." estiver equipado na mão.") end else doPlayerSendCancel(cid, "Você só pode usar esse item a 3 sqm longe de você") end return true end
  4. galera to precissando de uma action que ao passar nela voce ganha exemplo 4 items porem so ganha 1 x se passar de novo nao acontece nada pf agradeço a todos que me ajudarem rep ++ S2
  5. exemplo queria colocar ao usar uma exemplo uma runa ela contecesse nela exemplo para o player automaticamente usar o talkaction exemplo eu uso o action e ele sozinho fala !sit seroia para faser uma lista de buffs igual dbz upa up
  6. Quando abro uma quest door ou magic door, aparece esse erro na janela do servidor. Ajuda por favoor!! Meu host ta rodadando e o server ta parado por causa deste erro. Exemplo: Eu no lvl 100 abro uma porta de lvl 100, após abrir o char n anda pro sqm dela, ou seja, ela fica aberta, podendo outro char assim, lvl mais baixo entrar nela. [31/3/2014 16:11:35] [Error - Action Interface] [31/3/2014 16:11:35] data/actions/scripts/other/doors.lua:onUse [31/3/2014 16:11:35] Description: [31/3/2014 16:11:35] data/lib/050-function2.lua:10: bad argument #1 to 'ipairs' (table expected, got nil) [31/3/2014 16:11:35] stack traceback: [31/3/2014 16:11:35] [C]: in function 'ipairs' [31/3/2014 16:11:35] data/lib/050-function2.lua:10: in function 'isInArray' [31/3/2014 16:11:35] data/actions/scripts/other/doors.lua:86: in function <data/actions/scripts/other/doors.lua:11>
  7. GALERA PRECISSO DE AJUDA QUERO DEIXAR ESSE ITEM O SEGUINTE SE EU USAR EM ALGUEM ELE COPIA MANA, AGORA SE EU USAR ELE EM MIN ELE ACONTECE A FUNÇAO DOTRANSFORM ITEM ... ! POREM NAO ESTOU CONSEGUINDO ME AJUDEM, ! rep++ function onUse(cid, item, fromPosition, itemEx, toPosition) local ids = {13,14} --Coloque o ID das vocations nesta tabela. local storage = 1234 -- storage local time = 60 -- tempo em minutos local mana = getCreatureMana(itemEx.uid) if getTilePzInfo(getCreaturePosition(cid)) or getTilePzInfo(getCreaturePosition(itemEx.uid)) then return false end if isInArray(ids, getPlayerVocation(cid)) then if getPlayerStorageValue(cid, storage) - os.time() <= 0 then if isPlayer(itemEx.uid) then doCreatureAddMana(itemEx.uid, -mana) doCreatureAddMana(cid, mana) doSendMagicEffect(getCreaturePosition(cid), 11) doSendMagicEffect(getCreaturePosition(itemEx.uid), 12) setPlayerStorageValue(cid, storage, os.time()+1*60) else doPlayerSendCancel(cid, "Você só pode usar o item em players.") end else doPlayerSendCancel(cid, "Você só pode usar o item a cada "..time.." segundos.") end return true end end function onUse(cid, item, frompos, item2, topos) local item1 = 2553 local health = 50 -- % local mana = 50 -- % local h = (getCreatureHealth(cid))*(health)/(100) local m = (getCreatureMana(cid))*(mana)/(100) doCreatureAddHealth(cid, -h) doCreatureAddMana(cid, -m) doTransformItem(item.uid, item1) doCreatureSay(cid, 'Mangekyou Sharingan!', TALKTYPE_ORANGE_1) end return true end upa
  8. Bom, fiz esse script para sanar uma dúvida de um membro da comunidade, e quero compartilhar com vocês, acho que não chega a ser um tutorial, mas está bem explicado e espero que usem =) Veja: -Antes de mais nada, entre no seu RME e faça a área da quest, depois modifique as coordenadas no script segundo seu mapa. - Lembre-se de colocar um tile diferente para ajudar o player a saber a posição correta de onde estar, e de por a alavanca no lugar correto. - Adicione mais posições para nascer os monstros, quanto mais posições mais dinamico fica sua quest. Em Actions/scripts, adicione um novo documento .lua com nome que desejar, e ponha isso dentro.. local TeleportInPos = { x = 74, y = 111, z = 10} -- Posição para onde os players serão teleportados local LeverPos = { x = 90, y = 110, z = 10} -- Posição da Alavanca local timeToRemove = 40 -- Time before quest reset local tile1Pos = { x = 80, y = 80, z = 8 } -- lugar que o player deverá estar para puxar a alavanca local str = 2000 -- modifique para um storage valido no seu server local config = { { x = 19, y = 8, z = 7 }, { x = 20, y = 10, z = 7 }, { x = 23, y = 12, z = 7 }, { x = 22, y = 11, z = 7 }, { x = 28, y = 20, z = 7 } } function onUse(cid, item, frompos, item2, topos) if(getCreaturePosition(cid) == tile1Pos) then if(getPlayerStorageValue(uid, str) == 0) then doTeleportThing(cid, TeleportInPos) doSendMagicEffect(TeleportInPos, CONST_ME_TELEPORT) doPlayerSendTextMessage(cid,22,"Agora começará sua quest. Bom sorte! ") addEvent(wave1(cid), 10) addEvent(wave2(cid), 10) addEvent(wave10(cid), 1) else doPlayerSendTextMessage(cid,22,"Você não está na posição correta, ou já fez essa quest! ") -- Mensagem caso o char n esteja no tile correto end end end function wave1(cid) doCreateMonster(Dragon, config[math.random(1, #config)]) doCreateMonster(Demodras, config[math.random(1, #config)]) end function wave2(cid) doCreateMonster(Hydra, config[math.random(1, #config)]) doCreateMonster(Spider, config[math.random(1, #config)]) end function wave10(cid) doCreateMonster(TheBoss, config[math.random(1, #config)]) end Então, embaixo de: function wave2(cid) doCreateMonster(Hydra, config[math.random(1, #config)]) doCreateMonster(Spider, config[math.random(1, #config)]) end Adicione quantas waves quiser, seguindo o modelo: function waveN(cid) doCreateMonster(MONSTRO, config[math.random(1, #config)]) doCreateMonster(MONSTRO, config[math.random(1, #config)]) end n = numero da wave MONSTRO = nome do monstro Depois, em baixo de: addEvent(wave2(cid), 10) Adicione quantas waves vc tiver, seguindo o modelo: addEvent(waveN(cid), 10) Onde n = numero da wave Feito isso tudo, bora configurar para iniciar o evento... Em actions.xml adicione a linha: <action uniqueid="1026" script="nomedoarquivo.lua"/> Mude o nome do arquivo, e no RME coloque o uniqueid 1026 na sua alavanca, que deverá estar no lugar correto também. Depois disso, devemos modificar o arquivo do monstro ( The Boss). Para isso continue: Em Creaturescript/scripts adicione um arquivo com nome de sua escolha .lua e coloque isso dentro: function onDeath(cid, corpse, killer) local Pos = {x = 340, y = 840, z = 15} -- posicao para onde o player irá (sala de premios) local monstName = "TheBoss" -- nome do monstro if isMonster(cid) then if string.lower(getCreatureName(cid)) == string.lower(monstName) then doTeleportThing(killer[1], Pos) end end return TRUE end Modifique apenas a posição para a qual o player será teleportado e o nome do monstro boss. Feito isso, volte para creaturescripts.xml e adicione: <event type="death" name="Teleportquest" event="script" value="quest1.lua"/> Modificando o nome do arquivo. Estamos quase acabando ! rsrs Vá para a pasta monster e procure pelo arquivo do monstro escolhido para ser o boss, no meu caso escolhi o TheBoss, dentro do arquivo do boss, coloque: <script> <event name="Teleportquest"/> </script> E pronto !! A quest está feita. EXTRA Agora, basta ir em actions/scripts e criar um novo arquivo para o bau da quest com qualquer nome .lua e adicionar dentro: function onUse(cid, item, frompos, item2, topos) if item.uid == 2001 then -- mude para um valor que será colocado em uniqueid no bau queststatus = getPlayerStorageValue(cid,2000) -- mude para o numero da sua storage if queststatus == -1 or queststatus == 0 then doPlayerSendTextMessage(cid,22,"Você Achou Um Bolo De 100k") item_uid = doPlayerAddItem(cid,2160,10) -- mude o premio! 2160 = Crystal Coin e 10 = quantidade. setPlayerStorageValue(cid,2000,1) -- mude apenas o 2000 para o valor da sua storage else doPlayerSendTextMessage(cid,22,"Você já fez esta quest! ") end end return true end Faça as modificações que achar necessário. Depois em actions.xml adicione: <action uniqueid="2001" script="bau1.lua"/> No RME, agora no baú, adicione a uniqueid, no meu caso 2001. Bom, espero que goste e utilize em seu servidor!! Se possivel, +REP Utilizei como base Script do Vodkart para o teleport. ( acho que é assim que escreve o nick dele ). -GstavoLiber
  9. Olá boa noite, eu preciso de você para me ajudar com esta action, quando você ativar a alavanca, como você pode ver as portas também são removidos function onUse(cid, item, fromPosition, itemEx, toPosition) local monstros ={ {{x = 1101, y = 946, z = 7}, "Dragon"}, {{x = 1104, y = 946, z = 7}, "Dragon"}, {{x = 1108, y = 944, z = 7}, "Dragon"}, {{x = 1110, y = 943, z = 7}, "Dragon"}, {{x = 1102, y = 951, z = 7}, "Dragon"}, {{x = 1102, y = 953, z = 7}, "Dragon"}, {{x = 1115, y = 951, z = 7}, "Dragon"}, {{x = 1115, y = 955, z = 7}, "Dragon"}, {{x = 1115, y = 949, z = 7}, "Dragon"}, {{x = 1114, y = 948, z = 7}, "Dragon"}, {{x = 1118, y = 946, z = 7}, "Dragon"}, {{x = 1112, y = 948, z = 7}, "Dragon Lord"}, {{x = 1112, y = 949, z = 7}, "Dragon Lord"}, {{x = 1109, y = 948, z = 7}, "Dragon Lord"}, {{x = 1115, y = 954, z = 7}, "Dragon Lord"}, {{x = 1108, y = 954, z = 7}, "Dragon Lord"}, {{x = 1104, y = 955, z = 7}, "Dragon Lord"}, {{x = 1119, y = 949, z = 7}, "Dragon Lord"}, {{x = 1114, y = 946, z = 7}, "Dragon Lord"}, {{x = 1112, y = 955, z = 7}, "Dragon Lord"}, {{x = 1119, y = 954, z = 7}, "Dragon Lord"}, {{x = 1114, y = 948, z = 7}, "Dragon Lord"}, {{x = 1110, y = 947, z = 7}, "Dragon Lord Hatchling"}, {{x = 1116, y = 946, z = 7}, "Dragon Lord Hatchling"}, {{x = 1118, y = 945, z = 7}, "Dragon Lord Hatchling"}, {{x = 1119, y = 951, z = 7}, "Dragon Lord Hatchling"} } if SevenFloor() == false then return doPlayerSendCancel(cid, "sorry already have monster.") end for _, summon in pairs(monstros) do doCreateMonster(summon[2], summon[1]) end doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945) return true end function SevenFloor() local fromPosition,toPosition = {x = 1100, y = 944, z = 7},{x = 1120, y = 956, z = 7} -- começo e final da ára for x = fromPosition.x, toPosition.x do for y = fromPosition.y, toPosition.y do local pos = {x=x, y=y, z=fromPosition.z} local m = getTopCreature(pos).uid if m ~= 0 and isMonster(m) then return false end doCleanTile(pos) end end return true end antes de puxar a alavanca: ao puxar a alavanca , Também as portas são removidos. bumb
  10. Queria que ao atingir tal level usa-se uma talkaction sozinho, vou fazer isso para usar o !maxlevel, toda hora que atingir o level maximo.
  11. galera eu precissava adicionar nessa action que quando eu usa-la tire 50 % de meu e 50 % de minha mana agradeço a voceS !!!!desde ja rep ++ function onUse(cid, item, frompos, item2, topos) local item1 = 2160 doTransformItem(item.uid, item1) doCreatureSay(cid, 'HAHAI', TALKTYPE_ORANGE_1) return true end
  12. galera presiso de um action para elementos tipo o do nto ultimate mais n consigo colocar se alguem poder me ajudar agradeço desde jaa.... e assim o elemento proteje contra atakes tipo katon,suiton,doton,fuuton.... se vc usa um jutsu ipo katon em um player e esse player estiver usando um elemento suiton ou fuuton seu atake n fara muito efeito(NTO ULTIMATE).. mas se n puder ser assim eu queria pelomenos que eles n sumicem porque tem um tal de charge la que faz o elemento sumir eu tentei tirar mais bugo os items queria que o elemento n sumice pelo menos la ta assim. <item id="2164" article="a" name="element suiton"> <attribute key="weight" value="100" /> <attribute key="charges" value="20" /> <attribute key="showcharges" value="1" /> <attribute key="slotType" value="ring" /> <attribute key="absorbPercentAll" value="30" /> <attribute key="showattributes" value="1" /> </item> <item id="2165" article="a" name="element fuuton"> <attribute key="weight" value="100" /> <attribute key="charges" value="20" /> <attribute key="showcharges" value="1" /> <attribute key="slotType" value="ring" /> <attribute key="absorbPercentAll" value="30" /> <attribute key="showattributes" value="1" /> </item> <item id="2166" article="a" name="element nature"> <attribute key="weight" value="100" /> <attribute key="slotType" value="ring" /> <attribute key="charges" value="20" /> <attribute key="showcharges" value="1" /> <attribute key="absorbPercentAll" value="30" /> <attribute key="showattributes" value="1" /> </item> <item id="2167" article="an" name="element doton"> <attribute key="weight" value="100" /> <attribute key="slotType" value="ring" /> <attribute key="charges" value="20" /> <attribute key="showcharges" value="1" /> <attribute key="absorbPercentAll" value="30" /> <attribute key="showattributes" value="1" /> </item> <item id="2168" article="a" name="element raiton"> <attribute key="weight" value="100" /> <attribute key="charges" value="20" /> <attribute key="showcharges" value="1" /> <attribute key="slotType" value="ring" /> <attribute key="absorbPercentAll" value="30" /> <attribute key="showattributes" value="1" /> </item> quem puder me ajudar eu agradeço preciso disso o mais rapido possivel pq esse trabalhon e pra min e sim pra galera do XT...
  13. Eai galera to com um problema aqui e nao consigo resolver o erro e o seguinte eu catei o starter do pokemon centurion v8 no Pda By bolz... e da erro quando eu vou pegar o premio nao aparece nada Erro: [29/03/2014 17:07:20] [Error - MoveEvents Interface] [29/03/2014 17:07:20] data/movements/scripts/pokeinicial.lua:onStepIn [29/03/2014 17:07:20] Description: [29/03/2014 17:07:20] data/movements/scripts/pokeinicial.lua:26: attempt to call global 'getPokemonStatus' (a nil value) [29/03/2014 17:07:20] stack traceback: [29/03/2014 17:07:20] data/movements/scripts/pokeinicial.lua:26: in function <data/movements/scripts/pokeinicial.lua:18> Starter: pk = { [8696] = {name="Piplup"}, [8697] = {name="Chimchar"}, [8698] = {name="Turtwig"}, [8699] = {name="Squirtle"}, [8700] = {name="Charmander"}, [8701] = {name="Bulbasaur"}, [8702] = {name="Totodile"}, [8703] = {name="Cyndaquil"}, [8704] = {name="Chikorita"}, [8705] = {name="Mudkip"}, [8706] = {name="Torchic"}, [8707] = {name="Treecko"}, } postemple = {x = 1039, y = 1032, z = 7} function onStepIn(cid, item, position, fromPosition) local pokemon = pk[item.actionid].name local plevel = 5 local level = 1.5 local extrastr = 4 local btype = "normal" local gender = getRandomGenderByName(pokemon) local mypoke = getPokemonStatus(pokemon) if not mypoke then return true end local offense = mypoke.off * level * extrastr local defense = mypoke.def * level * extrastr local speed = mypoke.agi * level * extrastr local vit = mypoke.vit * level * extrastr local spatk = mypoke.spatk * level * extrastr local happy = 180 local leveltable = getPokemonExperienceTable(pokemon) local item = doCreateItemEx(2219) doItemSetAttribute(item, "poke", pokemon) doItemSetAttribute(item, "hp", 1) doItemSetAttribute(item, "level", plevel) doItemSetAttribute(item, "exp", leveltable[plevel]) doItemSetAttribute(item, "nextlevelexp", leveltable[plevel+1] - leveltable[plevel]) doItemSetAttribute(item, "offense", offense) doItemSetAttribute(item, "defense", defense) doItemSetAttribute(item, "speed", speed) doItemSetAttribute(item, "vitality", vit) doItemSetAttribute(item, "specialattack", spatk) doItemSetAttribute(item, "happy", happy) doItemSetAttribute(item, "gender", gender) doItemSetAttribute(item, "description", "Contains a "..pokemon..".") doItemSetAttribute(item, "fakedesc", "Contains a "..pokemon..".") doItemSetAttribute(item, "firstpoke", getCreatureName(cid)) doPlayerAddItemEx(cid, item, true) doTransformItem(item, pokeballs[btype].on) doPlayerSendTextMessage(cid, 27, "You got your first pokemon! You also received some pokeballs to help you in your way.") doPlayerAddItem(cid, 2152, 100) doPlayerAddItem(cid, 12344, 3) doPlayerAddItem(cid, 2392, 20) doPlayerAddItem(cid, 12345, 20) doPlayerSendTextMessage(cid, 27, "Don\'t forget to use your pokedex on every undiscovered pokemon!") if #getCreatureSummons(cid) >= 1 then doTeleportThing(getCreatureSummons(cid)[1], postemple,false) end doTeleportThing(cid, postemple,false) end Tag: <movevent type="StepIn" actionid="8696;8697;8698;8699;8700;8701;8702;8703;8704;8705;8706;8707;" event="script" value="pokeinicial.lua"/>
  14. O system item summon funciona assim: Ao dar use em 'X' item, no caso eu use o item : , Você summona uma criatura aleatoriamente. E ao dar use Novamente você remove a criatura . vá em data / actions / scripts... Crie um arquivo.lua e cole isso dentro : local monsters = {"Demon", "Rat", "Orc", "Medusa", "Dragon", "Ferumbras"} -- todos os monsters que podem ser summonados. local time = 1 -- tempo em minutos para usar o item novamente. local storage = 10923 -- storage qualquer, que não esteja em uso. function onUse(cid, Item, fromPosition, itemEx, toPosition) local pos = getCreaturePosition(cid) local summon = getCreatureSummons(cid) if (table.maxn(summon) < 1) then if getPlayerStorageValue(cid, storage) - os.time() <= 0 then local mst = monsters[math.random(#monsters)] doConvinceCreature(cid, doCreateMonster(monsters[math.random(#monsters)], pos)) doPlayerSendTextMessage(cid, 22, "Você summonou uma Criatura!") setPlayerStorageValue(cid, storage, os.time() + time*60) for _, pid in ipairs (getCreatureSummons(cid)) do doSendMagicEffect(getCreaturePosition(pid), 15) doCreatureSay(pid, "Vou Te Ajudar", TALKTYPE_ORANGE_1) end else doPlayerSendCancel(cid, "Você só pode usar esse item a cada "..time.." Minuto(s).") end elseif (table.maxn(summon) > 0) then for _, pid in ipairs(getCreatureSummons(cid)) do doCreatureSay(pid, "Tchau", TALKTYPE_ORANGE_1) doSendMagicEffect(getCreaturePosition(pid), 2) doRemoveCreature(pid) end doPlayerSendTextMessage(cid, 22, "Você Removeu A Criatura.") end return true end obs: tudo que você deve configurar , está explicado no script. Agora vá em data / actions / actions.xml... e coloque a tag : <action itemid="4870" script="Nome do Arquivo.lua" /> -- itemid = Id do item, no caso ta o item que mostrei no inicio. Demonstração em Imagens : Simples, porém útil . Sem sono e no tédio saiu isso Abraços.
  15. Antes de mais nada quero deixar claro q os Créditos são 100% Meus! Introdução: Você por exemplo é um elite knight High LVL e vai ao npc,compra umas 2000 mana potions e sai MUITO bem equipado para ficar horas na hunt,e conseguir boa exp e lucros,mas quando vc volta,sua bp esta LOTADA de vials vazios das potions,e vc n sabe oq fazer com todos esses milhares de vials??? Seus problemas acabaram,com essa função você você pode clicar em uma estatua estrategicamente posicionada e dar um simples use nela,apartir do momento q vc executa essa ação,TODOS OS SEUS VIALS serão vendidos ao mesmo tempo,esvaziando sua bp na mesma HORA! OBS:essa função é programada para vender até 1000 vials de uma só vez,se tiver mais de 1000 é só dar um click duplo,ex vamos supor q vc tenha 3000 vials,vc clica 3x e vende instantaneamente todos os 3000 vials. Outra OBS:a função é programada para vender TODOS os tipos de vials,n apenas mana potions,mas strongs,greats e etc,cada um com um diferente preço -------------------------Fim da Explicação------------------------- Abra a pasta data/actions/scripts e crie um arquivo.lua com o nome "sellvials.lua" e cole a função function onUse(cid, item, fromPosition, item2, toPosition) if getPlayerItemCount(cid,7636) >= 100 then doSendMagicEffect(getPlayerPosition(cid), 2) doPlayerRemoveItem(cid, 7636, 100) doPlayerAddItem(cid, 2152, 10) end if getPlayerItemCount(cid,7636) >= 100 then doSendMagicEffect(getPlayerPosition(cid), 2) doPlayerRemoveItem(cid, 7636, 100) doPlayerAddItem(cid, 2152, 10) end if getPlayerItemCount(cid,7636) >= 100 then doSendMagicEffect(getPlayerPosition(cid), 2) doPlayerRemoveItem(cid, 7636, 100) doPlayerAddItem(cid, 2152, 10) end if getPlayerItemCount(cid,7636) >= 100 then doSendMagicEffect(getPlayerPosition(cid), 2) doPlayerRemoveItem(cid, 7636, 100) doPlayerAddItem(cid, 2152, 10) end if getPlayerItemCount(cid,7636) >= 100 then doSendMagicEffect(getPlayerPosition(cid), 2) doPlayerRemoveItem(cid, 7636, 100) doPlayerAddItem(cid, 2152, 10) end if getPlayerItemCount(cid,7636) >= 100 then doSendMagicEffect(getPlayerPosition(cid), 2) doPlayerRemoveItem(cid, 7636, 100) doPlayerAddItem(cid, 2152, 10) end if getPlayerItemCount(cid,7636) >= 100 then doSendMagicEffect(getPlayerPosition(cid), 2) doPlayerRemoveItem(cid, 7636, 100) doPlayerAddItem(cid, 2152, 10) end if getPlayerItemCount(cid,7636) >= 100 then doSendMagicEffect(getPlayerPosition(cid), 2) doPlayerRemoveItem(cid, 7636, 100) doPlayerAddItem(cid, 2152, 10) end if getPlayerItemCount(cid,7636) >= 100 then doSendMagicEffect(getPlayerPosition(cid), 2) doPlayerRemoveItem(cid, 7636, 100) doPlayerAddItem(cid, 2152, 10) end if getPlayerItemCount(cid,7636) >= 100 then doSendMagicEffect(getPlayerPosition(cid), 2) doPlayerRemoveItem(cid, 7636, 100) doPlayerAddItem(cid, 2152, 10) end -------------- Empty Mana Potion,Health potion ou Small health potion compra no minimo 100 e no maximo 1000! de uma vez só if getPlayerItemCount(cid,7634) >= 100 then doSendMagicEffect(getPlayerPosition(cid), 2) doPlayerRemoveItem(cid, 7634, 100) doPlayerAddItem(cid, 2152, 20) end if getPlayerItemCount(cid,7634) >= 100 then doSendMagicEffect(getPlayerPosition(cid), 2) doPlayerRemoveItem(cid, 7634, 100) doPlayerAddItem(cid, 2152, 20) end if getPlayerItemCount(cid,7634) >= 100 then doSendMagicEffect(getPlayerPosition(cid), 2) doPlayerRemoveItem(cid, 7634, 100) doPlayerAddItem(cid, 2152, 20) end if getPlayerItemCount(cid,7634) >= 100 then doSendMagicEffect(getPlayerPosition(cid), 2) doPlayerRemoveItem(cid, 7634, 100) doPlayerAddItem(cid, 2152, 20) end if getPlayerItemCount(cid,7634) >= 100 then doSendMagicEffect(getPlayerPosition(cid), 2) doPlayerRemoveItem(cid, 7634, 100) doPlayerAddItem(cid, 2152, 20) end if getPlayerItemCount(cid,7634) >= 100 then doSendMagicEffect(getPlayerPosition(cid), 2) doPlayerRemoveItem(cid, 7634, 100) doPlayerAddItem(cid, 2152, 20) end if getPlayerItemCount(cid,7634) >= 100 then doSendMagicEffect(getPlayerPosition(cid), 2) doPlayerRemoveItem(cid, 7634, 100) doPlayerAddItem(cid, 2152, 20) end if getPlayerItemCount(cid,7634) >= 100 then doSendMagicEffect(getPlayerPosition(cid), 2) doPlayerRemoveItem(cid, 7634, 100) doPlayerAddItem(cid, 2152, 20) end if getPlayerItemCount(cid,7634) >= 100 then doSendMagicEffect(getPlayerPosition(cid), 2) doPlayerRemoveItem(cid, 7634, 100) doPlayerAddItem(cid, 2152, 20) end if getPlayerItemCount(cid,7634) >= 100 then doSendMagicEffect(getPlayerPosition(cid), 2) doPlayerRemoveItem(cid, 7634, 100) doPlayerAddItem(cid, 2152, 20) end ------------------------------------------------- mesmo esquema de cima porém aqui é com Strong health ou strong mana if getPlayerItemCount(cid,7635) >= 100 then doSendMagicEffect(getPlayerPosition(cid), 2) doPlayerRemoveItem(cid, 7635, 100) doPlayerAddItem(cid, 2152, 35) end if getPlayerItemCount(cid,7635) >= 100 then doSendMagicEffect(getPlayerPosition(cid), 2) doPlayerRemoveItem(cid, 7635, 100) doPlayerAddItem(cid, 2152, 35) end if getPlayerItemCount(cid,7635) >= 100 then doSendMagicEffect(getPlayerPosition(cid), 2) doPlayerRemoveItem(cid, 7635, 100) doPlayerAddItem(cid, 2152, 35) end if getPlayerItemCount(cid,7635) >= 100 then doSendMagicEffect(getPlayerPosition(cid), 2) doPlayerRemoveItem(cid, 7635, 100) doPlayerAddItem(cid, 2152, 35) end if getPlayerItemCount(cid,7635) >= 100 then doSendMagicEffect(getPlayerPosition(cid), 2) doPlayerRemoveItem(cid, 7635, 100) doPlayerAddItem(cid, 2152, 35) end if getPlayerItemCount(cid,7635) >= 100 then doSendMagicEffect(getPlayerPosition(cid), 2) doPlayerRemoveItem(cid, 7635, 100) doPlayerAddItem(cid, 2152, 35) end if getPlayerItemCount(cid,7635) >= 100 then doSendMagicEffect(getPlayerPosition(cid), 2) doPlayerRemoveItem(cid, 7635, 100) doPlayerAddItem(cid, 2152, 35) end if getPlayerItemCount(cid,7635) >= 100 then doSendMagicEffect(getPlayerPosition(cid), 2) doPlayerRemoveItem(cid, 7635, 100) doPlayerAddItem(cid, 2152, 35) end if getPlayerItemCount(cid,7635) >= 100 then doSendMagicEffect(getPlayerPosition(cid), 2) doPlayerRemoveItem(cid, 7635, 100) doPlayerAddItem(cid, 2152, 35) end if getPlayerItemCount(cid,7635) >= 100 then doSendMagicEffect(getPlayerPosition(cid), 2) doPlayerRemoveItem(cid, 7635, 100) doPlayerAddItem(cid, 2152, 35) end ------------------------------------------------------ mesmo esquema só que para Great mana,great health ou ultimate health end feito isso vá no arquivo xml da pasta data/actions/actions.xml e cole a tag <action actionid="5141" script="sellvial" /> coloque essa action em uma estatua ou pedra,ai quando o jogador clicar nela vai acontecer oq foi explicado. Abraços ai mais uma função exclusivamente minha!
  16. Eae galera do xtibia, eu precisa de uma action que funcionaria assim, voce usa o edo pergaminho (id: 2153) em um corpo de player morto no chao (id: 6022). O pergaminho, e o corpo irão sumir, e sera adicionado outro tipo de pergaminho( id: 2154) na bp do player. PS: Apenas uma vocaçao(varios ids) irá poder usar o pergaminho no corpo de player morto. Espero que possam me ajduar, rep+!
  17. tile que ao passar voce peder 5 de mana e quando nao tiver mana perde life eu vou por num tile de agua exemplo voce vai andando e a cada sqm perde 5 de mana quando nao houver mais mana perde life . acho que é um movements agradeço a quem me ajuda s2 versao 8.54
  18. galera precissava de um sistema igual ou parecido com esse agradeçeria mt aas almas boas qe me ajuda-sem !!!!!
  19. Eu Peguei Esse Script do Vodkart,So Que Eu Queria Adicionar Uma Coisa,Quando o Tutor Foi Mutar Alguem Ele Fala./Mute Player,Tempo,Motivo Intão,Aparece Uma Msg Assim Para o Tutor,no server log em Vermelho. Você Mutou o Jogador ..... Por Tempo,Pelo Motivo: ..... E Pro Player Que Foi Mutado Aparece Isso,Você Foi Mutado Por "Aqui o Jogador Que Aplicou o Muted Nele",Por "Tempo",Pelo Motivo de: ....... obrigado Script do Vodkart
  20. galera queria transformar essa spell Em actions e que ao inves de eu ficar no target eu queria por na opção de Witch use , que funcione se eu acertar em outro player !!! ...... local newPos1 = {x = 0, y = 0, z = 0} --pos pra onde sera levado o caster da spell local newPos2 = {x = 1517, y = 417, z = 6} --pos pra onde sera levado o target local function teleport(cid, pid, pos, pos2) if isCreature(cid) then doTeleportThing(cid, getClosestFreeTile(cid, pos)) doSendMagicEffect(getPlayerPosition(cid), 30) end if isCreature(pid) then doTeleportThing(pid, getClosestFreeTile(pid, pos2 or pos)) doSendMagicEffect(getPlayerPosition(pid), 30) end end function onCastSpell(cid, var) local target = getCreatureTarget(cid) if not isCreature(target) or not isPlayer(target) then return doPlayerSendTextMessage(cid, 27, "Voce precisa selecionar um alvo para usar o Mangekyou Kamui.") end if getPlayerStorageValue(cid, 33333) < os.time () then local target = getCreatureTarget(cid) local posCid = getPlayerPosition(cid) local posTarget = getPlayerPosition(target) local tempo = 10000 -- 10s setPlayerStorageValue(cid, 33333, os.time () + 30) teleport(cid, target, newPos1, newPos2) else doPlayerSendCancel(cid, "Voce so pode usar esse jutsu daki a "..getPlayerStorageValue(cid, 33333) - os.time ().." segundos ") end return true end rep++ pra qm ajudar )); )):
  21. kttallan

    Item summon

    Opa galera eu criei um scripter para participar do OMS, porem antes de fazer a incrição queria a ajuda de vocês pra ver se tem algum bug ou se da pra melhorar o scripter pois não tenho um nivel alto de scripter. Oque o scripter fais se o player tiver o item. 12597 ele sumonarar um trols, porem ele só pode usar no lvl entre 1 a 50, eu clico no item e sumona o monster perto do player quando eu clico de volta ele remove o monster assim sendo tipo um go/back. Scripter
  22. galera estou fazendo um ot mt loco, como eu nao sei colocar para cada org começar com tal item, eu pretendo pelo movements faser um script que cada vocação que passar nele ganha "tal item" agradeço s2
  23. Eae Pessoal aki Venho Trazer pra Os garotos Que Curti Ntoultimate Porem Esse Scripts ja exist eu so fiz Edita Ele e Adiciona storage pra mostra que o player e da akatsuki quando clika no item entao Vamos La Primeiramente Voce vai em <data Actions <Scripts> Copie um Arquivo.lua e apague tudo e Cole Esse Scripts local config = { --[vocation id] = { nova voc, looktype} [1] = { 2, 603}, [10] = { 10, 611}, [30] = { 30, 566} , [40] = { 40, 603}, [50] = { 50, 587}, [60] = { 60, 543}, [70] = { 70, 597}, [80] = { 80, 576}, [90] = { 90, 590}, [100] = { 100, 580}, [110] = { 110, 551}, [120] = { 120, 584}, [130] = { 130, 556}, [140] = { 140, 594}, [150] = { 150, 588}, [180] = { 180, 573}, [200] = { 200, 606}, [210] = { 210, 571}, [220] = { 220, 646}, [230] = { 230, 602} } function onUse(cid, item, frompos, item2, topos) local voc = config[getPlayerVocation(cid)] if voc then doPlayerSetVocation(cid, voc[1]) doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Você Se Tornou um Membro Da Akatsuki!!!") local outfit = {lookType = voc[2]} doCreatureChangeOutfit(cid, outfit) doRemoveItem(item.uid, 6) setPlayerStorageValue(cid, 89745, 6) setPlayerStorageValue(cid, storageGain, 89745) else doPlayerSendCancel(cid, "Você não pode se Tornar um Membro da Akatsuki!") end return true end Em Actions.xml <action itemid="5943" script="akatsuki.lua"/> Agr Va Em Seu Creaturescripts Scripts e Procure por showvoc e apague tudo e cole esse dentro function onLook(cid, thing, position, lookDistance) if isPlayer(thing.uid) then local type = getPlayerStorageValue(thing.uid, 89745) doPlayerSetSpecialDescription(thing.uid, "\n "..(getPlayerSex(cid) == 0 and "She" or "He").." are "..(type < 0 and "Shinobi" or type == 1 and "Genin" or type == 2 and "Chunin" or type == 3 and "Jounin" or type == 6 and "Akatsuki" or type == 4 and "Anbu" or type == 5 and "Captain Anbu")) end return true end E salve Agr Toda Vez Que Voce Clika no item no caso 5943 o Morgaroth Hearb Voce vai ganha a outfit da akatsuki e Vai Fica como um Mmebro Akatsuki 13:06 You see DivineAkira (Level 312). He is a Minato He are Akatsuki. Explicando [1] = { 2, 603}, Em Azul e o Id Da voc que Tem q Estar Pra transformar No Caso E naruto Em Amarelo e A Vocation Que Ele Vai Virar Eu adicionei Experience no meu server Em Vermelho e o Id Da outfit que ele Vai Ganha Espero Ter Ajudado Ateciosamente, Luan Mello
  24. Olá galera do Éks! Venho aqui hoje postar um script para vocês! Espero que gostem! #Descrição: Quando o player clicar em um certo item (configurável), esse player receberá uma certa storage (configurável). #Dificuldade: Fácil #Testado: Não INSTALANDO Pasta do seu OT/data/actions/scripts/itemstorage.lua: http://pastebin.com/8vQHN1b9 Pasta do seu OT/data/actions/actions.xml: <action itemid="2178" event="script" value="itemstorage.lua"/> EXPLICANDO Em actions.xml, nessa parte aqui: itemid="2178" É o ID do item que será removido. E também, em itemstorage.lua, nessa parte aqui: (cid, 2178, 1) É o ID e a quantidade do item que será removido. No mesmo lugar, nessas partes aqui: (cid, 1234) E aqui: (cid, 1234, 1) É a storage que o player ganhará ao clicar no item. Créditos: Criador (não quer ser reconhecido), Thiagobji (Pedido, Tópico e Contribuição) Então é isso Galera! Espero que gostem! (y) PS: Se estiver com algum erro, ou não funcionando, peço que se possível, alguém possa corrigir o script.
×
×
  • Criar Novo...