PACI Posted January 15, 2014 Report Share Posted January 15, 2014 Lo hice hace un mes, ahora no me sirve de mucho. Pero solo con saber que hice algo parecido, me alegra. Vídeo: Se necesita la librería item2/pc2 de iMer: Debes iniciar sesión para ver el contenido del enlace en esta publicación. Funciones: --[[File: belt_system.luaVersion: 1.0 (works only with game revision 34083)Subject: Belt System FunctionsMade at 2 December 2013 by PACIFICADORSkype contact: pacificador_97]]belt = belt or {}function item.is_belt() if item.vnum >= 18000 and item.vnum <= 18089 then return true else return false endendfunction belt.is_diff_than_other() if item.vnum ~= pc.getqf("belt") then return true else return false endendfunction belt.equip() if item.is_belt() == true then item2.equip(11); pc.setqf("belt", item.vnum) endendfunction belt.unequip() local vnum = item.get_vnum() local attr = {{item2.get_attr(0)}, {item2.get_attr(1)}, {item2.get_attr(2)}, {item2.get_attr(3)}, {item2.get_attr(4)}, {item2.get_attr(5)}, {item2.get_attr(6)}} item.remove() pc2.give_or_drop_item_and_select(vnum) for i = 1, #attr do if tonumber(attr[i][1]) > 0 then item2.set_attr(i-1, attr[i][1], attr[i][2]) end end returnendfunction belt.set_special_bonus() local vnum = item.get_vnum() local belt = { [0] = { [18000] = {1, 50}, [18001] = {1, 50}, [18002] = {1, 50}, [18003] = {1, 50}, [18004] = {1, 50}, [18005] = {1, 50}, [18006] = {1, 50}, [18007] = {1, 50}, [18008] = {1, 50}, [18009] = {1, 50}, [18010] = {2, 20}, [18011] = {2, 20}, [18012] = {2, 20}, [18013] = {2, 20}, [18014] = {2, 20}, [18015] = {2, 20}, [18016] = {2, 20}, [18017] = {2, 20}, [18018] = {2, 20}, [18019] = {2, 20}, [18020] = {44, 1}, [18021] = {44, 1}, [18022] = {44, 1}, [18023] = {44, 1}, [18024] = {44, 1}, [18025] = {44, 1}, [18026] = {44, 1}, [18027] = {44, 1}, [18028] = {44, 1}, [18029] = {44, 1}, [18030] = {43, 1}, [18031] = {43, 1}, [18032] = {43, 1}, [18033] = {43, 1}, [18034] = {43, 1}, [18035] = {43, 1}, [18036] = {43, 1}, [18037] = {43, 1}, [18038] = {43, 1}, [18039] = {43, 1}, [18040] = {78, 1}, [18041] = {78, 1}, [18042] = {78, 1}, [18059] = {78, 1}, [18044] = {78, 1}, [18045] = {78, 1}, [18046] = {78, 1}, [18047] = {78, 1}, [18048] = {78, 1}, [18049] = {78, 1}, [18050] = {79, 1}, [18051] = {79, 1}, [18052] = {79, 1}, [18060] = {79, 1}, [18054] = {79, 1}, [18055] = {79, 1}, [18056] = {79, 1}, [18057] = {79, 1}, [18058] = {79, 1}, [18059] = {79, 1}, [18060] = {80, 1}, [18061] = {80, 1}, [18062] = {80, 1}, [18061] = {80, 1}, [18064] = {80, 1}, [18065] = {80, 1}, [18066] = {80, 1}, [18067] = {80, 1}, [18068] = {80, 1}, [18069] = {80, 1}, [18070] = {81, 1}, [18072] = {81, 1}, [18072] = {81, 1}, [18072] = {81, 1}, [18074] = {81, 1}, [18075] = {81, 1}, [18076] = {81, 1}, [18077] = {81, 1}, [18078] = {81, 1}, [18079] = {81, 1}, [18080] = {63, 1}, [18082] = {63, 1}, [18082] = {63, 1}, [18082] = {63, 1}, [18084] = {63, 1}, [18085] = {63, 1}, [18086] = {63, 1}, [18087] = {63, 1}, [18088] = {63, 1}, [18089] = {63, 1} }, [1] = { [18000] = {1, 50}, [18001] = {1, 50}, [18002] = {1, 50}, [18003] = {1, 50}, [18004] = {1, 50}, [18005] = {1, 50}, [18006] = {1, 50}, [18007] = {1, 50}, [18008] = {1, 50}, [18009] = {1, 50}, [18010] = {2, 20}, [18011] = {2, 20}, [18012] = {2, 20}, [18013] = {2, 20}, [18014] = {2, 20}, [18015] = {2, 20}, [18016] = {2, 20}, [18017] = {2, 20}, [18018] = {2, 20}, [18019] = {2, 20}, [18020] = {44, 1}, [18021] = {44, 1}, [18022] = {44, 1}, [18023] = {44, 1}, [18024] = {44, 1}, [18025] = {44, 1}, [18026] = {44, 1}, [18027] = {44, 1}, [18028] = {44, 1}, [18029] = {44, 1}, [18030] = {43, 1}, [18031] = {43, 1}, [18032] = {43, 1}, [18033] = {43, 1}, [18034] = {43, 1}, [18035] = {43, 1}, [18036] = {43, 1}, [18037] = {43, 1}, [18038] = {43, 1}, [18039] = {43, 1}, [18040] = {78, 1}, [18041] = {78, 1}, [18042] = {78, 1}, [18059] = {78, 1}, [18044] = {78, 1}, [18045] = {78, 1}, [18046] = {78, 1}, [18047] = {78, 1}, [18048] = {78, 1}, [18049] = {78, 1}, [18050] = {79, 1}, [18051] = {79, 1}, [18052] = {79, 1}, [18060] = {79, 1}, [18054] = {79, 1}, [18055] = {79, 1}, [18056] = {79, 1}, [18057] = {79, 1}, [18058] = {79, 1}, [18059] = {79, 1}, [18060] = {80, 1}, [18061] = {80, 1}, [18062] = {80, 1}, [18061] = {80, 1}, [18064] = {80, 1}, [18065] = {80, 1}, [18066] = {80, 1}, [18067] = {80, 1}, [18068] = {80, 1}, [18069] = {80, 1}, [18070] = {81, 1}, [18072] = {81, 1}, [18072] = {81, 1}, [18072] = {81, 1}, [18074] = {81, 1}, [18075] = {81, 1}, [18076] = {81, 1}, [18077] = {81, 1}, [18078] = {81, 1}, [18079] = {81, 1}, [18080] = {63, 1}, [18082] = {63, 1}, [18082] = {63, 1}, [18082] = {63, 1}, [18084] = {63, 1}, [18085] = {63, 1}, [18086] = {63, 1}, [18087] = {63, 1}, [18088] = {63, 1}, [18089] = {63, 1} }, [2] = { [18000] = {1, 100}, [18001] = {1, 100}, [18002] = {1, 100}, [18003] = {1, 100}, [18004] = {1, 100}, [18005] = {1, 100}, [18006] = {1, 100}, [18007] = {1, 100}, [18008] = {1, 100}, [18009] = {1, 100}, [18010] = {2, 40}, [18011] = {2, 40}, [18012] = {2, 40}, [18013] = {2, 40}, [18014] = {2, 40}, [18015] = {2, 40}, [18016] = {2, 40}, [18017] = {2, 40}, [18018] = {2, 40}, [18019] = {2, 40}, [18020] = {44, 1}, [18021] = {44, 1}, [18022] = {44, 1}, [18023] = {44, 1}, [18024] = {44, 1}, [18025] = {44, 1}, [18026] = {44, 1}, [18027] = {44, 1}, [18028] = {44, 1}, [18029] = {44, 1}, [18030] = {43, 1}, [18031] = {43, 1}, [18032] = {43, 1}, [18033] = {43, 1}, [18034] = {43, 1}, [18035] = {43, 1}, [18036] = {43, 1}, [18037] = {43, 1}, [18038] = {43, 1}, [18039] = {43, 1}, [18040] = {78, 1}, [18041] = {78, 1}, [18042] = {78, 1}, [18059] = {78, 1}, [18044] = {78, 1}, [18045] = {78, 1}, [18046] = {78, 1}, [18047] = {78, 1}, [18048] = {78, 1}, [18049] = {78, 1}, [18050] = {79, 1}, [18051] = {79, 1}, [18052] = {79, 1}, [18060] = {79, 1}, [18054] = {79, 1}, [18055] = {79, 1}, [18056] = {79, 1}, [18057] = {79, 1}, [18058] = {79, 1}, [18059] = {79, 1}, [18060] = {80, 1}, [18061] = {80, 1}, [18062] = {80, 1}, [18061] = {80, 1}, [18064] = {80, 1}, [18065] = {80, 1}, [18066] = {80, 1}, [18067] = {80, 1}, [18068] = {80, 1}, [18069] = {80, 1}, [18070] = {81, 1}, [18072] = {81, 1}, [18072] = {81, 1}, [18072] = {81, 1}, [18074] = {81, 1}, [18075] = {81, 1}, [18076] = {81, 1}, [18077] = {81, 1}, [18078] = {81, 1}, [18079] = {81, 1}, [18080] = {63, 1}, [18082] = {63, 1}, [18082] = {63, 1}, [18082] = {63, 1}, [18084] = {63, 1}, [18085] = {63, 1}, [18086] = {63, 1}, [18087] = {63, 1}, [18088] = {63, 1}, [18089] = {63, 1} } } for a = 0, 2 do if item2.get_attr(a) == 0 then if number(1,3) == 1 then item2.set_attr(a, belt[a][vnum][1], belt[a][vnum][2]) syschat("<Cinto> O melhoramento foi bem sucedido.") else syschat("<Cinto> O melhoramento falhou.") end pc.remove_item(18900, 1) end endend Quest: --[[Quest: belt_system.questVersion: 1.0 (works only with game revision 34083)Subject: New official belt system (not official ofc)Made at 2 December 2013 by PACIFICADORSkype contact: pacificador_97]]quest belt_system begin state start begin when 18000.use or 18001.use or 18002.use or 18003.use or 18004.use or 18005.use or 18006.use or 18007.use or 18008.use or 18009.use or 18010.use or 18011.use or 18012.use or 18013.use or 18014.use or 18015.use or 18016.use or 18017.use or 18018.use or 18019.use or 18020.use or 18021.use or 18022.use or 18023.use or 18024.use or 18025.use or 18026.use or 18027.use or 18028.use or 18029.use or 18030.use or 18031.use or 18032.use or 18033.use or 18034.use or 18035.use or 18036.use or 18037.use or 18038.use or 18039.use or 18040.use or 18041.use or 18042.use or 18043.use or 18044.use or 18045.use or 18046.use or 18047.use or 18048.use or 18049.use or 18050.use or 18051.use or 18052.use or 18053.use or 18054.use or 18055.use or 18056.use or 18057.use or 18058.use or 18059.use or 18060.use or 18061.use or 18062.use or 18063.use or 18064.use or 18065.use or 18066.use or 18067.use or 18068.use or 18069.use or 18070.use or 18071.use or 18072.use or 18073.use or 18074.use or 18075.use or 18076.use or 18077.use or 18078.use or 18079.use or 18080.use or 18081.use or 18082.use or 18083.use or 18084.use or 18085.use or 18086.use or 18087.use or 18088.use or 18089.use begin if belt.is_diff_than_other() then belt.equip() return elseif item.select_cell(101) then belt.unequip() else belt.equip() end end when 20090.take with item.is_belt() begin if pc.count_item(18900) < 1 then syschat("<Cinto> Não possuis a "..item_name(18900)..".") return end belt.set_special_bonus() end endendEl array es demasiado grande, podria haberlo echo mas pequeño, pero ahora me da pereza. El video no es el mejor, pero se ve minimamente bien. Saludos. Erick Alberto, JazZ*, Dj Alex and 11 others 14 Quote Link to comment Share on other sites More sharing options...
JazZ* Posted January 15, 2014 Report Share Posted January 15, 2014 Gracias Quote Link to comment Share on other sites More sharing options...
SeMa™ Posted January 15, 2014 Report Share Posted January 15, 2014 ese slot 11 es mágico xd, aunque yo diría que es full, el slot funciona como cualquier otro, solo que no puedes arrastrar el item a el, pero si de el a fuera sin hacer un pc.give_item2, por lo que slot "full", sistema "full" xd PD: si no hubiera salido el 4250 o como se llame, por py se podría hacer al arrastrar el item mandara a 1 quest e hiciera lo demás, cosa que se pasó en aquel momento xd Quote Link to comment Share on other sites More sharing options...
PACI Posted January 15, 2014 Author Report Share Posted January 15, 2014 ese slot 11 es mágico xd, aunque yo diría que es full, el slot funciona como cualquier otro, solo que no puedes arrastrar el item a el, pero si de el a fuera sin hacer un pc.give_item2, por lo que slot "full", sistema "full" xd PD: si no hubiera salido el 4250 o como se llame, por py se podría hacer al arrastrar el item mandara a 1 quest e hiciera lo demás, cosa que se pasó en aquel momento xdYa ya, eso te comentaba cuando lo estaba haciendo, pero digo que no es full, por el inventario de pociones e.e el slot si que es verdadero, pero el sistema en si no lo es xD Quote Link to comment Share on other sites More sharing options...
Jfirewall Posted January 15, 2014 Report Share Posted January 15, 2014 este no trae el diff? para el game r34?, o no es necesario? pd: lo digo por el del sema ;D Quote Link to comment Share on other sites More sharing options...
PACI Posted January 15, 2014 Author Report Share Posted January 15, 2014 El de sema es el mio En el mismo dia que lo hice, se lo di. Quote Link to comment Share on other sites More sharing options...
Jfirewall Posted January 15, 2014 Report Share Posted January 15, 2014 Pero no es este o si ??? Quote Link to comment Share on other sites More sharing options...
PACI Posted January 15, 2014 Author Report Share Posted January 15, 2014 Si el de sema es el mio, y el mio es este, entonces este es el de sema. Filosofia ftw (lawl) Metin2Hispano 1 Quote Link to comment Share on other sites More sharing options...
SeMa™ Posted January 16, 2014 Report Share Posted January 16, 2014 LOL, nunca te dije que llevara dif, solo que necesitabas el game nuevo xd PACI 1 Quote Link to comment Share on other sites More sharing options...
Jfirewall Posted January 16, 2014 Report Share Posted January 16, 2014 si me dijiste, lo recuerdo bien pero igual seria bueno que subieran los iconos, el slot etc .. ;DDDDD Quote Link to comment Share on other sites More sharing options...
topekone Posted January 17, 2014 Report Share Posted January 17, 2014 No funciona con game 2089m no? Quote Link to comment Share on other sites More sharing options...
PACI Posted January 17, 2014 Author Report Share Posted January 17, 2014 Quote Link to comment Share on other sites More sharing options...
Jfirewall Posted January 17, 2014 Report Share Posted January 17, 2014 No es que quiera hacer spam, pero me pasan la parte cliente ))). No tengo un cliente de donde sacarlo Quote Link to comment Share on other sites More sharing options...
zyrux Posted January 17, 2014 Report Share Posted January 17, 2014 y la parte del cliente? xd gran aporte! Quote Link to comment Share on other sites More sharing options...
Jfirewall Posted January 18, 2014 Report Share Posted January 18, 2014 Debes iniciar sesión para ver el contenido del enlace en esta publicación. Efectivamente si sirve ;D metinerox and Erick Alberto 2 Quote Link to comment Share on other sites More sharing options...
fuuton97 Posted January 18, 2014 Report Share Posted January 18, 2014 Y, ¿Para qué sirve esto?. Quote Link to comment Share on other sites More sharing options...
PACI Posted January 18, 2014 Author Report Share Posted January 18, 2014 Mira el video lol Debes iniciar sesión para ver el contenido del enlace en esta publicación. Erick Alberto and metinerox 2 Quote Link to comment Share on other sites More sharing options...
™BiozardCompany™ Posted January 24, 2014 Report Share Posted January 24, 2014 Ya realice la parte del cliente solo me faltan los iconos que no consigo pro ningún lado eh des-compilado hasta el .es (icons) pero nada están todos los iconos normales y nuevos menos cinturones, des-compile mas de medio cliente del .es y no están por ningún lado alguien sabe donde los consigo? Quote Link to comment Share on other sites More sharing options...
Unk3n0w7 Posted October 20, 2014 Report Share Posted October 20, 2014 gracias Quote Link to comment Share on other sites More sharing options...
xwiilyx2 Posted October 21, 2014 Report Share Posted October 21, 2014 tengo un problema bueno soy nuevo en esto hasta hoy ago esto de functions pero me sale esto me dicen como se instala? Quote Link to comment Share on other sites More sharing options...
Miguelito Posted October 21, 2014 Report Share Posted October 21, 2014 ve a quest_fuctions y añadele: belt.equip belt.is_diff_tha_other belt.set_special_bonus belt.unequip y se te solucionara Quote Link to comment Share on other sites More sharing options...
xwiilyx2 Posted October 22, 2014 Report Share Posted October 22, 2014 ok gracias amigo probare y te digo Quote Link to comment Share on other sites More sharing options...
skilledpt Posted February 5, 2015 Report Share Posted February 5, 2015 Debes iniciar sesión para ver el contenido del enlace en esta publicación. ya poner belt.equip belt.is_diff_tha_other belt.set_special_bonus belt.unequip in quest_functions y no funcionó puedes me ayudar? Quote Link to comment Share on other sites More sharing options...
heweel Posted May 18, 2015 Report Share Posted May 18, 2015 Arreglado Quote Link to comment Share on other sites More sharing options...
ramstein Posted September 9, 2015 Report Share Posted September 9, 2015 no sabes como puedo meter una libreria que funcione en game 2089 ?? me prodrian ayudar porfavor Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.