Jump to content

[Release] Sistema de cinturones (no full)


PACI
 Share

Recommended Posts

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	endend
El 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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Ya 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
Link to comment
Share on other sites

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 u.u alguien sabe donde los consigo? 

Link to comment
Share on other sites

  • 8 months later...
  • 3 months later...
  • 3 months later...
  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...