Tudo que Felippe Reine014 postou
-
Modulos Otclient
Alguem que trabalhe com desenvolvimentos de modulos de otclient como freelance preciso de alguns novos modulos. Vou deixa o discord para contato caso alguem se interesse Felippetattoo#9630
-
Ajuda Com Alterar um Script
. Fala pessoal tudo bem com vcs? queria pedir uma ajuda em uma alteraçao de um script que tenho aki se alguem poderia me ajudar o script aficiona items ao monstro quando ele morre no corpse eu queria pedir a ajuda de alguem para alterar o script que em vez do item for adcionado ao corpse da criatura adicionar direto para a backpack do player teria como ? vou deixar o script abaixo local extra_loot = { {hasName = "dragon", items = { {id = 2152, count = 2, chance = 40000}, -- 40% {id = 2160, countMax = 4, chance = 99000} }}, {items = { {id = 2365, chance = 10000}, {id = 2392, chance = 1000} }}, } function Container:addExtraLoot(c, t) if t.hasName then local cn = c:getName():lower() local cm = t.hasName:lower() if not cn:match(cm) then return true end end for i = 1, #t.items do local count = 1 if t.items[i].count then if t.items[i].countMax then count = math.random(t.items[i].count, t.items[i].countMax) else count = t.items[i].count end else if t.items[i].countMax then count = math.random(1, t.items[i].countMax) end end if math.random(0, 100000) <= t.items[i].chance then self:addItem(t.items[i].id, count) end end end function onDeath(creature, corpse, killer, mostDamage, unjustified, mostDamage_unjustified) if not creature:isMonster() then return true end if corpse and corpse:isContainer() then for i = 1, #extra_loot do corpse:addExtraLoot(creature, extra_loot[i]) end end return true end
-
Teleport de boss com tempo.
Já conseguiu resolver se não posso te ajudar.
-
Texto da placa não reconhece dando LOOK
Vc conferiu seu itemm.otb? Já tive um erro assim abra ele no item editor e da uma conferida no id da placa vê se ta tudo certo.
-
Movements script
nao deu certo ainda brother ele ta mudadno o outfit apenas mais nao muda a cor da outfit e @GamerGoiano Brother editei o script e consegui deu certo so que agora ele nao volta roupa que estava antes quando ele sai do tile da uma olhada no codigo como ficou. local condition = Condition(CONDITION_OUTFIT) condition:setTicks(-1) function onStepIn(creature, item, position, fromPosition) if not creature:isPlayer() then return false end creature:addCondition(CONDITION_OUTFIT) local prevOutfit = creature:getOutfit() prevOutfit.lookType = 138, prevOutfit.lookType creature:setOutfit(prevOutfit) return true end function onStepOut(creature, item, position, fromPosition) if not creature:isPlayer() then return false end creature:removeCondition(CONDITION_OUTFIT) local prevOutfit = creature:getOutfit() prevOutfit.lookType=prevOutfit.lookType creature:setOutfit(prevOutfit) return true end
-
Movements script
Estou usando tfs 1.3 Olá pessoal queria fazer um pedido se alguém pode me ajuda com esse script de troca de outfit quando piso no tile ele troca a outfit mais não troca as cores queria saber se tem como ele trocar as cores da roupa usa a mesmas cores da roupa anterior que estava pq ele muda a outfit e fica toda branca aí quando sai do tile ele volta a cor e a outfit que estava antes queria saber se tem como quando ele trocar a outfit e as cores que estavam antes de pisar no tile Você tem o código disponível? Se tiver publique-o aqui: local condition = Condition(CONDITION_OUTFIT) condition:setOutfit({lookType = 138}) condition:setTicks(-1) function onStepIn(creature, item, position, fromPosition) if not creature:isPlayer() then return false end creature:addCondition(condition) return true end function onStepOut(creature, item, position, fromPosition) if not creature:isPlayer() then return false end creature:removeCondition(CONDITION_OUTFIT) return true end
-
(Resolvido)Movements script
Consegui resolver obrigado pela ajuda pode fechar o tópico
-
(Resolvido)Movements script
Obrigado pela ajuda brother mais ainda não consegui esse script me deixou mais confuso de o addevent mais obrigado por tentar ajudar
-
(Resolvido)Movements script
Olá pessoal do tk Alguém poderiae ajuda com script de movements Estou usando tfs 1.3 O escrito seria de forma que quando o player pisar no piso com determinada actionid ele falaria 3 falas com tempo Exemplo piso no piso com a determinada actionid Ele fala a fala1 "ola guerreiro" Depois de 2 segundos ele fala a fala2 "seja bem vindo" Depois a de mais 2 segundos ele fala a fala3 "ok até mais" Tentei por addevent com player:say ("") mas não consegui se alguém puder me ajudar ficarei grato 🙏🏼 .
-
Action script
Versão tfs 1.3 Pessoal alguém poderia me ajudar com um script que quando o player der use com item 2700 no item 2400 o item 2400 se transformce no item 2403 e remover 3 item do player para ele poder transformar esse item obrigado desde já galera. Você tem o código disponível? Se tiver publique-o aqui: Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
-
-- Action Script --
fala galera do TK queria pedir a ajuda de voces com um script de action que mude a vocaçao do player versao do meu tfs é 1.3 procurei varios mais nao achei nenhum na versao que eu preciso e queria muito esse escript nao sei se é possivel vou colocar 4 pedras precisosas uma de knight uma de paladin uma de sorcerer e uma de druid exemplo de como funcionaria queria que se o player fosse knight exemplo ele usar uma pedra de druid ele mudava pra vocaçao de druid so que salvasse todos skill de quando ele era knight ai quando ele usasse uma pedra de knight ele voltava para o mesmo progresso que tinha antes e assim com todas vocaçao sempre salva o progresso de cada vocaçao e ajustar life e mana para cada vocaçao me desculpem se nao tiver explicativo o post posso tentar explicar melhor e obrigado desde ja pessoal. Você tem o código disponível? Se tiver publique-o aqui: Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
-
Shield que drena o atack em life
uso tfs 1.3 fala pessoal vim pedir a ajuda de voces com um script de equipe por exemplo quando o player tiver usando um demon shield e toma um hit de 300 ai esse hit que o player levou de 300 adiciona 5% de vida para o player obrigado desde ja a todos Você tem o código disponível? Se tiver publique-o aqui: Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
-
Stamina Scripit
Pessoal alguém poderia me ajudar com um script de movements nos trainer para tfs 1.3 Todos que procurei no fórum não deu certo e maioria são 0.4 Queria um script que cada 3 minutos nos trainer ganhe 1 de stamina.
-
Ajuda Script Spell Exori
Tfs 1.3 Pessoal queria pedir a ajuda de vcs com um script na nova magia exori que foi implementado no Tibia vou por a descrição de como ela funciona acredito que irá ajudar algumas pessoas tb com essa dúvida dessa nova magia obrigado desde já galera. Acorrenta até 5 criaturas que atacam à distância. Estes passam a atacar corpo-a-corpo por 12segundos e alvejam o usuário por 6segundos Um ícone indica que a criatura está afetada por essa magia.
-
Action Outfit
Uso versao do tfs 1.3 Fala galera do TK queria pedir a ajuda de voces com um script de action que ao dar use em uma alavanca o player ganhe uma outfit e o player precisa de uma certa quantidade de um item para ganhar outfit, e daria a outfit de acordo se o player e male ou female agradeço desde ja galera Você tem o código disponível? Se tiver publique-o aqui: Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
-
Action script
--- tfs 1.3-- Pessoal alguém poderia me ajudar com um script de action O script seria para dar atributo em um item exemplo vc usa uma pedra encantada em um item e o item ganha 10% de defesa contra fire por 20 horas e se der look no item aparece o atributo obrigado desde já pessoal. Você tem o código disponível? Se tiver publique-o aqui: Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
-
Outfit talkaction
.Qual servidor ou website você utiliza como base? 8.6 tfs 1.3 Qual o motivo deste tópico? Fala galera do TK queria pedir a ajuda de vcs com script de talkaction que funciona da seguinte forma quanto o player usar o comando !outfit o script iria identificar a looktype que ele está usando exemplo ele tá usando a looktype 129 que seria o Hunter outfit aí abriria o set outfit com o Hunter e com mais 2 outfits apenas para mudar as cores da roupas e assim por diante com as outras outfits Você tem o código disponível? Se tiver publique-o aqui: Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
-
(Resolvido)Script Action Boss
Man obrigado de coraçao se nao sabe como isso tava me deixando louco nao tenho palavras pra agradecer vlw msm tmj rep+ pra sempre haha tmj
-
(Resolvido)Script Action Boss
.Qual servidor ou website você utiliza como base? 8.6 tfs 1.3 Qual o motivo deste tópico? erro no script Está surgindo algum erro? Se sim coloque-o aqui. Você tem o código disponível? Se tiver publique-o aqui: local config = { bossName = "Maxxenius", bossName2 = "Glooth-Generator", bossName3 = "Glooth-Generator", bossName4 = "Glooth-Generator", summonName = "Rift Invader", bossPos = Position{x = 31983, y = 31982, z = 15}, horror = Position{x = 31982, y = 31984, z = 15}, phobia = Position{x = 31989, y = 31984, z = 15}, fear = Position{x = 31984, y = 31987, z = 15}, centerRoom = Position{x = 31984, y = 31985, z = 15}, -- Center Room exitPosition = Position{x = 32001, y = 31984, z = 15}, -- Exit Position newPos = Position{x = 31984, y = 31990, z = 15}, -- Player Position on room playerPositions = { Position{x = 32003, y = 31980, z = 15}, Position{x = 32003, y = 31981, z = 15}, Position{x = 32003, y = 31982, z = 15}, Position{x = 32003, y = 31983, z = 15}, Position{x = 32003, y = 31984, z = 15} }, range = 30, time = 30, -- time in minutes to remove the player } local function clearFerumbrasRoom() local spectators = Game.getSpectators(config.bossPos, false, false, 10, 10, 10, 10) for i = 2, #spectators do local spectator = spectators[i] if spectator:isPlayer() then spectator:teleportTo(config.exitPosition) spectator:getPosition():sendMagicEffect(CONST_ME_TELEPORT) spectator:say('Time out! You were teleported out by strange forces.', TALKTYPE_MONSTER_SAY) elseif spectator:isMonster() then spectator:remove() end end end local ferumbrasAscendantLever = Action() function ferumbrasAscendantLever.onUse(player, item, fromPosition, target, toPosition, isHotkey) if item.itemid == 9825 then if player:getPosition() ~= Position{x = 32003, y = 31980, z = 15} then return true end for x = 32003, 32003 do for y = 31980, 31984 do local playerTile = Tile(Position(x, y, 15)):getTopCreature() if playerTile and playerTile:isPlayer() then if playerTile:getStorageValue(421516177) > os.time() then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You or a member in your team have to wait 20 hours to face Boss again!") item:transform(9826) return true end end end end local specs, spec = Game.getSpectators(config.centerRoom, false, false, 15, 15, 15, 15) for i = 1, #specs do spec = specs[i] if spec:isPlayer() then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "There's someone fighting with Boss.") return true end end local spectators = Game.getSpectators(config.bossPos, false, false, 15, 15, 15, 15) for i = 1, #spectators do local spectator = spectators[i] if spectator:isMonster() then spectator:remove() end end for x = 32003, 32003 do for y = 31980, 31984 do local playerTile = Tile(Position(x, y, 15)):getTopCreature() if playerTile and playerTile:isPlayer() then playerTile:getPosition():sendMagicEffect(CONST_ME_POFF) playerTile:teleportTo(config.newPos) playerTile:getPosition():sendMagicEffect(CONST_ME_TELEPORT) playerTile:setStorageValue(421516177, os.time() + 20 * 60 * 60) -- 14 days player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have 30 minutes to kill and loot this boss. Otherwise you will lose that chance and will be kicked out.") addEvent(clearFerumbrasRoom, 60 * config.time * 1000, player:getId(), config.centerRoom, config.range, config.range, config.exitPosition) Game.createMonster(config.bossName, config.bossPos, true, true) Game.createMonster(config.bossName2, config.horror, true, true) Game.createMonster(config.bossName3, config.phobia, true, true) Game.createMonster(config.bossName4, config.fear, true, true) item:transform(9826) end end end elseif item.itemid == 9826 then item:transform(9825) return true end end ferumbrasAscendantLever:aid(30014) ferumbrasAscendantLever:register() Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
-
Adicionar Tabelas Shop
Pessoal alguem poderia me ajuda como aumentar as tabelas do shop como na foto abaixo queria adicionar novas abas no shop tem a aba extra services, items, outfits, mounts, items vip, queria adicionar house items, e Suporte items mas nao estou conseguindo se alguem puder me ajudar ficarei grato Obrigado desde ja. Você tem o código disponível? Se tiver publique-o aqui: Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
-
(Resolvido)Derivado [Pedido] Usar x item em um monstro e ganhar outfit
@Naze brother se pudesse modificar esse script aqui ja me ajudaria em tudo que precisava no caso em vez de ganhar montaria ganhar a outfit com addon 1 e 2 queria modificar usando esse script de baixo local ACTION_RUN, ACTION_BREAK, ACTION_NONE, ACTION_ALL = 1, 2, 3, 4 local TYPE_MONSTER, TYPE_NPC, TYPE_ITEM, TYPE_ACTION, TYPE_UNIQUE = 1, 2, 3, 4, 5 local config = { [5907] = {NAME = 'Bear', ID = 3, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 20, FAIL_MSG = { {1, 'The bear ran away.'}, {2, 'Oh no! The slingshot broke.'}, {3, 'The bear is trying to hit you with its claws.'} }, SUCCESS_MSG = 'You have tamed the war bear.', ACHIEV = "Bearbaiting"}, [13295] = {NAME = 'Black Sheep', ID = 4, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 25, FAIL_MSG = { {1, 'The black sheep ran away.'}, {2, 'Oh no! The reins were torn.'}, {3, 'The black sheep is trying to run away.'} }, SUCCESS_MSG = 'You have tamed the sheep.', ACHIEV = "Little Ball of Wool"}, [13247] = {NAME = 'Boar', ID = 10, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 40, FAIL_MSG = { {1, 'The boar has run away'}, {3, 'The boar attacks you.'} }, SUCCESS_MSG = 'You have tamed the boar.', ACHIEV = "Pig-Headed"}, [13305] = {NAME = 'Crustacea Gigantica', ID = 7, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 40, FAIL_MSG = { {1, 'The crustacea has run away.'}, {2, 'The crustacea ate the shrimp.'} }, SUCCESS_MSG = 'You have tamed the crustacea.', ACHIEV = "Fried Shrimp"}, [13536] = {NAME = 'Crystal Wolf', ID = 16, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 40, FAIL_MSG = { {1, 'The wolf has run away.'} }, SUCCESS_MSG = 'You have tamed the wolf.', ACHIEV = "The Right Tone"}, [13537] = {NAME = 'Donkey', ID = 13, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 40, FAIL_MSG = { {1, 'The donkey transformation suddenly wears off.'}, {2, 'Heeee-haaa-haaa-haaw!'}, {3, 'You did not manage to feed the donkey enough apple slices.'} }, SUCCESS_MSG = 'Heeee-haaaaw!', ACHIEV = "Loyal Lad"}, [18449] = {NAME = 'Dragonling', ID = 31, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 30, FAIL_MSG = { {1, "The dragonling got scared and ran away."}, {2, "The dragonling is trying to nibble."} }, SUCCESS_MSG = "You tamed a dragonling.", ACHIEV = "Dragon Mimicry"}, [13294] = {NAME = 'Draptor', ID = 6, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 40, FAIL_MSG = { {1, 'The draptor has run away.'}, {3, 'The draptor has fled.'} }, SUCCESS_MSG = 'You have tamed the draptor.', ACHIEV = "Scales and Tail"}, [13535] = {NAME = 'Dromedary', ID = 20, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 40, FAIL_MSG = { {1, 'Dromedary has run away.'} }, SUCCESS_MSG = 'You have tamed the dromedary.', ACHIEV = "Fata Morgana"}, [13539] = {NAME = 'Enraged White Deer', ID = 18, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 40, FAIL_MSG = { {2, 'The cone broke.'}, {3, 'The deer has fled in fear.'} }, SUCCESS_MSG = 'You have tamed the white deer.', ACHIEV = "Friend of Elves"}, [32491] = {NAME = 'Flying Book', ID = 126, BREAK = false, TYPE = TYPE_MONSTER, CHANCE = 20, FAIL_MSG = { {1, 'Flying Book has run away.'} }, SUCCESS_MSG = 'You have converted your library ticket and receive permission to ride a flying book.', ACHIEV = "Bibliomaniac"}, [21452] = {NAME = 'Gravedigger', ID = 39, BREAK = false, TYPE = TYPE_MONSTER, CHANCE = 40, FAIL_MSG = { {1, "The gravedigger got scared and ran away."}, {3, "The gravedigger is trying to nibble."} }, SUCCESS_MSG = "You tamed the hellgrip.", ACHIEV = "Blacknailed"}, [36411] = {NAME = 'Gryphon', ID = 144, BREAK = false, TYPE = TYPE_MONSTER, CHANCE = 30, FAIL_MSG = { {1, 'Gryphon has run away.'} }, SUCCESS_MSG = 'You have tamed the gryphon.', ACHIEV = "Gryphon Rider"}, [34809] = {NAME = 'Hibernal Moth', ID = 131, BREAK = false, TYPE = TYPE_MONSTER, CHANCE = 20, FAIL_MSG = { {2, 'The hibernal moth is not interested in your lantern and flies away.'}, {4, 'The hibernal moth is not interested in your lantern and flies away.'} }, SUCCESS_MSG = 'You have tamed a hibernal moth.', ACHIEV = "Moth Whisperer"}, [13292] = {NAME = 'inoperative tin lizzard', ID = 8, BREAK = true, TYPE = TYPE_ITEM, CHANCE = 40, FAIL_MSG = { {2, 'The key broke inside.'} }, SUCCESS_MSG = 'You wind up the tin lizzard.', ACHIEV = "Knock on Wood"}, [13938] = {NAME = 'inoperative uniwheel', ID = 15, BREAK = true, TYPE = TYPE_ITEM, CHANCE = 40, FAIL_MSG = { {3, 'The oil have no effect.'}, {2, 'Splosh!'} }, SUCCESS_MSG = 'The strange wheel seems to vibrate and slowly starts turning continuously.', ACHIEV = "Stuntman"}, [18447] = {NAME = 'Ironblight', ID = 29, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 30, FAIL_MSG = { {1, 'The ironblight managed to run away.'}, {2, 'Oh no! The magnet lost its power!'}, {3, 'The ironblight is fighting against the magnetic force.'} }, SUCCESS_MSG = 'You tamed the ironblight.', ACHIEV = "Magnetised"}, [34808] = {NAME = 'Lacewing Moth', ID = 130, BREAK = false, TYPE = TYPE_MONSTER, CHANCE = 20, FAIL_MSG = { {2, 'The lacewing moth is not interested in your lantern and flies away.'}, {4, 'The lacewing moth is not interested in your lantern and flies away.'} }, SUCCESS_MSG = 'You have tamed a lancewing moth.', ACHIEV = "Lacewing Catcher"}, [15546] = {NAME = 'Ladybug', ID = 27, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 30, FAIL_MSG = { {1, 'The ladybug got scared and ran away.'}, {3, 'The ladybug is trying to nibble.'} }, SUCCESS_MSG = 'You tame a lady bug.', ACHIEV = "Lovely Dots"}, [18448] = {NAME = 'Magma Crawler', ID = 30, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 30, FAIL_MSG = { {1, 'The magma crawler refused to drink wine and vanishes into thin air.'}, {2, 'Argh! The magma crawler pushed you and you spilled the glow wine!'}, {3, 'The magma crawler is smelling the glow wine suspiciously.'} }, SUCCESS_MSG = 'The magma crawler will accompany you as a friend from now on.', ACHIEV = "Way to Hell"}, [15545] = {NAME = 'Manta Ray', ID = 28, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 30, FAIL_MSG = { {1, 'The manta ray fled.'}, {3, 'The manta ray is trying to escape.'} }, SUCCESS_MSG = 'You have tamed the manta ray.', ACHIEV = "Beneath the Sea"}, [13293] = {NAME = 'Midnight Panther', ID = 5, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 20, FAIL_MSG = { {1, 'The panther has escaped.'}, {2, 'The whip broke.'} },SUCCESS_MSG = 'You have tamed the panther.', ACHIEV = "Starless Night"}, [18516] = {NAME = 'Modified Gnarlhound', ID = 32, BREAK = false, TYPE = TYPE_MONSTER, CHANCE = 100, FAIL_MSG = { }, SUCCESS_MSG = 'You now own a modified gnarlhound.', ACHIEV = "Mind the Dog!"}, [30840] = {NAME = 'Mole', ID = 119, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 30, FAIL_MSG = { {2, 'The Mole is a bit capricious. Maybe I should leave it alone.'}, {4, 'The Mole is a bit capricious. Maybe I should leave it alone.'} }, SUCCESS_MSG = 'You tamed the mole.', ACHIEV = "Up the Molehill"}, [23810] = {NAME = 'Noble Lion', ID = 40, BREAK = false, TYPE = TYPE_MONSTER, CHANCE = 30, FAIL_MSG = { {2, 'The lion got scared and ran away.'}, {4, 'The lion is trying to nibble.'} }, SUCCESS_MSG = 'You tamed the lion.', ACHIEV = "Lion King"}, [13538] = {NAME = 'Panda', ID = 19, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 40, FAIL_MSG = { {4, 'Panda the leaves and ran away.'} }, SUCCESS_MSG = 'You have tamed the panda.', ACHIEV = "Chequered Teddy"}, [13498] = {NAME = 'Sandstone Scorpion', ID = 21, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 40, FAIL_MSG = { {1, 'The scorpion has vanished.'}, {2, 'Scorpion broken the sceptre.'} }, SUCCESS_MSG = 'You have tamed the scorpion.', ACHIEV = "Golden Sands"}, [22608] = {NAME = 'Shock Head', ID = 42, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 30, FAIL_MSG = { {1, 'The shock head ran away.'}, {3, 'The shock head is growling at you.'} }, SUCCESS_MSG = 'You tamed the shock head.', ACHIEV = "Personal Nightmare"}, [27628] = {NAME = 'Stone Rhino', ID = 106, BREAK = false, TYPE = TYPE_MONSTER, CHANCE = 30, FAIL_MSG = { {1, 'The stone rhino ran away.'}, {3, 'The stone rhino is growling at you.'} }, SUCCESS_MSG = 'You tamed the stone rhino.', ACHIEV = "Rhino Rider"}, [13508] = {NAME = 'Slug', ID = 14, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 40, FAIL_MSG = { {1, 'The slug has run away.'}, {3, 'The drug had no effect.'} }, SUCCESS_MSG = 'You have tamed the slug.', ACHIEV = "Slugging Around"}, [13298] = {NAME = 'Terror Bird', ID = 2, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 15, FAIL_MSG = { {1, 'The bird ran away.'}, {3, 'The terror bird is pecking you.'} }, SUCCESS_MSG = 'You have tamed the bird.', ACHIEV = "Pecking Order"}, [13291] = {NAME = 'Undead Cavebear', ID = 12, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 40, FAIL_MSG = { {1, 'The undead bear has run away.'} }, SUCCESS_MSG = 'You have tamed the skeleton.', ACHIEV = "Out of the Stone Age"}, [13307] = {NAME = 'Wailing Widow', ID = 1, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 40, FAIL_MSG = { {1, 'The widow has run away.'}, {2, 'The widow has eaten the sweet bait.'} }, SUCCESS_MSG = 'You have tamed the widow.', ACHIEV = "Spin-Off"}, [23557] = {NAME = 'Walker', ID = 43, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 30, FAIL_MSG = { {2, 'This walker is incompatible with your control unit.'}, {4, 'This walker is incompatible with your control unit.'} }, SUCCESS_MSG = 'You tamed the walker.', ACHIEV = "Gear Up"}, [20138] = {NAME = 'Water Buffalo', ID = 35, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 30, FAIL_MSG = { {1, 'The water buffalo got scared and ran away.'}, {3, 'The water buffalo is trying to nibble.'} }, SUCCESS_MSG = 'You tamed a water buffalo.', ACHIEV = "Swamp Beast"}, [13939] = {NAME = 'Wild Horse', ID = 17, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 15, FAIL_MSG = { {1, 'The horse runs away.'}, {2, 'The horse ate the oats.'} }, SUCCESS_MSG = 'You have tamed the horse.', ACHIEV = "Lucky Horseshoe"} } local function doFailAction(cid, mount, pos, item, itemEx, loseItem) local action, effect = mount.FAIL_MSG[math.random(#mount.FAIL_MSG)], CONST_ME_POFF if(action[1] == ACTION_RUN) then Creature(itemEx.uid):remove() elseif(action[1] == ACTION_BREAK) then effect = CONST_ME_BLOCKHIT if loseItem then Item(item.uid):remove(1) end elseif(action[1] == ACTION_ALL) then Creature(itemEx.uid):remove() if loseItem then Item(item.uid):remove(1) end end pos:sendMagicEffect(effect) Player(cid):say(action[2], TALKTYPE_MONSTER_SAY) return action end function onUse(cid, item, fromPosition, itemEx, toPosition) local player = Player(cid) local targetMonster = Monster(itemEx.uid) local targetNpc = Npc(itemEx.uid) local targetItem = Item(itemEx.uid) local mount = config[item.itemid] if mount == nil or player:hasMount(mount.ID) then return false end local rand = math.random(100) --Monster Mount if targetMonster ~= nil and mount.TYPE == TYPE_MONSTER then if Creature(itemEx.uid):getMaster() then player:say('You can\'t tame a summon!', TALKTYPE_MONSTER_SAY) return true end if mount.NAME == targetMonster:getName() then if rand > mount.CHANCE then doFailAction(cid, mount, toPosition, item, itemEx, mount.BREAK) return true end if mount.ACHIEV then player:addAchievement(mount.ACHIEV) end player:addAchievement("Natural Born Cowboy") player:addMount(mount.ID) player:say(mount.SUCCESS_MSG, TALKTYPE_MONSTER_SAY) targetMonster:remove() toPosition:sendMagicEffect(CONST_ME_MAGIC_GREEN) Item(item.uid):remove(1) return true end --NPC Mount elseif targetNpc ~= nil and mount.TYPE == TYPE_NPC then if mount.NAME == targetNpc:getName() then if rand > mount.CHANCE then doFailAction(cid, mount, toPosition, item, itemEx, mount.BREAK) return true end if mount.ACHIEV then player:addAchievement(mount.ACHIEV) end player:addAchievement("Natural Born Cowboy") player:addMount(mount.ID) player:say(mount.SUCCESS_MSG, TALKTYPE_MONSTER_SAY) toPosition:sendMagicEffect(CONST_ME_MAGIC_GREEN) Item(item.uid):remove(1) return true end --Item Mount elseif targetItem ~= nil and mount.TYPE == TYPE_ITEM then if mount.NAME == targetItem:getName() then if rand > mount.CHANCE then doFailAction(cid, mount, toPosition, item, itemEx, mount.BREAK) return true end if mount.ACHIEV then player:addAchievement(mount.ACHIEV) end player:addAchievement("Natural Born Cowboy") player:addMount(mount.ID) player:say(mount.SUCCESS_MSG, TALKTYPE_MONSTER_SAY) toPosition:sendMagicEffect(CONST_ME_MAGIC_GREEN) Item(item.uid):remove(1) return true end --Action Mount elseif itemEx.actionid > 0 and mount.TYPE == TYPE_ACTION then if(mount.NAME == itemEx.actionid) then if rand > mount.CHANCE then doFailAction(cid, mount, toPosition, item, itemEx, mount.BREAK) return true end if mount.ACHIEV then player:addAchievement(mount.ACHIEV) end player:addAchievement("Natural Born Cowboy") player:addMount(mount.ID) player:say(mount.SUCCESS_MSG, TALKTYPE_MONSTER_SAY) toPosition:sendMagicEffect(CONST_ME_MAGIC_GREEN) Item(item.uid):remove(1) return true end --Unique Mount elseif itemEx.uid <= 65535 and mount.TYPE == TYPE_UNIQUE then if mount.NAME == itemEx.uid then if rand > mount.CHANCE then doFailAction(cid, mount, toPosition, item, itemEx, mount.BREAK) return true end if mount.ACHIEV then player:addAchievement(mount.ACHIEV) end player:addAchievement("Natural Born Cowboy") player:addMount(mount.ID) player:say(mount.SUCCESS_MSG, TALKTYPE_MONSTER_SAY) toPosition:sendMagicEffect(CONST_ME_MAGIC_GREEN) Item(item.uid):remove(1) return true end end return false end
-
Script Montarias
Ola pessoal queria pedir a juda de voçês para modificar esse script queria que o player recebesse outfit em vez de receber a montaria tipo o player usa o item para dormar a criatura e ganha a outfit com addon 1 e 2 usando esse script abaixo alguem poderia me dar um help? local ACTION_RUN, ACTION_BREAK, ACTION_NONE, ACTION_ALL = 1, 2, 3, 4 local TYPE_MONSTER, TYPE_NPC, TYPE_ITEM, TYPE_ACTION, TYPE_UNIQUE = 1, 2, 3, 4, 5 local config = { [5907] = {NAME = 'Bear', ID = 3, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 20, FAIL_MSG = { {1, 'The bear ran away.'}, {2, 'Oh no! The slingshot broke.'}, {3, 'The bear is trying to hit you with its claws.'} }, SUCCESS_MSG = 'You have tamed the war bear.', ACHIEV = "Bearbaiting"}, [13295] = {NAME = 'Black Sheep', ID = 4, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 25, FAIL_MSG = { {1, 'The black sheep ran away.'}, {2, 'Oh no! The reins were torn.'}, {3, 'The black sheep is trying to run away.'} }, SUCCESS_MSG = 'You have tamed the sheep.', ACHIEV = "Little Ball of Wool"}, [13247] = {NAME = 'Boar', ID = 10, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 40, FAIL_MSG = { {1, 'The boar has run away'}, {3, 'The boar attacks you.'} }, SUCCESS_MSG = 'You have tamed the boar.', ACHIEV = "Pig-Headed"}, [13305] = {NAME = 'Crustacea Gigantica', ID = 7, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 40, FAIL_MSG = { {1, 'The crustacea has run away.'}, {2, 'The crustacea ate the shrimp.'} }, SUCCESS_MSG = 'You have tamed the crustacea.', ACHIEV = "Fried Shrimp"}, [13536] = {NAME = 'Crystal Wolf', ID = 16, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 40, FAIL_MSG = { {1, 'The wolf has run away.'} }, SUCCESS_MSG = 'You have tamed the wolf.', ACHIEV = "The Right Tone"}, [13537] = {NAME = 'Donkey', ID = 13, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 40, FAIL_MSG = { {1, 'The donkey transformation suddenly wears off.'}, {2, 'Heeee-haaa-haaa-haaw!'}, {3, 'You did not manage to feed the donkey enough apple slices.'} }, SUCCESS_MSG = 'Heeee-haaaaw!', ACHIEV = "Loyal Lad"}, [18449] = {NAME = 'Dragonling', ID = 31, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 30, FAIL_MSG = { {1, "The dragonling got scared and ran away."}, {2, "The dragonling is trying to nibble."} }, SUCCESS_MSG = "You tamed a dragonling.", ACHIEV = "Dragon Mimicry"}, [13294] = {NAME = 'Draptor', ID = 6, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 40, FAIL_MSG = { {1, 'The draptor has run away.'}, {3, 'The draptor has fled.'} }, SUCCESS_MSG = 'You have tamed the draptor.', ACHIEV = "Scales and Tail"}, [13535] = {NAME = 'Dromedary', ID = 20, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 40, FAIL_MSG = { {1, 'Dromedary has run away.'} }, SUCCESS_MSG = 'You have tamed the dromedary.', ACHIEV = "Fata Morgana"}, [13539] = {NAME = 'Enraged White Deer', ID = 18, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 40, FAIL_MSG = { {2, 'The cone broke.'}, {3, 'The deer has fled in fear.'} }, SUCCESS_MSG = 'You have tamed the white deer.', ACHIEV = "Friend of Elves"}, [32491] = {NAME = 'Flying Book', ID = 126, BREAK = false, TYPE = TYPE_MONSTER, CHANCE = 20, FAIL_MSG = { {1, 'Flying Book has run away.'} }, SUCCESS_MSG = 'You have converted your library ticket and receive permission to ride a flying book.', ACHIEV = "Bibliomaniac"}, [21452] = {NAME = 'Gravedigger', ID = 39, BREAK = false, TYPE = TYPE_MONSTER, CHANCE = 40, FAIL_MSG = { {1, "The gravedigger got scared and ran away."}, {3, "The gravedigger is trying to nibble."} }, SUCCESS_MSG = "You tamed the hellgrip.", ACHIEV = "Blacknailed"}, [36411] = {NAME = 'Gryphon', ID = 144, BREAK = false, TYPE = TYPE_MONSTER, CHANCE = 30, FAIL_MSG = { {1, 'Gryphon has run away.'} }, SUCCESS_MSG = 'You have tamed the gryphon.', ACHIEV = "Gryphon Rider"}, [34809] = {NAME = 'Hibernal Moth', ID = 131, BREAK = false, TYPE = TYPE_MONSTER, CHANCE = 20, FAIL_MSG = { {2, 'The hibernal moth is not interested in your lantern and flies away.'}, {4, 'The hibernal moth is not interested in your lantern and flies away.'} }, SUCCESS_MSG = 'You have tamed a hibernal moth.', ACHIEV = "Moth Whisperer"}, [13292] = {NAME = 'inoperative tin lizzard', ID = 8, BREAK = true, TYPE = TYPE_ITEM, CHANCE = 40, FAIL_MSG = { {2, 'The key broke inside.'} }, SUCCESS_MSG = 'You wind up the tin lizzard.', ACHIEV = "Knock on Wood"}, [13938] = {NAME = 'inoperative uniwheel', ID = 15, BREAK = true, TYPE = TYPE_ITEM, CHANCE = 40, FAIL_MSG = { {3, 'The oil have no effect.'}, {2, 'Splosh!'} }, SUCCESS_MSG = 'The strange wheel seems to vibrate and slowly starts turning continuously.', ACHIEV = "Stuntman"}, [18447] = {NAME = 'Ironblight', ID = 29, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 30, FAIL_MSG = { {1, 'The ironblight managed to run away.'}, {2, 'Oh no! The magnet lost its power!'}, {3, 'The ironblight is fighting against the magnetic force.'} }, SUCCESS_MSG = 'You tamed the ironblight.', ACHIEV = "Magnetised"}, [34808] = {NAME = 'Lacewing Moth', ID = 130, BREAK = false, TYPE = TYPE_MONSTER, CHANCE = 20, FAIL_MSG = { {2, 'The lacewing moth is not interested in your lantern and flies away.'}, {4, 'The lacewing moth is not interested in your lantern and flies away.'} }, SUCCESS_MSG = 'You have tamed a lancewing moth.', ACHIEV = "Lacewing Catcher"}, [15546] = {NAME = 'Ladybug', ID = 27, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 30, FAIL_MSG = { {1, 'The ladybug got scared and ran away.'}, {3, 'The ladybug is trying to nibble.'} }, SUCCESS_MSG = 'You tame a lady bug.', ACHIEV = "Lovely Dots"}, [18448] = {NAME = 'Magma Crawler', ID = 30, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 30, FAIL_MSG = { {1, 'The magma crawler refused to drink wine and vanishes into thin air.'}, {2, 'Argh! The magma crawler pushed you and you spilled the glow wine!'}, {3, 'The magma crawler is smelling the glow wine suspiciously.'} }, SUCCESS_MSG = 'The magma crawler will accompany you as a friend from now on.', ACHIEV = "Way to Hell"}, [15545] = {NAME = 'Manta Ray', ID = 28, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 30, FAIL_MSG = { {1, 'The manta ray fled.'}, {3, 'The manta ray is trying to escape.'} }, SUCCESS_MSG = 'You have tamed the manta ray.', ACHIEV = "Beneath the Sea"}, [13293] = {NAME = 'Midnight Panther', ID = 5, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 20, FAIL_MSG = { {1, 'The panther has escaped.'}, {2, 'The whip broke.'} },SUCCESS_MSG = 'You have tamed the panther.', ACHIEV = "Starless Night"}, [18516] = {NAME = 'Modified Gnarlhound', ID = 32, BREAK = false, TYPE = TYPE_MONSTER, CHANCE = 100, FAIL_MSG = { }, SUCCESS_MSG = 'You now own a modified gnarlhound.', ACHIEV = "Mind the Dog!"}, [30840] = {NAME = 'Mole', ID = 119, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 30, FAIL_MSG = { {2, 'The Mole is a bit capricious. Maybe I should leave it alone.'}, {4, 'The Mole is a bit capricious. Maybe I should leave it alone.'} }, SUCCESS_MSG = 'You tamed the mole.', ACHIEV = "Up the Molehill"}, [23810] = {NAME = 'Noble Lion', ID = 40, BREAK = false, TYPE = TYPE_MONSTER, CHANCE = 30, FAIL_MSG = { {2, 'The lion got scared and ran away.'}, {4, 'The lion is trying to nibble.'} }, SUCCESS_MSG = 'You tamed the lion.', ACHIEV = "Lion King"}, [13538] = {NAME = 'Panda', ID = 19, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 40, FAIL_MSG = { {4, 'Panda the leaves and ran away.'} }, SUCCESS_MSG = 'You have tamed the panda.', ACHIEV = "Chequered Teddy"}, [13498] = {NAME = 'Sandstone Scorpion', ID = 21, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 40, FAIL_MSG = { {1, 'The scorpion has vanished.'}, {2, 'Scorpion broken the sceptre.'} }, SUCCESS_MSG = 'You have tamed the scorpion.', ACHIEV = "Golden Sands"}, [22608] = {NAME = 'Shock Head', ID = 42, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 30, FAIL_MSG = { {1, 'The shock head ran away.'}, {3, 'The shock head is growling at you.'} }, SUCCESS_MSG = 'You tamed the shock head.', ACHIEV = "Personal Nightmare"}, [27628] = {NAME = 'Stone Rhino', ID = 106, BREAK = false, TYPE = TYPE_MONSTER, CHANCE = 30, FAIL_MSG = { {1, 'The stone rhino ran away.'}, {3, 'The stone rhino is growling at you.'} }, SUCCESS_MSG = 'You tamed the stone rhino.', ACHIEV = "Rhino Rider"}, [13508] = {NAME = 'Slug', ID = 14, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 40, FAIL_MSG = { {1, 'The slug has run away.'}, {3, 'The drug had no effect.'} }, SUCCESS_MSG = 'You have tamed the slug.', ACHIEV = "Slugging Around"}, [13298] = {NAME = 'Terror Bird', ID = 2, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 15, FAIL_MSG = { {1, 'The bird ran away.'}, {3, 'The terror bird is pecking you.'} }, SUCCESS_MSG = 'You have tamed the bird.', ACHIEV = "Pecking Order"}, [13291] = {NAME = 'Undead Cavebear', ID = 12, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 40, FAIL_MSG = { {1, 'The undead bear has run away.'} }, SUCCESS_MSG = 'You have tamed the skeleton.', ACHIEV = "Out of the Stone Age"}, [13307] = {NAME = 'Wailing Widow', ID = 1, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 40, FAIL_MSG = { {1, 'The widow has run away.'}, {2, 'The widow has eaten the sweet bait.'} }, SUCCESS_MSG = 'You have tamed the widow.', ACHIEV = "Spin-Off"}, [23557] = {NAME = 'Walker', ID = 43, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 30, FAIL_MSG = { {2, 'This walker is incompatible with your control unit.'}, {4, 'This walker is incompatible with your control unit.'} }, SUCCESS_MSG = 'You tamed the walker.', ACHIEV = "Gear Up"}, [20138] = {NAME = 'Water Buffalo', ID = 35, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 30, FAIL_MSG = { {1, 'The water buffalo got scared and ran away.'}, {3, 'The water buffalo is trying to nibble.'} }, SUCCESS_MSG = 'You tamed a water buffalo.', ACHIEV = "Swamp Beast"}, [13939] = {NAME = 'Wild Horse', ID = 17, BREAK = true, TYPE = TYPE_MONSTER, CHANCE = 15, FAIL_MSG = { {1, 'The horse runs away.'}, {2, 'The horse ate the oats.'} }, SUCCESS_MSG = 'You have tamed the horse.', ACHIEV = "Lucky Horseshoe"} } local function doFailAction(cid, mount, pos, item, itemEx, loseItem) local action, effect = mount.FAIL_MSG[math.random(#mount.FAIL_MSG)], CONST_ME_POFF if(action[1] == ACTION_RUN) then Creature(itemEx.uid):remove() elseif(action[1] == ACTION_BREAK) then effect = CONST_ME_BLOCKHIT if loseItem then Item(item.uid):remove(1) end elseif(action[1] == ACTION_ALL) then Creature(itemEx.uid):remove() if loseItem then Item(item.uid):remove(1) end end pos:sendMagicEffect(effect) Player(cid):say(action[2], TALKTYPE_MONSTER_SAY) return action end function onUse(cid, item, fromPosition, itemEx, toPosition) local player = Player(cid) local targetMonster = Monster(itemEx.uid) local targetNpc = Npc(itemEx.uid) local targetItem = Item(itemEx.uid) local mount = config[item.itemid] if mount == nil or player:hasMount(mount.ID) then return false end local rand = math.random(100) --Monster Mount if targetMonster ~= nil and mount.TYPE == TYPE_MONSTER then if Creature(itemEx.uid):getMaster() then player:say('You can\'t tame a summon!', TALKTYPE_MONSTER_SAY) return true end if mount.NAME == targetMonster:getName() then if rand > mount.CHANCE then doFailAction(cid, mount, toPosition, item, itemEx, mount.BREAK) return true end if mount.ACHIEV then player:addAchievement(mount.ACHIEV) end player:addAchievement("Natural Born Cowboy") player:addMount(mount.ID) player:say(mount.SUCCESS_MSG, TALKTYPE_MONSTER_SAY) targetMonster:remove() toPosition:sendMagicEffect(CONST_ME_MAGIC_GREEN) Item(item.uid):remove(1) return true end --NPC Mount elseif targetNpc ~= nil and mount.TYPE == TYPE_NPC then if mount.NAME == targetNpc:getName() then if rand > mount.CHANCE then doFailAction(cid, mount, toPosition, item, itemEx, mount.BREAK) return true end if mount.ACHIEV then player:addAchievement(mount.ACHIEV) end player:addAchievement("Natural Born Cowboy") player:addMount(mount.ID) player:say(mount.SUCCESS_MSG, TALKTYPE_MONSTER_SAY) toPosition:sendMagicEffect(CONST_ME_MAGIC_GREEN) Item(item.uid):remove(1) return true end --Item Mount elseif targetItem ~= nil and mount.TYPE == TYPE_ITEM then if mount.NAME == targetItem:getName() then if rand > mount.CHANCE then doFailAction(cid, mount, toPosition, item, itemEx, mount.BREAK) return true end if mount.ACHIEV then player:addAchievement(mount.ACHIEV) end player:addAchievement("Natural Born Cowboy") player:addMount(mount.ID) player:say(mount.SUCCESS_MSG, TALKTYPE_MONSTER_SAY) toPosition:sendMagicEffect(CONST_ME_MAGIC_GREEN) Item(item.uid):remove(1) return true end --Action Mount elseif itemEx.actionid > 0 and mount.TYPE == TYPE_ACTION then if(mount.NAME == itemEx.actionid) then if rand > mount.CHANCE then doFailAction(cid, mount, toPosition, item, itemEx, mount.BREAK) return true end if mount.ACHIEV then player:addAchievement(mount.ACHIEV) end player:addAchievement("Natural Born Cowboy") player:addMount(mount.ID) player:say(mount.SUCCESS_MSG, TALKTYPE_MONSTER_SAY) toPosition:sendMagicEffect(CONST_ME_MAGIC_GREEN) Item(item.uid):remove(1) return true end --Unique Mount elseif itemEx.uid <= 65535 and mount.TYPE == TYPE_UNIQUE then if mount.NAME == itemEx.uid then if rand > mount.CHANCE then doFailAction(cid, mount, toPosition, item, itemEx, mount.BREAK) return true end if mount.ACHIEV then player:addAchievement(mount.ACHIEV) end player:addAchievement("Natural Born Cowboy") player:addMount(mount.ID) player:say(mount.SUCCESS_MSG, TALKTYPE_MONSTER_SAY) toPosition:sendMagicEffect(CONST_ME_MAGIC_GREEN) Item(item.uid):remove(1) return true end end return false end
-
(Resolvido)Derivado [Pedido] Usar x item em um monstro e ganhar outfit
@Naze
-
(Resolvido)Derivado [Pedido] Usar x item em um monstro e ganhar outfit
@Naze brother nao tenho palavras pra descrever o quão agradecido estou vlw msm de coraçao precisava muito desse script funcionou 100% mais outfit caso queira, testa ae local cfg = { {name = "Outfit Dragon", mob = "bug", outfit_male = 367, outfit_female = 366, addon = "1"}, -- name = nome da outfit, mob = nome do monstro {name = "Outfit Lord", mob = "dragon lord", outfit_male = 367, outfit_female = 366, addon = "2"}, -- outfit_male = lookType da outfit de homem, outfit_female = lookType da outfit de mulher {name = "Outfit Frost", mob = "dragon frost", outfit_male = 367, outfit_female = 366, addon = "3"}, -- addon = (1 = somendo addon 1) (2 = somente addon 2) (3 = todos addons) } function onUse(player, item, fromPosition, target, toPositio) local monster = Monster(target) if monster then for i, _ in pairs(cfg) do if (_.mob:lower() == monster:getName():lower()) then local lookType = player:getSex() % 2 and _.outfit_male or _.outfit_female if not player:hasOutfit(lookType, _.addon) then player:addOutfitAddon(lookType, _.addon) player:sendTextMessage(22, "Voce ganhou a ".. _.name ..". Parabens") monster:remove() item:remove(1) return true end player:sendTextMessage(MESSAGE_STATUS_CONSOLE_RED, "Voce ja tem essa outfit") return false end end player:sendTextMessage(MESSAGE_STATUS_CONSOLE_RED, "Esse monstro nao e valido") return false end player:sendTextMessage(MESSAGE_STATUS_CONSOLE_RED, "Isso nao e possivel") return false end @Naze brother e se eu fosse colocar pra usar o item em outro item e ganhar a outfit ficaria muito dificil para modificar ? queria colocar tambem alguns tipo vc usa o item em determinada estatua e ganha a outfit tambem .
-
(Resolvido)Derivado [Pedido] Usar x item em um monstro e ganhar outfit
Ola pessoal queria pedir a ajuda de vocês com um script de action que quando o player usa o item por exemplo em um dragon ele ganha uma determinada outfit com addon 1 e 2 e a criatura e o item era removido alguem poderia me ajudar ? uso tfs 1.3. no caso seria essa outfit do meu xml <outfit type="1" looktype="1210" name="Golden" premium="no" unlocked="no" enabled="yes" /> Qual servidor ou website você utiliza como base? 8.6 tfs 1.3 Qual o motivo deste tópico? Action, Outfit Está surgindo algum erro? Se sim coloque-o aqui. Você tem o código disponível? Se tiver publique-o aqui: Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.