[TUTORIAL] Honor-system-Metin2 full [free]

Totalitatea subiectelor care nu respectă regulamentul vor fi stocate aici.
Deconectat
Avatar utilizator
RocaSS
Utilizator interzis !
Utilizator interzis !
Mesaje: 282
Membru din: 18 Oct 2014
Localitate: Germania, Stuttgart.
Status: Sunt bine mersi ^.^
Server Metin2: N-am. =]]
Regat: Jinno
Mulțumiri acordate: 0
Mulțumiri primite: 4

[TUTORIAL] Honor-system-Metin2 full [free]

Mesajde RocaSS » 19 Oct 2014, 17:25

M-am gandit sa postez acest sistem de onoare FREE. Il postez deoarece la un moment dat tot o sa fie postat pe o comunitate asa ca de ce sa nu il avem noi printre primii ;)
Previzualizare din serverul meu din pc :)[cu alt design]

Imagine
Daca respectati corect pasii ,nu are de ce sa nu functioneze.
sa ne scuturam putin si sa incepem ofensiva :)

Download arhiva : Trebuie să fii logat sau înregistrat pentru a vedea acest link.

>>> PARTEA DE CLIENT <<<

Mergeti in client>>> pack si puneti fisierele :

Cod: Selectaţi tot

sistem_ucideri.eix
si
sistem_ucideri.epk


din folder
Tot in pack aveti fisierul index care il deschideti cu Notepad++ si adaugati:

Cod: Selectaţi tot

sistem_ucideri
*


Despachetati locale si item_proto din locale si adaugati:

Cod: Selectaţi tot

<Item vnum="51003" name="" gb2312name="Sferã Magicã (verde)" type="5" subtype="0" weight="0" size="1" antiflag="0" flag="4" wearflag="0" immuneflag="0" gold="300" buy_price="500" limittype0="0" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="0" applyvalue0="0" applytype1="0" applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="0" value2="0" value3="0" value4="0" value5="0" socket0="0" socket1="0" socket2="0" socket3="0" socket4="0" socket5="0" refine_vnum="0" refine_set="0" magic_pct="0" specular="0" socket_pct="0" />
<Item vnum="51004" name="" gb2312name="Sferã Magicã (albastra)" type="5" subtype="0" weight="0" size="1" antiflag="0" flag="4" wearflag="0" immuneflag="0" gold="300" buy_price="500" limittype0="0" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="0" applyvalue0="0" applytype1="0" applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="0" value2="0" value3="0" value4="0" value5="0" socket0="0" socket1="0" socket2="0" socket3="0" socket4="0" socket5="0" refine_vnum="0" refine_set="0" magic_pct="0" specular="0" socket_pct="0" />
<Item vnum="51005" name="" gb2312name="Sferã Magicã (rosie)" type="5" subtype="0" weight="0" size="1" antiflag="0" flag="4" wearflag="0" immuneflag="0" gold="300" buy_price="500" limittype0="0" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="0" applyvalue0="0" applytype1="0" applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="0" value2="0" value3="0" value4="0" value5="0" socket0="0" socket1="0" socket2="0" socket3="0" socket4="0" socket5="0" refine_vnum="0" refine_set="0" magic_pct="0" specular="0" socket_pct="0" />


Tot in locale gasiti item_list.txt si adaugati:

Cod: Selectaţi tot

51003 ETC sistem_onoare/sfera_magica_verde.tga
51004 ETC sistem_onoare/sfera_magica_albastra.tga
51005 ETC sistem_onoare/sfera_magica_rosie.tga


atentie la Tab !

Apoi deschideti item_desc.txt si la sfarsit adaugati :

Cod: Selectaţi tot

51003 Sferă Magică (verde) Aceasta Sferă Magică iţi oferă posibilitatea de a-ţi folosi talentul tău de ucigator de 2 ori.
51004 Sferă Magică (albastra) Aceasta Sferă Magică iţi oferă posibilitatea de a-ţi folosi talentul tău de ucigator de 4 ori.
51005 Sferă Magică (rosie) Aceasta Sferă Magică iţi oferă posibilitatea de a-ţi folosi talentul tău de ucigator de 6 ori.


>>> root (game.py) <<<

Cautati import uiTarget si sub el adaugati :

Cod: Selectaţi tot

import event
import constinfo


Cautati self.SetSize(wndMgr.GetScreenWidth(), wndMgr.GetScreenHeight()) si sub adaugati:

Cod: Selectaţi tot

sistem_onoare_bg = ui.AniImageBox()
sistem_onoare_bg.AppendImage("sistem_onoare/fundal.tga")
self.sistem_onoare_bg = sistem_onoare_bg
self.sistem_onoare_bg.SetPosition(wndMgr.GetScreenWidth()/2-229,0)
self.sistem_onoare_bg.SetSize(459, 204)
self.sistem_onoare_bg.Hide()

self.Ucideri_Albastru = ui.TextLine()
self.Ucideri_Albastru.SetDefaultFontName()
self.Ucideri_Albastru.SetParent(self.sistem_onoare_bg)
self.Ucideri_Albastru.SetPosition(87, 85)
self.Ucideri_Albastru.SetText("Regat Albastru: 0")
self.Ucideri_Albastru.SetOutline()
self.Ucideri_Albastru.Show()

self.Ucideri_Galben = ui.TextLine()
self.Ucideri_Galben.SetDefaultFontName()
self.Ucideri_Galben.SetParent(self.sistem_onoare_bg)
self.Ucideri_Galben.SetPosition(87, 108)
self.Ucideri_Galben.SetText("Regat Galben: 0")
self.Ucideri_Galben.SetOutline()
self.Ucideri_Galben.Show()

self.Ucideri_Rosu = ui.TextLine()
self.Ucideri_Rosu.SetDefaultFontName()
self.Ucideri_Rosu.SetParent(self.sistem_onoare_bg)
self.Ucideri_Rosu.SetPosition(87, 132)
self.Ucideri_Rosu.SetText("Regat Rosu: 0")
self.Ucideri_Rosu.SetOutline()
self.Ucideri_Rosu.Show()

#Setare Informatii Kill
self.Total_Ucideri = ui.TextLine()
self.Total_Ucideri.SetDefaultFontName()
self.Total_Ucideri.SetParent(self.sistem_onoare_bg)
self.Total_Ucideri.SetPosition(289, 85)
self.Total_Ucideri.SetText("Puncte Ucideri: 0")
self.Total_Ucideri.SetOutline()
self.Total_Ucideri.Show()

self.Puncte_Onoare = ui.TextLine()
self.Puncte_Onoare.SetDefaultFontName()
self.Puncte_Onoare.SetParent(self.sistem_onoare_bg)
self.Puncte_Onoare.SetPosition(289, 108)
self.Puncte_Onoare.SetText("Puncte Onoare: 0")
self.Puncte_Onoare.SetOutline()
self.Puncte_Onoare.Show()

self.Utilizari_Ramase = ui.TextLine()
self.Utilizari_Ramase.SetDefaultFontName()
self.Utilizari_Ramase.SetParent(self.sistem_onoare_bg)
self.Utilizari_Ramase.SetPosition(289, 132)
self.Utilizari_Ramase.SetText("Utilizari Ramase: 0")
self.Utilizari_Ramase.SetOutline()
self.Utilizari_Ramase.Show()

#Buton Activare
self.Buton_Activareu = ui.Button()
self.Buton_Activareu.SetParent(self.sistem_onoare_bg)
self.Buton_Activareu.SetPosition(180, 60)
self.Buton_Activareu.SetUpVisual("sistem_onoare/activare.tga")
self.Buton_Activareu.SetOverVisual("sistem_onoare/activare_1.tga")
self.Buton_Activareu.SetDownVisual("sistem_onoare/activare.tga")
self.Buton_Activareu.SetEvent(self.__activare_ucideri)
self.Buton_Activareu.Show()


Cautati def Close(self): si sub adaugati:

Cod: Selectaţi tot

constInfo.SISTEM_ONOARE = 0
self.sistem_onoare_bg.Hide()


Cautati onPressKeyDict[app.DIK_F4] = lambda : self.__PressQuickSlot(7) si sub adaugati:

Cod: Selectaţi tot

onPressKeyDict[app.DIK_F12] = lambda : self.__sistemonoare()


Cautati "PlayMusic" : self.__PlayMusic, si sub adaugati:

Cod: Selectaţi tot

"valori_ucideri" : self.__valori_ucideri,
"sistem_onoare_questindex" : self.__sistem_onoare_questindex,
"utilizari_kill_ramase" : self.UtilizariUcideriRamase,
"activare_ucideri" : self.ActicareUcideri,


jos de tot in game.py adaugati:

Cod: Selectaţi tot

import chat
def __sistemonoare(self):
if constInfo.SISTEM_ONOARE == 0:
constInfo.SISTEM_ONOARE = 1
self.sistem_onoare_bg.Show()
chat.AppendChat(chat.CHAT_TYPE_INFO, "[SERVER] Ai afisat Sistemul de Onoare.")
else:
constInfo.SISTEM_ONOARE = 0
self.sistem_onoare_bg.Hide()
chat.AppendChat(chat.CHAT_TYPE_INFO, "[SERVER] Ai ascuns Sistemul de Onoare.")
def __valori_ucideri(self, rosu, galben, albastru, onoare):
#Modificare Texte
self.Ucideri_Albastru.SetText("Regat Albastru: " + albastru)
self.Ucideri_Galben.SetText("Regat Galben: " + galben)
self.Ucideri_Rosu.SetText("Regat Rosu: " + rosu)
self.Puncte_Onoare.SetText("Puncte Onoare: " + onoare)
total_ucideri = int(albastru) + int(galben) + int(rosu) #Calculare Ucideri Totale
self.Total_Ucideri.SetText("Puncte Ucideri: " + str(total_ucideri))

def __sistem_onoare_questindex(self, value):
constInfo.SISTEM_ONOARE_QUESTINDEX = int(value)

def __activare_ucideri(self):
activare_ucideri = constInfo.SISTEM_ONOARE_QUESTINDEX
event.QuestButtonClick(activare_ucideri)

def UtilizariUcideriRamase(self, value):
self.Utilizari_Ramase.SetText("Utilizari Ramase: " + value)

def ActicareUcideri(self):
net.SendChatPacket("(efect_omor)")


>>> root(constinfo.py) <<<

La inceput adaugati:

Cod: Selectaţi tot

SISTEM_ONOARE = 0
SISTEM_ONOARE_QUESTINDEX = 0


>>> root(playersettingmodule.py ) <<<

Cautati ## Emoticon si deasupra adaugati:

Cod: Selectaţi tot

>>> root(playersettingmodule.py ) <<<

Cautati ## Emoticon si deasupra adaugati:


>>> PARTEA DE SERVER <<<

deschidem navicat, ctrl+q si rulam astea 3 cu curaj :)

Cod: Selectaţi tot

INSERT INTO item_proto(`vnum`, `name`, `locale_name`, `type`, `subtype`, `weight`, `size`, `antiflag`, `flag`, `wearflag`, `immuneflag`, `gold`, `shop_buy_price`, `refined_vnum`, `refine_set`, `refine_set2`, `magic_pct`, `limittype0`, `limitvalue0`, `limittype1`, `limitvalue1`, `applytype0`, `applyvalue0`, `applytype1`, `applyvalue1`, `applytype2`, `applyvalue2`, `value0`, `value1`, `value2`, `value3`, `value4`, `value5`, `socket0`, `socket1`, `socket2`, `socket3`, `socket4`, `socket5`, `specular`, `socket_pct`, `addon_type`) VALUES(51005, 'Sferã Magicã (rosie)', 'Sferã Magicã (rosie)', 18, 0, 0, 1, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, -1, -1, -1, -1, -1, 0, 0, 0);
INSERT INTO item_proto(`vnum`, `name`, `locale_name`, `type`, `subtype`, `weight`, `size`, `antiflag`, `flag`, `wearflag`, `immuneflag`, `gold`, `shop_buy_price`, `refined_vnum`, `refine_set`, `refine_set2`, `magic_pct`, `limittype0`, `limitvalue0`, `limittype1`, `limitvalue1`, `applytype0`, `applyvalue0`, `applytype1`, `applyvalue1`, `applytype2`, `applyvalue2`, `value0`, `value1`, `value2`, `value3`, `value4`, `value5`, `socket0`, `socket1`, `socket2`, `socket3`, `socket4`, `socket5`, `specular`, `socket_pct`, `addon_type`) VALUES(51004, 'Sferã Magicã (albastra)', 'Sferã Magicã (albastra)', 18, 0, 0, 1, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, -1, -1, -1, -1, -1, 0, 0, 0);
INSERT INTO item_proto(`vnum`, `name`, `locale_name`, `type`, `subtype`, `weight`, `size`, `antiflag`, `flag`, `wearflag`, `immuneflag`, `gold`, `shop_buy_price`, `refined_vnum`, `refine_set`, `refine_set2`, `magic_pct`, `limittype0`, `limitvalue0`, `limittype1`, `limitvalue1`, `applytype0`, `applyvalue0`, `applytype1`, `applyvalue1`, `applytype2`, `applyvalue2`, `value0`, `value1`, `value2`, `value3`, `value4`, `value5`, `socket0`, `socket1`, `socket2`, `socket3`, `socket4`, `socket5`, `specular`, `socket_pct`, `addon_type`) VALUES(51003, 'Sferã Magicã (verde)', 'Sferã Magicã (verde)', 18, 0, 0, 1, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, -1, -1, -1, -1, -1, 0, 0, 0);

item_proto-client>convert pac pac si rata cade :))


in directorul quest avem un fisier quest_functions in care vom adauga la sfarsit :

Cod: Selectaţi tot

]npc.get_vid
say_orange
check_range


acum mergeti in questlib.lua tot din quest si adaugati la sfarsit:

Cod: Selectaţi tot

function say_orange(name) say(color256(255, 75, 0)..name..color256(255, 75, 0)) end


Acum intrati in /usr/home/game/share/locale/TARA/quest si adaugati quest-ul:

sistem_onoare.quest
din arhiva pusa de mine, si il instalati .mure dulci :))

Pentru cei care au game 2089 sau r34083 adaugati urmatoarele dif-uri
Aplicati doar dif-ul game-ului respectiv.

Cod: Selectaţi tot

pentru game 2089:


game2089
0014E673: 53 56
0014E674: 83 53
0014E675: EC 83
0014E676: 24 EC
0014E677: A1 20
0014E678: F8 8B
0014E679: 28 0D
0014E67A: 4C 20
0014E67B: 08 37
0014E67C: 89 4C
0014E67D: 45 08
0014E67E: F8 A1
0014E67F: 31 F8
0014E680: C0 28
0014E681: A1 4C
0014E682: 20 08
0014E683: 37 89
0014E684: 4C 45
0014E685: 08 F4
0014E686: 85 31
0014E688: 74 8B
0014E689: 74 75
0014E68A: A1 08
0014E68B: 20 90
0014E68C: 37 90
0014E68D: 4C 90
0014E68E: 08 90
0014E68F: 89 90
0014E690: 04 85
0014E691: 24 C9
0014E692: E8 74
0014E693: 59 5C
0014E694: FE A1
0014E695: 00 20
0014E696: 00 37
0014E697: 85 4C
0014E698: C0 08
0014E69A: C3 04
0014E69B: 74 24
0014E69C: 07 E8
0014E69D: 8B 4F
0014E69E: 40 FE
0014E69F: 24 00
0014E6A0: 85 00
0014E6A1: C0 85
0014E6A2: 74 C0
0014E6A3: 13 75
0014E6A4: 31 2F
0014E6A5: C0 C7
0014E6A6: 8B 44
0014E6A7: 55 24
0014E6A8: F8 04
0014E6A9: 33 00
0014E6AA: 15 00
0014E6AB: F8 00
0014E6AC: 28 00
0014E6AD: 4C C7
0014E6AE: 08 44
0014E6AF: 75 24
0014E6B0: 76 08
0014E6B1: 83 00
0014E6B2: C4 00
0014E6B3: 24 00
0014E6B4: 5B 00
0014E6B5: 5D 89
0014E6B6: C3 34
0014E6B7: 89 24
0014E6B8: 1C E8
0014E6B9: 24 03
0014E6BA: E8 63
0014E6BB: 31 18
0014E6BC: 38 00
0014E6BD: ED 8B
0014E6BE: FF 55
0014E6BF: 66 F4
0014E6C0: 3D 33
0014E6C1: 3F 15
0014E6C2: 4E F8
0014E6C3: 75 28
0014E6C4: DF 4C
0014E6C5: C7 08
0014E6C6: 44 B8
0014E6C7: 24 01
0014E6C8: 04 00
0014E6C9: 5F 00
0014E6CB: 00 75
0014E6CC: 00 4C
0014E6CD: 89 83
0014E6CE: 1C C4
0014E6CF: 24 20
0014E6D0: E8 5B
0014E6D1: 3B 5E
0014E6D2: 56 5D
0014E6D3: ED C3
0014E6D4: FF 8B
0014E6D5: C7 80
0014E6D6: 04 FC
0014E6D7: 24 00
0014E6DA: 00 52
0014E6DB: 00 50
0014E6DC: 83 DB
0014E6DD: E8 04
0014E6DE: 01 24
0014E6DF: 89 83
0014E6E0: 44 C4
0014E6E1: 24 08
0014E6E2: 04 DD
0014E6E3: E8 5C
0014E6E4: 68 24
0014E6E5: F6 04
0014E6E6: 17 89
0014E6E7: 00 34
0014E6E8: C7 24
0014E6E9: 44 E8
0014E6EA: 24 D2
0014E6EB: 04 62
0014E6EC: 5F 18
0014E6EE: 00 EB
0014E6EF: 00 CD
0014E6F0: 89 C7
0014E6F1: 1C 44
0014E6F3: 89 0C
0014E6F4: 44 E4
0014E6F5: 24 7B
0014E6F6: 08 33
0014E6F7: E8 08
0014E6F8: 74 C7
0014E6F9: 90 44
0014E6FA: ED 24
0014E6FB: FF 08
0014E6FC: EB 1A
0014E6FD: A6 00
0014E6FE: C7 00
0014E6FF: 44 00
0014E700: 24 C7
0014E701: 0C 44
0014E702: E4 24
0014E703: 7B 04
0014E704: 33 CA
0014E705: 08 7B
0014E706: C7 33
0014E707: 44 08
0014E708: 24 C7
0014E709: 08 04
0014E70A: 1A 24
0014E70B: 00 50
0014E70C: 00 A4
0014E70D: 00 35
0014E70E: C7 08
0014E70F: 44 E8
0014E710: 24 98
0014E711: 04 64
0014E712: CA EB
0014E713: 7B FF
0014E714: 33 E9
0014E715: 08 7B
0014E716: C7 FF
0014E717: 04 FF
0014E718: 24 FF
0014E719: 50 E8
0014E71A: A4 5E
0014E71B: 35 6A
0014E71C: 08 EB
0014E71D: E8 FF
0014E71E: 8A 90
0014E71F: 64 90
0014E720: EB 90
0014E721: FF 90
0014E722: E9 90
00312361: 64 67
00312363: 63 74
00312365: 72 76
00312366: 65 69
00312367: 6D 64
00312368: 61 00

Dif pentru 34083:


game_r34083_32
001690C3: 53 56
001690C4: 83 53
001690C5: EC 83
001690C6: 24 EC
001690C7: A1 20
001690C8: 18 8B
001690C9: 14 75
001690CA: 6A 08
001690CB: 08 A1
001690CC: 89 18
001690CD: 45 14
001690CE: F8 6A
001690CF: 31 08
001690D0: C0 89
001690D1: A1 45
001690D2: F0 F4
001690D3: 23 31
001690D4: 6A C0
001690D5: 08 A1
001690D6: 89 F0
001690D7: 04 23
001690D8: 24 6A
001690D9: E8 08
001690DA: F2 89
001690DB: F2 04
001690DC: 00 24
001690DD: 00 E8
001690DE: 85 EE
001690DF: C0 F2
001690E0: 89 00
001690E1: C3 00
001690E2: 74 85
001690E3: 07 C0
001690E4: 8B 75
001690E5: 40 2F
001690E6: 2C C7
001690E7: 85 44
001690E8: C0 24
001690E9: 74 04
001690EA: 15 00
001690EB: 31 00
001690EC: C0 00
001690ED: 8B 00
001690EE: 55 C7
001690EF: F8 44
001690F0: 33 24
001690F1: 15 08
001690F2: 18 00
001690F3: 14 00
001690F4: 6A 00
001690F5: 08 00
001690F6: 75 89
001690F7: 4F 34
001690F8: 83 24
001690F9: C4 E8
001690FA: 24 D2
001690FB: 5B E2
001690FC: 5D 28
001690FD: C3 00
001690FE: 89 8B
001690FF: F6 55
00169100: 89 F4
00169101: 1C 33
00169102: 24 15
00169103: E8 18
00169104: D8 14
00169105: A4 6A
00169106: EB 08
00169107: FF B8
00169108: 66 01
00169109: 3D 00
0016910A: 3F 00
0016910B: 4E 00
0016910D: DD 26
0016910E: C7 83
0016910F: 44 C4
00169110: 24 20
00169111: 04 5B
00169112: 5F 5E
00169113: 00 5D
00169114: 00 C3
00169115: 00 8B
00169116: 89 80
00169117: 1C 04
00169118: 24 01
00169119: E8 00
0016911A: A2 00
0016911B: BD 52
0016911C: EB 50
0016911D: FF DB
0016911E: C7 04
0016911F: 04 24
00169120: 24 83
00169121: 00 C4
00169122: 00 08
00169123: 00 DD
00169124: 00 5C
00169125: 83 24
00169126: E8 04
00169127: 01 89
00169128: 89 34
00169129: 44 24
0016912A: 24 E8
0016912B: 04 A1
0016912C: E8 E2
0016912D: BF 28
0016912E: 82 00
0016912F: 28 E9
00169130: 00 CA
00169131: C7 FF
00169132: 44 FF
00169133: 24 FF
00169134: 04 E8
00169135: 5F 47
00169136: 00 DA
00169137: 00 E9
00169138: 00 FF
00169139: 89 90
0016913A: 1C 90
0016913B: 24 90
0016913C: 89 90
0016913D: 44 90
0016913E: 24 90
0016913F: 08 90
00169140: E8 90
00169141: 5B 90
00169142: 1E 90
00169143: EC 90
00169144: FF 90
00169145: EB 90
00169146: A4 90
00169147: E8 90
00169148: 34 90
00169149: DA 90
0016914A: E9 90
0016914B: FF 90
00436D02: 64 67
00436D04: 63 74
00436D06: 72 76
00436D07: 65 69
00436D08: 6D 64
00436D09: 61 00


sursa speciala!
multumim maestrului.Eugen pentru acest sistem minunat !


Un " - Thx - " nu strica :)
Imagine
Imagine

Deconectat
Avatar utilizator
M.Seby
Utilizator interzis !
Utilizator interzis !
Mesaje: 3013
Membru din: 10 Sep 2013
Localitate: Suceava
Reputație: Fost Administrator
Fost Organizator echipă
Status: Sunt bine mersi ^.^
Server Metin2: Not Found
Regat: Jinno
Mulțumiri acordate: 1
Mulțumiri primite: 9
Contact:

Re: [TUTORIAL] Honor-system-Metin2 full [free]

Mesajde M.Seby » 19 Oct 2014, 18:28

Imagine

Contact:

Skype: seby_061


Înapoi la “Topicuri şi mesaje şterse”

Cine este conectat

Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 8 vizitatori