Tudo que Huziwara postou
-
Como colocar npc pra frente
Bote isso no arquivo do script do NPC : function selfTurn(direction) doCreatureSetLookDirection(getNpcId(), south) doCreatureSetLookDirection(getNpcId(), 3) end local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end doCreatureSetLookDirection(getNpcId(), south) doCreatureSetLookDirection(getNpcId(), 3) local node1 = keywordHandler:addKeyword({'promot'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can promote you for 20000 gold coins. Do you want me to promote you?'}) node1:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 20000, level = 20, promotion = 1, text = 'Congratulations! You are now promoted.'}) node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then, come back when you are ready.', reset = true}) npcHandler:addModule(FocusModule:new()) Espero que funcione (yn) ! Att. Huziwara no Mokou
-
Como colocar npc pra frente
Exato ! Caso não funcione, me informe qual seria seu protocolo, qual TFS e tals... Espero ter ajudado ! Att. Huziwara no Mokou
-
[Ot-Serv] Net Compartilhada
Ele falo de uma forma ofenciva... Mas tudo bem. @Luuan Só para complementar o comentario do Robson... O navegador precisa ser o IExplorer ! (No meu computador é assim.) Att. Huziwara no Mokou
-
Como colocar npc pra frente
Que sejá, é só ele ler, o importante é que ele sabe a direção, hehehe. Mas a intenção foi boa direction="south" Att. Huziwara no Mokou
-
Como colocar npc pra frente
Use isso no XML do NPC : direction="north" Espero ter ajudado ! Att. Huziwara no Mokou
-
[New] Monstros Com Pk Red Ou Black Ou Yellow !
Para complementar, tambem existe isso nos TFS 0.4 só que para emblemas de guild war ... Só adicionar isso : <flag emblem="1"/> -- Nesse caso seria o emblem verde ! ( se eu não me engano) <flag emblem="2"/> -- Nesse caso seria o emblem vermelho ! <flag emblem="3"/> -- Nesse caso seria o emblem azul ! ( se eu não me engano) @raell5 Parabéns, é um bom destaque para mostrar que o monstro é forte e editado ! Levou meu REP+ Att. Huziwara no Mokou
-
[Ot-Serv] Net Compartilhada
Olha do jeito que você fala... A proxima eu vou reportar ! Att. Huziwara no Mokou
-
[Resolvido] [PEDIDO] Efeito Nas Armas De Ataque !
Aqui está : local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_YALAHARIGHOST) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SNOWBALL) setCombatFormula(combat, COMBAT_FORMULA_SKILL, 1, 0, 1, 0) function onGetFormulaValues(cid, level) local danoporlevel = 5 local min = -((level*danoporlevel)-500) local max = -((level*danoporlevel)+2000) return min, max end setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues") function onUseWeapon(cid, var) return doCombat(cid, combat, var) end Só subistituir pelo o que eu te passei lá ! Espero ter ajudado ! Att. Huziwara no Mokou
- [Resolvido] [PEDIDO] Efeito Nas Armas De Ataque !
-
[Resolvido] Exp quando morre
Você quer isso para todos os levels, ou apartir de 1 level ? Se for para todos os levels, é só você diminuir no config.lua : deathLostPercent = 10 Quando o player morre, ele perde 10% de toda exp que ele tem... Dai é só você diminuir, espero ter ajudado ! Att. Huziwara no Mokou
- [ACTION] Upgrade System
-
Promotion Item (MySQL)
Olá TKbianos, Estou aqui para postar pra vocês o script do item que quando usa, ganha a promotion 2 (Caso seu server tenha 3 niveis de vocação. Exemplo : Sorcerer > Master Sorcerer > Demigod. Tag XML : <action itemid="9971" event="script" value="promoitem.lua"/> Crie um arquivo .lua dentro da pasta scripts da pasta action e nomeie para promoitem.lua e coloque isso : function onUse(cid, item, fromPosition, itemEx, toPosition) local vocation = getPlayerVocation(cid) local id = getPlayerGUID(cid) if(item.itemid == 9971) then if(isInArray({5,6,7,8,9,10,11,12}, getPlayerVocation(cid)) == TRUE) then elseif vocation == 5 then db.executeQuery("UPDATE `players` SET `vocation` = 9 WHERE `id` ='"..id.."';") elseif vocation == 6 then db.executeQuery("UPDATE `players` SET `vocation` = 10 WHERE `id` ='"..id.."';") elseif vocation == 7 then db.executeQuery("UPDATE `players` SET `vocation` = 11 WHERE `id` ='"..id.."';") elseif vocation == 8 then db.executeQuery("UPDATE `players` SET `vocation` = 12 WHERE `id` ='"..id.."';") end doSendMagicEffect(fromPosition, CCONST_ME_MAGIC_RED) doRemoveItem(item.uid, 1) doPlayerSendTextMessage(cid, 20, "You are a ".. getPlayerVocationName(cid) ..".") return true end end Espero ter ajudado ! Att. Huziwara no Mokou
- (Resolvido) [PEDIDO] Item que da promotion
-
Stamina não sobe!
Me passe toda parte de stamina do seu config.lua para ver se eu consigo lhe ajudar ! Att. Huziwara no Mokou
-
[TUTO] Configurando config.lua
Olá galerinha TKbianos, Eu postei aqui, a tradução (as funções) que estão no config.lua, vejo muita pessoa com dúvidas que acha que precisa fazer script, mas naverdade essas dúvidas estão na cara de vocês, bem no config.lua! (Botei os necessários) Config.lua : accountManager = "no" (Utilização de account manager.) newPlayerChooseVoc = "yes" (Se o player pode escolher a vocação, caso esteja em "no" ele vai começar como "no vocation".) {newPlayerSpawnPosX = 155} {newPlayerSpawnPosY = 39} (Posição do player criado pelo account manager.) {newPlayerSpawnPosZ = 7} newPlayerTownId = 1 (ID da cidade [configurado no map editor].) newPlayerLevel = 8 ( Level do novo player criado pelo account manager.) newPlayerMagicLevel = 0 (Magic level do novo player criado pelo account manager.) generateAccountNumber = "no" (Se o player escolhe ou não o account, caso esteje "no" o account manager vai solicitar um Account Number sozinho.) ----------------------------------------------------------------------------------------------------- redSkullLength = 15 * 24 * 60 * 60 (Tempo para sair o Red Skull nesse caso aqui está como 15 dias.) blackSkullLength = 30 * 24 * 60 * 60 (Tempo para sair o Black Skull nesse caso aqui está como 15 dias.) dailyFragsToRedSkull = 10 ( Quantos frags necessários em dia pra pegar Red Skull.) weeklyFragsToRedSkull = 40 ( Quantos frags necessários em semana pra pegar Red Skull.) monthlyFragsToRedSkull = 90 ( Quantos frags necessários em mês pra pegar Red Skull.) dailyFragsToBlackSkull = dailyFragsToRedSkull ( Quantos frags necessários em dia pra pegar Black Skull (Sendo que você precisa pegar a mesma quantidade de frags de Red Skull, estando Red Skull).) weeklyFragsToBlackSkull = weeklyFragsToRedSkull ( Quantos frags necessários em semana pra pegar Black Skull (Sendo que você precisa pegar a mesma quantidade de frags de Red Skull, estando Red Skull).) monthlyFragsToBlackSkull = monthlyFragsToRedSkull ( Quantos frags necessários em mês pra pegar Black Skull (Sendo que você precisa pegar a mesma quantidade de frags de Red Skull, estando Red Skull).) blackSkulledDeathHealth = 40 ( A quantidade de vida que você fica após morrer de Black Skull.) blackSkulledDeathMana = 0 ( A quantidade de mana que você fica após morrer de Black Skull.) useBlackSkull = true (Se vai ter Black Skull no seu server, true ou false.) worldType = "open" ( Open = PVP / Optional = Non-PVP / Hardscore (Acho que é assim) = Enforced) protectionLevel = 80 (Level para que os players possam cair na porrada se se matarem.) pzLocked = 30 * 1000 ( Quanto tempo demora pra sair o battle "Espadinhas" , aqui no caso está 30 segundos.) huntingDuration = 30 * 1000 ( Quanto tempo demora pra sair o hunting "Espadinhas Vermelhas", aqui no caso está 30 segundos.) criticalHitChance = 7 (Chance de attack critico, em %) criticalHitMultiplier = 1 (Quando o player da critico o attack dele vai multiplicar em : no caso "1") displayCriticalHitNotify = true (Aparece quando o player da um attack critico?) removeWeaponAmmunition = false (Remover munição) removeWeaponCharges = false (Remover carga) removeRuneCharges = "no" (Remover carga) whiteSkullTime = 5 * 60 * 1000 (Tempo para sair o White Skull, nesse caso 5 minutos.) showHealingDamage = true (Aparece a quantidade de health que recupera) showHealingDamageForMonsters = false (Aparece a quantidade de health que recupera (Nos Monstros)) stopAttackingAtExit = false (Se vai parar de atacar quando o player der exit) deathLostPercent = 10 (Quantidade em % de exp que o player vai perder ao morrer) onePlayerOnlinePerAccount = true (Se só pode entrar 1 player por account, caso bote false, e tiver 3 chars, vai ser possivel jogar com esses 3 chars) premiumPlayerSkipWaitList = false (Se o player for premium ele, nesse caso não pularia a fila de espera) ingameGuildManagement = true (Usar os comandos do tipo : !createguild/!joinguild.) cleanProtectedZones = true (Quando der clean, vai dar clean em todas as areas protection Zone, de DP até Templo.) allowChangeOutfit = true (Permitir se o player pode trocar o Outfit.) allowChangeColors = true (Permitir se o player pode trocar a Cor do Outfit.) allowChangeAddons = true (Permitir se o player pode trocar os Addons.) spellNameInsteadOfWords = true (Nesse caso a spell exura, quando usada sai a mensagem "exura", mas se tivesse false, ao usar exura, vai aparecer a mensagem "Light Healing".) emoteSpells = true (Mensagem laranja.) idleWarningTime = 239 * 60 * 1000 ( O tempo para dar o aviso de Idle (Quando o PLAYER fica muito tempo parada)) idleKickTime = 240 * 60 * 1000 (O tempo para o player se automaticamente kickado.) Bem, eu botei esses porque são esses que os caras tem mais dúvidas. Espero ter ajudado ! Att. Huziwara no Mokou
-
(Resolvido) [Pedido] Antidote rune
Testei aqui, não porque eu preciso, mas sim, pra ajudar ! Funcionando 100% Att. Huziwara no Mokou
-
[Pedido] player recebe metade dos danos
Mestre, creio que isso sejá muito dificil em arquivos de lua, pois isso é configurado em C++. Att. Huziwara no Mokou
-
[SHOW-OFF] Bela Casa
Bonito em estrutura em enfeite, porem, não consederaria uma house, pois em houses não fica legal com bastante detalhes (pedras e gramas) por dentro ou em paredes como (musgos e bandeiras). Bem bonito mesmo, mas não usaria para player morar. Att. Huziwara no Mokou
-
(Resolvido) [PEDIDO] Item que da promotion
Há, desculpe-me, esqueci de por um "end" no final. function onUse(cid, item, fromPosition, itemEx, toPosition) if(item.itemid == 9971) then local id = getPlayerGUID(cid) db.executeQuery("UPDATE `players` SET `promotion` = 2 WHERE `id` ='"..id.."';") doSendMagicEffect(fromPosition, CCONST_ME_MAGIC_RED) doRemoveItem(item.uid, 1) return true end end Se não funcionar tente mais uma vez com esse : function onUse(cid, item, fromPosition, itemEx, toPosition) local vocation = getPlayerVocation(cid) local id = getPlayerGUID(cid) if(item.itemid == 9971) then if(isInArray({5,6,7,8,9,10,11,12}, getPlayerVocation(cid)) == TRUE) then elseif vocation == 5 then db.executeQuery("UPDATE `players` SET `vocation` = 9, `promotion` = 2 WHERE `id` ='"..id.."';") elseif vocation == 6 then db.executeQuery("UPDATE `players` SET `vocation` = 10, `promotion` = 2 WHERE `id` ='"..id.."';") elseif vocation == 7 then db.executeQuery("UPDATE `players` SET `vocation` = 11, `promotion` = 2 WHERE `id` ='"..id.."';") elseif vocation == 8 then db.executeQuery("UPDATE `players` SET `vocation` = 12, `promotion` = 2 WHERE `id` ='"..id.."';") end doSendMagicEffect(fromPosition, CCONST_ME_MAGIC_RED) doRemoveItem(item.uid, 1) return true end end Espero ter ajudado ! Att. Huziwara no Mokou
-
[SHOW-OFF] Castelo
Bem, tem 1 bug ai, que é na escada de cima. Você precisa melhorar : » Formato, pois geralmente castelo legal tem um formato simétrico. » E precisa melhorar nos enfeites. Mas ta bem legal, meus parabéns ! Att. Huziwara no Mokou
-
(Resolvido) [Foto] Comment de Ots
Se você quer por foto no comentário, use isso : Tente isso ou se não tente pegar o código quando você uploada alguma imagem no Imageshack.us (código de fórum) Espero ter ajudado ! Att. Huziwara no Mokou
-
(Resolvido) [PEDIDO] Item que da promotion
Olá, aqui está seu pedido : Tag XML : <action itemid="9971" event="script" value="promoitem.lua"/> Crie um arquivo .lua com nome promoitem dentro da pasta script e bote isso : function onUse(cid, item, fromPosition, itemEx, toPosition) if(item.itemid == 9971) then local id = getPlayerGUID(cid) db.executeQuery("UPDATE `players` SET `promotion` = 2 WHERE `id` ='"..id.."';") doSendMagicEffect(fromPosition, CCONST_ME_MAGIC_RED) doRemoveItem(item.uid, 1) return true end Não testei, caso apareça algum erro volte aqui e insista ! Espero ter ajudado ! Att. Huziwara no Mokou
- Monster Ajuda
-
Peça seu mapa II
@Leandrinhow Desculpa mas eu não entendi o"» Estilo do mapa : medusa"
-
Taming 100% igual Global !
Olá TKbianos, Descidi compartilhar a você o taming.lua, feito pelo Otland e explicado por mim... Bem, o que ele faz ? Simples, esse script da função a todos os itens de montaria (aqueles que servem para capturar o monstro) Então, vamos lá ! XML code : <action itemid="13295" event="script" value="other/taming.lua"/> <!-- reins --> <action itemid="13294" event="script" value="other/taming.lua"/> <!-- harness --> <action itemid="13293" event="script" value="other/taming.lua"/> <!-- leather whip --> <action itemid="13298" event="script" value="other/taming.lua"/> <!-- carrot on a stick --> <action itemid="13247" event="script" value="other/taming.lua"/> <!-- hunting horn --> <action itemid="13305" event="script" value="other/taming.lua"/> <!-- giant shrimp --> <action itemid="13291" event="script" value="other/taming.lua"/> <!-- maxilla maximus --> <action itemid="5907" event="script" value="other/taming.lua"/> <!-- slingshot --> <action itemid="13307" event="script" value="other/taming.lua"/> <!-- sweet smelling bait --> <action itemid="13292" event="script" value="other/taming.lua"/> <!-- tin key --> <action itemid="13938" event="script" value="other/taming.lua"/> <!-- golden can of oil --> <action itemid="13939" event="script" value="other/taming.lua"/> <!-- sugar oat --> <action itemid="13508" event="script" value="other/taming.lua"/> <!-- slug drug --> <action itemid="13535" event="script" value="other/taming.lua"/> <!-- fist on a stick --> <action itemid="13536" event="script" value="other/taming.lua"/> <!-- diapason --> <action itemid="13537" event="script" value="other/taming.lua"/> <!-- bag of apple slices --> <action itemid="13538" event="script" value="other/taming.lua"/> <!-- bamboo leaves --> <action itemid="13539" event="script" value="other/taming.lua"/> <!-- golden fir cone --> <action itemid="13498" event="script" value="other/taming.lua"/> <!-- scorpion sceptre --> Crie um arquivo lua chamado : taming.lua e bote dentro da pasta other e botei isso: local ACTION_RUN, ACTION_BREAK, ACTION_NONE, ACTION_ALL = 1, 2, 3, 4 local TYPE_MONSTER, TYPE_NPC, TYPE_ACTION, TYPE_UNIQUE = 1, 2, 3, 4 local config = { [5907] = {NAME = 'Bear', ID = 3, 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 bear."}, [13295] = {NAME = 'Black Sheep', ID = 4, 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."}, [13293] = {NAME = 'Midnight Panther', ID = 5, TYPE = TYPE_MONSTER, CHANCE = 40, FAIL_MSG = { {1, "The panther has escaped."}, {2, "The whip broke."} }, SUCCESS_MSG = "You have tamed the panther."}, [13298] = {NAME = 'Terror Bird', ID = 2, 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."}, [13247] = {NAME = 'Boar', ID = 10, 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."}, [13305] = {NAME = 'Crustacea Gigantica', ID = 7, 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."}, [13291] = {NAME = 'Undead Cavebear', ID = 12, TYPE = TYPE_MONSTER, CHANCE = 40, FAIL_MSG = { {1, "The undead bear has run away."} }, SUCCESS_MSG = "You have tamed the skeleton."}, [13307] = {NAME = 'Wailing Widow', ID = 1, 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."}, [13292] = {NAME = 'Tin Lizzard', ID = 8, TYPE = TYPE_NPC, CHANCE = 40, FAIL_MSG = { {2, "The key broke inside."} }, SUCCESS_MSG = "You have started the Tin Lizzard!"}, [13294] = {NAME = 'Draptor', ID = 6, 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."}, [13536] = {NAME = 'Crystal Wolf', ID = 16, TYPE = TYPE_MONSTER, CHANCE = 40, FAIL_MSG = { {1, "The wolf has run away."} }, SUCCESS_MSG = "You have tamed the wolf."}, [13539] = {NAME = 'White Deer', ID = 18, TYPE = TYPE_MONSTER, CHANCE = 40, FAIL_MSG = { {2, "The cone broke."}, {3, "The deer has fled in fear."} }, SUCCESS_MSG = "You have tamed the deer."}, [13538] = {NAME = 'Panda', ID = 19, TYPE = TYPE_MONSTER, CHANCE = 40, FAIL_MSG = { {4, "Panda ate the leaves and ran away."} }, SUCCESS_MSG = "You have tamed the panda."}, [13535] = {NAME = 'Dromedary', ID = 20, TYPE = TYPE_MONSTER, CHANCE = 40, FAIL_MSG = { {1, "Dromedary has run away."} }, SUCCESS_MSG = "You have tamed the dromedary."}, [13498] = {NAME = 'Sandstone Scorpion', ID = 21, TYPE = TYPE_MONSTER, CHANCE = 40, FAIL_MSG = { {1, "The scorpion has vanished."}, {2, "Scorpion broken the sceptre."} }, SUCCESS_MSG = "You have tamed the scorpion"}, [13537] = {NAME = 'Donkey', ID = 13, TYPE = TYPE_MONSTER, CHANCE = 40, FAIL_MSG = { {1, "The witch has escaped!"} }, SUCCESS_MSG = "You have tamed the mule."}, [13938] = {NAME = 'Uniwheel', ID = 15, TYPE = TYPE_NPC, CHANCE = 40, FAIL_MSG = { {2, "The oil is having no effect."} }, SUCCESS_MSG = "You have found an Uniwheel."}, [13508] = {NAME = 'Slug', ID = 14, 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."}, [13939] = {NAME = 'War Horse', ID = 23, 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."} } local function doFailAction(cid, mount, pos, item, itemEx) local action, effect = mount.FAIL_MSG[math.random(1, table.maxn(mount.FAIL_MSG))], CONST_ME_POFF if(action[1] == ACTION_RUN) then doRemoveCreature(itemEx.uid) elseif(action[1] == ACTION_BREAK) then effect = CONST_ME_BLOCKHIT doRemoveItem(item.uid, 1) elseif(action[1] == ACTION_ALL) then doRemoveCreature(itemEx.uid) doRemoveItem(item.uid, 1) end doSendMagicEffect(pos, effect) doCreatureSay(cid, action[2], TALKTYPE_MONSTER_SAY) return action end function onUse(cid, item, fromPosition, itemEx, toPosition) local mount = config[item.itemid] if(mount == nil or getPlayerMount(cid, mount.ID)) then return false end local rand = math.random(1, 100) --Monster Mount if(isMonster(itemEx.uid) and not isSummon(itemEx.uid) and mount.TYPE == TYPE_MONSTER) then if(mount.NAME == getCreatureName(itemEx.uid)) then if(rand > mount.CHANCE) then doFailAction(cid, mount, toPosition, item, itemEx) return true end doPlayerAddMount(cid, mount.ID) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, mount.SUCCESS_MSG) doCreatureSay(cid, mount.SUCCESS_MSG, TALKTYPE_MONSTER_SAY) doRemoveCreature(itemEx.uid) doSendMagicEffect(toPosition, CONST_ME_POFF) doRemoveItem(item.uid, 1) return true end --NPC Mount elseif(isNpc(itemEx.uid) and mount.TYPE == TYPE_NPC) then if(mount.NAME == getCreatureName(itemEx.uid)) then if(rand > mount.CHANCE) then doFailAction(cid, mount, toPosition, item, itemEx) return true end doPlayerAddMount(cid, mount.ID) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, mount.SUCCESS_MSG) doCreatureSay(cid, mount.SUCCESS_MSG, TALKTYPE_MONSTER_SAY) doSendMagicEffect(toPosition, CONST_ME_MAGIC_GREEN) doRemoveItem(item.uid, 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) return true end doPlayerAddMount(cid, mount.ID) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, mount.SUCCESS_MSG) doCreatureSay(cid, mount.SUCCESS_MSG, TALKTYPE_MONSTER_SAY) doSendMagicEffect(toPosition, CONST_ME_MAGIC_GREEN) doRemoveItem(item.uid, 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) return true end doPlayerAddMount(cid, mount.ID) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, mount.SUCCESS_MSG) doCreatureSay(cid, mount.SUCCESS_MSG, TALKTYPE_MONSTER_SAY) doSendMagicEffect(toPosition, CONST_ME_MAGIC_GREEN) doRemoveItem(item.uid, 1) return true end end return false end Explicando : [5907] = {NAME = 'Bear', ID = 3, 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 bear."}, 5907 = Item que precisa ser usado ! Name = O alvo (Nesse alvo é que você ira usar o item). ID = Id da mount, isso é configurado no mount.xml. TYPE = os tipos são : TYPE_MONSTER, TYPE_NPC (Existem 2 mounts que são feitos por esse tipo),TYPE_ACTION, TYPE_UNIQUE. Chance = A chance de conseguir em %. FAIL_MSG = Aqui você pode botar diversas mensagens com diversas de diversas funções... Exemplo : {1, "O urso correu pra longe."} Nesse caso, aquele 1 significa que o monstro fugiu, e então a mensagem você pode mudar, mas você tambem pode adicionar o tipo 2, o tipo 2 funciona como se o item tivesse quebrado... {2, "O urso comeu a banana."}, o tipo 3 é que nada acontece ... {3, "O urso latiu pra você."} e o tipo 4, é aonde o player se fode todo onde tudo acontece e nada a favor do player {4, "O urso comeu a banana e saiu correndo."} SUCCESS_MSG = É a mensagem de sucesso, exemplo : "Você capturo o urso mais estranho do mundo." Ajudei ? não precisa de rep +, apenas comente ! Att. Huziwara no Mokou