Postado Dezembro 25, 2013 11 anos Gente estou confuso, o que será que quando uso o item num monster de domar e não doma mas a target aparece pra usar nele estou muito confuso pois tenho todas as montaria novas e as antiga funfando perfeitamente, a v do meu server ta em 10.10 ja fiz site ta tudo filé mas esse problema da montaria ta me deixando loko como vc pode me ajudar ? Meu site configurado: Imagem do servidor pq é um projeto sério já removi vários bugs do gesior e do ot 10.10 só falta da montaria que está um pouco difícil. Minha página aqui Qual será o erro ? local function tameMonster(cid, item, itemEx, tame, run, broken) n = math.random(100) if n <= broken then doCreatureSay(cid, "O item quebrou! :@", TALKTYPE_ORANGE_1) doRemoveItem(item.uid) elseif n > broken and n <= (tame+broken) then doRemoveItem(item.uid) doCreatureSay(cid, "Montado com sucesso! :D", TALKTYPE_ORANGE_1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce domou com sucesso "..getCreatureName(itemEx.uid)..".") return true elseif n > (tame+broken) and n <= (tame+broken+run) then doCreatureSay(cid, "O monstro escapou", TALKTYPE_ORANGE_1) doRemoveCreature(itemEx.uid) else doCreatureSay(cid, "Tente denovo!! :(", TALKTYPE_ORANGE_1) end return false end local function inArray(table, value) for i,v in pairs(table) do if (v.name == string.lower(value)) then return i end end return 0 end local mounts = { {item = 13307, name = "wailing widow", id = 1, tame=60, run=20, broken=20}, {item = 13298, name = "terror bird", id = 2, tame=40, run=20, broken=40}, {item = 5907, name = "bear", id = 3, tame=90, run=5, broken=5}, {item = 13295, name = "black sheep", id = 4, tame=40, run=30, broken=30}, {item = 13293, name = "midnight panther", id = 5, tame=60, run=20, broken=20}, {item = 13538, name = "panda", id = 19, tame=50, run=25, broken=25}, {item = 13539, name = "enraged white deer", id = 18, tame=70, run=15, broken=15}, {item = 13294, name = "draptor", id = 6, tame=60, run=20, broken=20}, {item = 13537, name = "donkey", id =13, tame=40, run=30, broken=30}, {item = 13305, name = "crustacea gigantica", id = 7, tame=80, run=10, broken=10}, {item = 13536, name = "crystal wolf", id = 16, tame=60, run=20, broken=20}, {item = 13247, name = "boar", id = 10, tame=80, run=10, broken=10}, {item = 13498, name = "sandstone scorpion", id = 21, tame=70, run=10, broken=20}, {item = 13508, name = "slug", id = 14, tame=60, run=20, broken=20}, {item = 13535, name = "dromedary", id = 20, tame=60, run=20, broken=20}, {item = 13291, name = "undead cavebear", id = 12, tame=70, run=10, broken=20}, {item = 13939, name = "fire horse", id = 22, tame=60, run=20, broken=20}, {item = 13939, name = "gray horse", id = 29, tame=60, run=20, broken=20}, {item = 13939, name = "brown war horse", id = 17, tame=60, run=20, broken=20}, {item = 15546, name = "lady bug", id = 27, tame=70, run=10, broken=20}, {item = 15545, name = "manta", id = 28, tame=60, run=20, broken=20}, {item = 13938, name = "uniwheel", id = 15, tame=70, run=15, broken=15}, {item = 13292, name = "tin lizzard", id = 8, tame=70, run=15, broken=15}, {item = 15546, name = "lady bug", id = 27, tame=70, run=15, broken=15}, {item = 15545, name = "manta ray", id = 28, tame=70, run=15, broken=15}, {item = 18447, name = "ironblight", id = 29, tame=70, run=15, broken=15}, {item = 18448, name = "magma crawler", id = 30, tame=70, run=15, broken=15}, {item = 18449, name = "dragonling", id = 31, tame=70, run=15, broken=15}, {item = 18516, name = "gnarlhound", id = 32, tame=70, run=15, broken=15}, {item = 20138, name = "water buffalo", id = 35, tame=70, run=15, broken=15}, {item = 21452, name = "gravedigger", id = 39, tame=100, run=0, broken=0}, } function onUse(cid, item, fromPosition, itemEx, toPosition) if isCreature(itemEx.uid) then if inArray(mounts, getCreatureName(itemEx.uid)) > 0 then i = inArray(mounts, getCreatureName(itemEx.uid)) if item.itemid == mounts[i].item and not getPlayerMount(cid, mounts[i].id) then if tameMonster(cid, item, itemEx, mounts[i].tame, mounts[i].run, mounts[i].broken) then doSendMagicEffect(fromPosition, CONST_ME_MAGIC_BLUE) doRemoveCreature(itemEx.uid) doPlayerAddMount(cid, mounts[i].id) else doSendMagicEffect(toPosition, CONST_ME_POFF) end end end end return true end Action <!--Mounts--> <action itemid="13292;13306" script="tinlizzard.lua"/> --tin lizzard <action itemid="13295" script="mounts.lua"/> --reins <action itemid="13294" script="mounts.lua"/> --harness <action itemid="13293" script="mounts.lua"/> --leather whip <action itemid="13298" script="mounts.lua"/> --carrot on a stick <action itemid="13247" script="mounts.lua"/> --hunting horn <action itemid="13305" script="mounts.lua"/> --giant Shrimp <action itemid="13291" script="mounts.lua"/> --maxilla maximus <action itemid="5907" script="mounts.lua"/> --slingshot <action itemid="13307" script="mounts.lua"/> --sweet smelling bait <action itemid="13537" script="mounts.lua"/> --bag of apple slices <action itemid="13535" script="mounts.lua"/> --fist on a stick <action itemid="13536" script="mounts.lua"/> --diapason <action itemid="13538" script="mounts.lua"/> --bamboo leaves <action itemid="13539" script="mounts.lua"/> --golden fir cone <action itemid="13498" script="mounts.lua"/> --scorpion sceptre <action itemid="13508" script="mounts.lua"/> --slug drug <action itemid="13939" script="mounts.lua"/> --sugar oat <action itemid="15545" script="mounts.lua"/> --fox tail <action itemid="15546" script="mounts.lua"/> --four leaf clover <action itemid="18449" script="mounts.lua"/> --decorative ribbow <action itemid="18448" script="mounts.lua"/> --glow wine <action itemid="18447" script="mounts.lua"/> --iron loadstone <action itemid="18516" script="mounts.lua"/> --golem wrench <action itemid="21452" script="mounts.lua"/> --nail case <action itemid="20138" script="mounts.lua"/> --leech <action itemid="13938;13937" script="uniwheel.lua"/> --can golden of oil Editado Dezembro 25, 2013 11 anos por alexxxxxxx (veja o histórico de edições) Eu sou um entusiasta da programação apaixonado por ajudar a comunidade open source a crescer. Sempre em busca de novos desafios e oportunidades para contribuir com meu código. #OpenSource #Programação #Contribuição
Postado Janeiro 4, 2014 11 anos O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Scripting → Outros Tipos" Para: "OTServ → Suporte OTServ" Bruno Carvalho / Ex-Administrador TibiaKing [email protected] Em 26/12/2016 em 03:47, Spraypaint disse: A força da alienação vem dessa fragilidade dos indivíduos, quando apenas conseguem identificar o que os separa e não o que os une. -miltinho
Postado Abril 21, 2014 11 anos meu servidor esta igual tambem sistema de mounts igualzinho e nao funciona Venha jogar o melhor servidor de PVP da atualidade WAR-SERVER.ORG
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.