Nukayool Posted October 8, 2017 at 02:43 PM Share Posted October 8, 2017 at 02:43 PM Boas Malta, É o seguinte os jogadores ao alterarem ou mudarem de mapa conseguem "bugar" as montadas. Isto é ela fica lá equipada e não estão montados. Eu queria corrigir isto de maneira a que ou fiquem montados quando alteram com ela equipada ou então ela sai-se automaticamente. cumpz Link to comment
[Admin] tierrilopes Posted October 9, 2017 at 03:12 AM Share Posted October 9, 2017 at 03:12 AM Coloca aqui o id de uma montada sff, ou print dela equipada para ver o slot estive com isso ha uns dias e sei que esta aqui algures Link to comment
Nukayool Posted October 9, 2017 at 09:39 PM Author Share Posted October 9, 2017 at 09:39 PM Boas @Tierri Lopes De momento são todas, se alterar ficam equipadas lá mas não fico montado. cumpz Link to comment
[Admin] tierrilopes Posted October 15, 2017 at 12:00 PM Share Posted October 15, 2017 at 12:00 PM Olá, acho que já tenho a solução. Podes meter aqui a tua quest de montadas sff? Link to comment
Nukayool Posted October 15, 2017 at 01:20 PM Author Share Posted October 15, 2017 at 01:20 PM Boas, Desde já Obrigado. quest ride_ramadan begin state start begin function Ride( vnum, remain_time ) ride_info = { ------------------------------------------------------------------------------------------------------------------------------- [71114] = {20110, 60*60*24*30, apply.DEF_GRADE_BONUS, 100, 1, false}, --[71115] = {00000, 60*10, apply.NONE, 0, 1, true }, [71116] = {20111, 60*60*24*30, apply.DEF_GRADE_BONUS, 100, 1, false}, --[71117] = {00000, 60*10, apply.NONE, 0, 1, true }, [71118] = {20112, 60*60*24*30, apply.DEF_GRADE_BONUS, 100, 1, false}, --[71119] = {00000, 60*10, apply.NONE, 0, 1, true }, [71120] = {20113, 60*60*24*30, apply.DEF_GRADE_BONUS, 100, 1, false}, --[71121] = {00000, 60*10, apply.NONE, 0, 1, true }, ------------------------------------------------------------------------------------------------------------------------------- [71124] = {20114, 60*60*24*30, apply.MOV_SPEED, 60, 1, false}, [71125] = {20115, 60*60*24*30, apply.MOV_SPEED, 60, 1, false}, [71126] = {20116, 60*60*24*30, apply.MOV_SPEED, 60, 1, false}, [71127] = {20117, 60*60*24*30, apply.MOV_SPEED, 60, 1, false}, [71128] = {20118, 60*60*24*30, apply.MOV_SPEED, 60, 1, false}, ------------------------------------------------------------------------------------------------------------------------------- [71131] = {20119, 60*60*24*7, apply.MOV_SPEED, 60, 1, false}, [71132] = {20119, 60*60*24*15, apply.MOV_SPEED, 60, 1, false}, [71133] = {20119, 60*60*24*30, apply.MOV_SPEED, 60, 1, false}, [71134] = {20119, 60*60*24*60, apply.MOV_SPEED, 60, 1, false}, ------------------------------------------------------------------------------------------------------------------------------- [71137] = {20120, 60*60*24*30, apply.MOV_SPEED, 60, 1, false}, [71138] = {20121, 60*60*24*30, apply.MOV_SPEED, 60, 1, false}, [71139] = {20122, 60*60*24*30, apply.MOV_SPEED, 60, 1, false}, [71140] = {20123, 60*60*24*30, apply.MOV_SPEED, 60, 1, false}, [71141] = {20124, 60*60*24*30, apply.MOV_SPEED, 60, 1, false}, [71142] = {20125, 60*60*24*30, apply.MOV_SPEED, 60, 1, false}, ------------------------------------------------------------------------------------------------------------------------------- [71161] = {20219, 60*60*24*30, apply.MOV_SPEED, 60, 1, false}, [71164] = {20220, 60*60*24*30, apply.MOV_SPEED, 60, 1, false}, [71165] = {20221, 60*60*24*30, apply.MOV_SPEED, 60, 1, false}, [71166] = {20222, 60*60*24*30, apply.MOV_SPEED, 60, 1, false}, [71171] = {20227, 60*60*24*30, apply.MOV_SPEED, 60, 1, false}, [71172] = {20226, 60*60*24*30, apply.MOV_SPEED, 60, 1, false}, [71176] = {20231, 60*60*24*30, apply.MOV_SPEED, 30, 1, false}, [71177] = {20232, 60*60*24*30, apply.MOV_SPEED, 30, 1, false}, [71182] = {20233, 60*60*24*30, apply.MOV_SPEED, 30, 1, false}, [71183] = {20234, 60*60*24*30, apply.MOV_SPEED, 30, 1, false}, [71184] = {20235, 60*60*24*30, apply.MOV_SPEED, 30, 1, false}, [71185] = {20236, 60*60*24*30, apply.MOV_SPEED, 30, 1, false}, [71186] = {20237, 60*60*24*30, apply.MOV_SPEED, 30, 1, false}, [71187] = {20238, 60*60*24*30, apply.MOV_SPEED, 30, 1, false}, ------------------------------------------------------------------------------------------------------------------------------- [71192] = {20239, 60*60*24*30, apply.MOV_SPEED, 20, 1, false}, [71193] = {20240, 60*60*24*30, apply.MOV_SPEED, 20, 1, false}, ------------------------------------------------------------------------------------------------------------------------------- [52001] = {20217, 60*60*24*30, apply.EXP_DOUBLE_BONUS, 20, 1, false}, [52002] = {20218, 60*60*24*30, apply.EXP_DOUBLE_BONUS, 20, 1, false}, [52003] = {20214, 60*60*24*30, apply.EXP_DOUBLE_BONUS, 20, 1, false}, [52004] = {20215, 60*60*24*30, apply.EXP_DOUBLE_BONUS, 20, 1, false}, [52005] = {20220, 60*60*24*30, apply.EXP_DOUBLE_BONUS, 20, 1, false}, --------------------------------------Páscoa 2017--------------------------------------------------------------------- [52118] = {20228, 60*60*24*30, apply.MOV_SPEED, 60, 1, false}, [52119] = {20229, 60*60*24*30, apply.MOV_SPEED, 60, 1, false}, [52120] = {20230, 60*60*24*30, apply.MOV_SPEED, 60, 1, false}, ------------------------------------------------------------------------------------------------------------------------------- --Montadas de Dragao [71222] = {20244, 60*60*24*30, apply.MOV_SPEED, 60, 1, false}, [71223] = {20245, 60*60*24*30, apply.MOV_SPEED, 60, 1, false}, ------------------------------------------------------------------------------------------------------------------------------- --Montadas de Pantera [71991] = { 20231, 60*60*24*30, apply.MOV_SPEED, 60, 1, false }, [71992] = { 20232, 60*60*24*30, apply.MOV_SPEED, 60, 1, false }, ------------------------------------------------------------------------------------------------------------------------------- --Montadas de Panda [71995] = { 20222, 60*60*24*30, apply.MOV_SPEED, 60, 1, false }, [71996] = { 20222, 60*60*24*30, apply.MOV_SPEED, 60, 1, false }, [71997] = { 20222, 60*60*24*30, apply.MOV_SPEED, 60, 1, false }, [71998] = { 20222, 60*60*24*30, apply.MOV_SPEED, 60, 1, false }, ------------------------------------------------------------------------------------------------------------------------------- --Montadas da Páscoa [71182] = { 20233, 60*60*24*30, apply.MOV_SPEED, 60, 1, false }, [71183] = { 20234, 60*60*24*30, apply.MOV_SPEED, 60, 1, false }, [71184] = { 20235, 60*60*24*30, apply.MOV_SPEED, 60, 1, false }, [71185] = { 20236, 60*60*24*30, apply.MOV_SPEED, 60, 1, false }, --Montadas de camelo [71220] = {20239, 60*60*24*30, apply.MOV_SPEED, 60, 1, false}, [71221] = {20240, 60*60*24*30, apply.MOV_SPEED, 60, 1, false}, } if pc.level < ride_info[vnum][5] then say("") say("Não tens nível suficiente para usar a Montada.") say("") else if 112 == pc.get_map_index() then return end if ride_info[vnum][2] == 0 and remain_time != 0 then pc.mount( ride_info[vnum][1], remain_time*60 ) pc.mount_bonus( ride_info[vnum][3], ride_info[vnum][4], remain_time*60 ) else pc.mount( ride_info[vnum][1], ride_info[vnum][2] ) pc.mount_bonus( ride_info[vnum][3], ride_info[vnum][4], ride_info[vnum][2] ) end if true == ride_info[vnum][6] then pc.remove_item(vnum, 1) end end end --when login begin --local vnum, remain_time = pc.get_special_ride_vnum() --if (vnum <= 71114 or vnum >=71121) and (vnum <= 71124 or vnum >=71128) and (vnum <= 71137 or vnum >=71142) and (vnum <= 71137 or vnum >=71142) then -- return -- end --if 0 != vnum then -- ride_ramadan.Ride(vnum, remain_time) -- end --end when 71114.use or 71115.use or 71116.use or 71117.use or 71118.use or 71119.use or 71120.use or 71121.use or 71124.use or 71125.use or 71126.use or 71127.use or 71128.use or 71137.use or 71138.use or 71139.use or 71140.use or 71141.use or 71142.use or 71161.use or 71164.use or 71165.use or 71166.use or 71171.use or 71172.use or 71176.use or 71177.use or 71131.use or 71132.use or 71133.use or 71134.use or 71192.use or 71193.use or 71222.use or 71223.use or 71991.use or 71992.use or 71995.use or 71996.use or 71997.use or 71998.use or 71182.use or 71183.use or 71184.use or 71185.use or 71220.use or 71221.use begin if pc.is_polymorphed() then say("") say("Não podes usar enquanto estás transformado.") say("") elseif false == pc.is_riding() then if true == horse.is_summon() then horse.unsummon() end ride_ramadan.Ride(item.vnum, 0) else say("") say("Já estás a usar uma Montada.") say("") end end end end cumpz Link to comment
[Admin] tierrilopes Posted October 15, 2017 at 01:44 PM Share Posted October 15, 2017 at 01:44 PM Basta descomentar e editares: --when login begin --local vnum, remain_time = pc.get_special_ride_vnum() --if (vnum <= 71114 or vnum >=71121) and (vnum <= 71124 or vnum >=71128) and (vnum <= 71137 or vnum >=71142) and (vnum <= 71137 or vnum >=71142) then -- return -- end --if 0 != vnum then -- ride_ramadan.Ride(vnum, remain_time) -- end --end Para: when login begin local vnum, remain_time = pc.get_special_ride_vnum() if 0 != vnum then ride_ramadan.Ride(vnum, remain_time) end end Link to comment
Nukayool Posted October 15, 2017 at 08:02 PM Author Share Posted October 15, 2017 at 08:02 PM Meti assim: when login begin local vnum, remain_time = pc.get_special_ride_vnum() if (vnum <= 71124 or vnum >=71128) and (vnum <= 71131 or vnum >=71134) and (vnum <= 71137 or vnum >=71142) and (vnum <= 71161 or vnum >=71172) and (vnum <= 71176 or vnum >=71177) and (vnum <= 71182 or vnum >=71187) and (vnum <= 71192 or vnum >=71193) and (vnum <= 52001 or vnum >=52005) and (vnum <= 52118 or vnum >=52120) and (vnum <= 71222 or vnum >=71223) and (vnum <= 71995 or vnum >=71998) and (vnum <= 71182 or vnum >=71185) and (vnum <= 71220 or vnum >=71221) then return end if 0 != vnum then ride_ramadan.Ride(vnum, remain_time) end end Contudo está igual Link to comment
Marco Posted October 15, 2017 at 08:09 PM Share Posted October 15, 2017 at 08:09 PM (edited) Não há uma forma na source para tal? Edited October 15, 2017 at 08:13 PM by L2P Link to comment
[Admin] tierrilopes Posted October 15, 2017 at 08:28 PM Share Posted October 15, 2017 at 08:28 PM 19 minutes ago, L2P said: Não há uma forma na source para tal? Sim há mas, sei que está na metin2dev mas não encontro :/ Elimina isto: if (vnum <= 71124 or vnum >=71128) and (vnum <= 71131 or vnum >=71134) and (vnum <= 71137 or vnum >=71142) and (vnum <= 71161 or vnum >=71172) and (vnum <= 71176 or vnum >=71177) and (vnum <= 71182 or vnum >=71187) and (vnum <= 71192 or vnum >=71193) and (vnum <= 52001 or vnum >=52005) and (vnum <= 52118 or vnum >=52120) and (vnum <= 71222 or vnum >=71223) and (vnum <= 71995 or vnum >=71998) and (vnum <= 71182 or vnum >=71185) and (vnum <= 71220 or vnum >=71221) then return Deixa apenas: when login begin local vnum, remain_time = pc.get_special_ride_vnum() if 0 != vnum then ride_ramadan.Ride(vnum, remain_time) end end Link to comment
Marco Posted October 15, 2017 at 08:31 PM Share Posted October 15, 2017 at 08:31 PM @Nukayool tenta: Não tenho certeza de resolve, vi num forum. quest mount_bug begin state start begin when login with pc.is_mount() begin pc.unmount() pc.mount(vnum) end end end quest mount_bug begin state start begin when item.use begin if pc.is_mount() then pc.setqf("is_mount", 0) else pc.setqf("is_mount", 1) end end when login with pc.getqf("is_mount") == 1 begin pc.unmount() pc.mount(vnum) end end end Link to comment
Nukayool Posted October 16, 2017 at 12:45 AM Author Share Posted October 16, 2017 at 12:45 AM @Tierri Lopes @L2P Obrigado aos dois por tudo, Contudo a solução do tierri sem meter a cena que meti funcionou. cumpz Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now