4 Inventare + Model nou + questuri .

Avatar utilizator
xAllexuTzu
Nivel 1

Nivel 1
Mesaje: 119
Membru din: 08 Apr 2015, 16:48
Server: metinaynes.ga
Regat: Chunjo
Aprecieri: 0
Mulţumiri: 107  
Medalii

Imagine 1. Despachetati root.eix/.epk
2.Intrati in : inventorywindow.py si inlocuiti totul cu :

Cod: Selectaţi tot

import uiScriptLocale
import item
 
EQUIPMENT_START_INDEX = 180
 
window = {
    "name" : "InventoryWindow",
 
    ## 600 - (width + ????? ?? ??? 24 px)
    "x" : SCREEN_WIDTH - 340,
    "y" : SCREEN_HEIGHT - 37 - 350,
 
    "style" : ("movable", "float",),
 
    "width" : 340,
    "height" : 350,
 
    "children" :
    (
        ## Inventory, Equipment Slots
        {
            "name" : "board",
            "type" : "board",
            "style" : ("attach",),
 
            "x" : 0,
            "y" : 0,
 
            "width" : 340,
            "height" : 350,
 
            "children" :
            (
                ## Title
                {
                    "name" : "TitleBar",
                    "type" : "titlebar",
                    "style" : ("attach",),
 
                    "x" : 8,
                    "y" : 7,
 
                    "width" : 325,
                    "color" : "yellow",
 
                    "children" :
                    (
                        { "name":"TitleName", "type":"text", "x":155, "y":3, "text":uiScriptLocale.INVENTORY_TITLE, "text_horizontal_align":"center" },
                    ),
                },
                    ## LagerButton
                {
                    "name" : "LagerButton",
                    "type" : "button",
                            
                    "x" : 10,
                    "y" : 265,
                            
                    "tooltip_text": "Lager",
                            
                    "default_image" : "d:/ymir work/ui/seonu2/lager_button.tga",
                    "over_image" : "d:/ymir work/ui/seonu2/lager_button_hover.tga",
                    "down_image" : "d:/ymir work/ui/seonu2/lager_button_hover.tga",
                },
                    ## Yang Anzeige
                {
                    "name" : "YangAnzeige",
                    "type" : "button",
                    
                    "x" : 50,
                    "y" : 265,
                    
                    "tooltip_text" : "Yang-Anzeige",
                    
                    "default_image" : "d:/ymir work/ui/seonu2/y_anzeige.tga",
                    "over_image" : "d:/ymir work/ui/seonu2/y_anzeige_hover.tga",
                    "down_image" : "d:/ymir work/ui/seonu2/y_anzeige_hover.tga",                    
                },
                    ## Anti Exp
                {
                    "name" : "AntiEXP",
                    "type" : "button",
                    
                    "x" : 90,
                    "y" : 265,
                    
                    "tooltip_text" : "Anti-EXP",
                    
                    "default_image" : "d:/ymir work/ui/seonu2/antiexp.tga",
                    "over_image" : "d:/ymir work/ui/seonu2/antiexp_hover.tga",
                    "down_image" : "d:/ymir work/ui/seonu2/antiexp_hover.tga",                    
                },
                    ## Portring
                {
                    "name" : "Portring",
                    "type" : "button",
                    
                    "x" : 130,
                    "y" : 265,
                    
                    "tooltip_text" : "Warp-Ring",
                    
                    "default_image" : "d:/ymir work/ui/seonu2/warpring.tga",
                    "over_image" : "d:/ymir work/ui/seonu2/warpring_hover.tga",
                    "down_image" : "d:/ymir work/ui/seonu2/warpring_hover.tga",                    
                },
                    ## Equipment Slot
                {
                    "name" : "Equipment_Base",
                    "type" : "image",
 
                    "x" : 10,
                    "y" : 33,
 
                    "image" : "d:/ymir work/ui/game/windows/equipment_base.sub",
 
                    "children" :
                    (
 
                        {
                            "name" : "EquipmentSlot",
                            "type" : "slot",
 
                            "x" : 3,
                            "y" : 3,
 
                            "width" : 150,
                            "height" : 182,
 
                            "slot" : (
                                        {"index":EQUIPMENT_START_INDEX+0, "x":39, "y":37, "width":32, "height":64},
                                        {"index":EQUIPMENT_START_INDEX+1, "x":39, "y":2, "width":32, "height":32},
                                        {"index":EQUIPMENT_START_INDEX+2, "x":39, "y":145, "width":32, "height":32},
                                        {"index":EQUIPMENT_START_INDEX+3, "x":75, "y":67, "width":32, "height":32},
                                        {"index":EQUIPMENT_START_INDEX+4, "x":3, "y":3, "width":32, "height":96},
                                        {"index":EQUIPMENT_START_INDEX+5, "x":114, "y":84, "width":32, "height":32},
                                        {"index":EQUIPMENT_START_INDEX+6, "x":114, "y":52, "width":32, "height":32},
                                        {"index":EQUIPMENT_START_INDEX+7, "x":2, "y":113, "width":32, "height":32},
                                        {"index":EQUIPMENT_START_INDEX+8, "x":75, "y":113, "width":32, "height":32},
                                        {"index":EQUIPMENT_START_INDEX+9, "x":114, "y":1, "width":32, "height":32},
                                        {"index":EQUIPMENT_START_INDEX+10, "x":75, "y":35, "width":32, "height":32},
                                        ## ? ??1
                                        ##{"index":item.EQUIPMENT_RING1, "x":2, "y":106, "width":32, "height":32},
                                        ## ? ??2
                                        ##{"index":item.EQUIPMENT_RING2, "x":75, "y":106, "width":32, "height":32},
                                        ## ? ??
                                    ),
                        },
                        ## Dragon Soul Button
                        
                        ## MallButton
                        {
                            "name" : "MallButton",
                            "type" : "button",
 
                            "x" : 118,
                            "y" : 148,
 
                            "tooltip_text" : uiScriptLocale.MALL_TITLE,
 
                            "default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
                            "over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
                            "down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
                        },
                            ## CostumeButton
                        {
                            "name" : "CostumeButton",
                            "type" : "button",
 
                            "x" : 78,
                            "y" : 5,
 
                            "tooltip_text" : uiScriptLocale.COSTUME_TITLE,
 
                            "default_image" : "d:/ymir work/ui/game/taskbar/costume_Button_01.tga",
                            "over_image" : "d:/ymir work/ui/game/taskbar/costume_Button_02.tga",
                            "down_image" : "d:/ymir work/ui/game/taskbar/costume_Button_03.tga",
                        },                      
                        {
                            "name" : "Equipment_Tab_01",
                            "type" : "radio_button",
 
                            "x" : 86,
                            "y" : 161,
 
                            "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
                            "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
                            "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
 
                            "children" :
                            (
                                {
                                    "name" : "Equipment_Tab_01_Print",
                                    "type" : "text",
 
                                    "x" : 0,
                                    "y" : 0,
 
                                    "all_align" : "center",
 
                                    "text" : "I",
                                },
                            ),
                        },
                        {
                            "name" : "Equipment_Tab_02",
                            "type" : "radio_button",
 
                            "x" : 86 + 32,
                            "y" : 161,
 
                            "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
                            "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
                            "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
 
                            "children" :
                            (
                                {
                                    "name" : "Equipment_Tab_02_Print",
                                    "type" : "text",
 
                                    "x" : 0,
                                    "y" : 0,
 
                                    "all_align" : "center",
 
                                    "text" : "II",
                                },
                            ),
                        },
 
                    ),
                },
3.Intrati in game.py si cautati linia :

Cod: Selectaţi tot

def __ServerCommand_Build(self):
4.Adaugati dupa :

Cod: Selectaţi tot

# LagerButton
            "normal_mall"            : self.__Opennormalmall,
            #YangAnzeige
            "YangAnzeige"            : self.__MakeYangAnzeige,
            #AntiEXP
            "AntiEXP"                : self.__MakeAntiEXP,
            #Portring
            "Portring"                : self.__MakePortring,
            #Seonu2 Taler
5.Adaugati jos:

Cod: Selectaţi tot

def __Opennormalmall(self, qid):
        constInfo.mallqin= int(qid) 
    
    def __MakeAntiEXP(self, qid):
        constInfo.AntiEXPqin= int(qid)
    
    def __MakePortring(self, qid):
        constInfo.PortRingqin= int(qid)
        
    def __MakeYangAnzeige(self, money):
        if constInfo.pickInfo == 0:
            constInfo.pickInfo  = 1
            chat.AppendChat(chat.CHAT_TYPE_INFO, "Yang drop a fost activat.")
        elif constInfo.pickInfo  == 1:
            constInfo.pickInfo  = 0
            chat.AppendChat(chat.CHAT_TYPE_INFO, "Yang drop-- dezactivat")
6.Intrati in : uiinventory.py si cautati linia :

Cod: Selectaţi tot

self.wndMoneySlot = self.GetChild ("Money_Slot")'
7.Adaugati sub aceasta linie :

Cod: Selectaţi tot

self.YangAnzeige = self.GetChild2("YangAnzeige")
            self.LagerButton = self.GetChild2("LagerButton")
            self.AntiEXP = self.GetChild2("AntiEXP")
            self.Portring = self.GetChild2("Portring")
8.Cautati linia :

Cod: Selectaţi tot

if self.mallButton:
9.Adaugati sub aceasta linie :

Cod: Selectaţi tot

# LagerButton
        if self.LagerButton:
            self.LagerButton.SetEvent(ui.__mem_func__(self.ClickLagerButton))

        #YangAnzeige
        if self.YangAnzeige:
            self.YangAnzeige.SetEvent(ui.__mem_func__(self.ClickYangAnzeige))
        
        #AntiEXP
        if self.AntiEXP:
            self.AntiEXP.SetEvent(ui.__mem_func__(self.ClickAntiEXP))
        
        #Portring
        if self.Portring:
            self.Portring.SetEvent(ui.__mem_func__(self.ClickPortring))
9.Cautati linia :

Cod: Selectaţi tot

def ClickMallButton(self):

Cod: Selectaţi tot

#LagerButton
    def ClickLagerButton(self):
        import event
        qid = constInfo.mallqin
        event.QuestButtonClick(qid)
        
    #YangAnzeige
    def ClickYangAnzeige(self):
        if constInfo.pickInfo == 0:
            constInfo.pickInfo  = 1
            chat.AppendChat(chat.CHAT_TYPE_INFO, "Deine Yangdropanzeige wurde aktiviert")
        elif constInfo.pickInfo  == 1:
            constInfo.pickInfo  = 0
            chat.AppendChat(chat.CHAT_TYPE_INFO, "Deine Yangdropanzeige wurde deaktiviert")
            
    #AntiEXP
    def ClickAntiEXP(self):
        import event
        qid = constInfo.AntiEXPqin
        event.QuestButtonClick(qid)
        
    #Portring
    def ClickPortring(self):
        import event
        qid = constInfo.PortRingqin
        event.QuestButtonClick(qid)
11.Intrati in constinfo.py si adaugati :

Cod: Selectaţi tot

mallqin =  0 
yangeinzeigeqin =  0 
AntiEXPqin  =  0 
PortRingqin  =  0
Quest butoane :

Anti exp :

Cod: Selectaţi tot

quest antiexp begin
    state start begin
        when login begin
            if pc.getqf("antiexp") == 1 then
                pc.block_exp()
                chat("Anti EXP nu este activata.")
            end
        end
        when letter begin
            cmdchat("AntiEXP "..q.getcurrentquestindex())
        end
        when button or info begin
            if pc.getqf("antiexp") == 0 then
                pc.block_exp()
                pc.setqf("antiexp", 1)
                chat("Anti EXP a fost activata.")
            elseif pc.getqf("antiexp") == 1 then
                pc.unblock_exp()
                pc.setqf("antiexp", 0)
                chat("Anti EXP a fost dezactivata.")
            end
        end
    end
end

Cod: Selectaţi tot

quest lager begin
    state start begin
        when letter begin
            cmdchat("normal_mall "..q.getcurrentquestindex())
        end
        when button or info begin
            game.open_safebox()
        end
    end
end

Cod: Selectaţi tot

quest warpring begin
    state start begin
        when letter begin
            cmdchat("Portring "..q.getcurrentquestindex())
        end
        when button or info begin
end
end
end
Download Butoane :

Parola :


Tutorial instalare quest :


Tutorial instalare quest:
1. Salvaţi conţinutul quest-ului într-un fişier text numit de exemplu nume_quest.quest .
2. Vă conectaţi la filezilla / winscp şi întrati în /usr/home/game/share/locale/germany/quest (depinde ce server aveţi).
3. Îl puneţi acolo (să fie .quest) şi da-ţi permisiuni 777.
4. Te loghezi în FreeBSD / putty şi scrii în felul următor: cd /usr/home/game/share/locale/germany/quest apoi ./qc nume_quest.quest
5. Intraţi pe server şi scrieţi /reload q .
6. Testaţi quest-ul .
Imagine
Afișează semnătura
Avatar utilizator
C.Mihai
Nivel 9

Nivel 9
Mesaje: 1875
Membru din: 26 Mai 2014, 13:57
Server: xGamer
Regat: Chunjo
Aprecieri: 24  
Mulţumiri: 7  
 Contact:
Medalii

testat ?
Nu iti poti trai viata pentru altii. Trebuie sa faci ceea ce e bine pentru tine, chiar daca astfel ii ranesti pe cei pe care ii iubesti. – Nicholas Sparks
Imagine
Cea mai bună firmă de HOSTING !
Afișează semnătura
Avatar utilizator
Winstonn
Nou Venit

Nou Venit
Mesaje: 22
Membru din: 30 Iun 2015, 15:12
Server: Metin2LS
Regat: Jinno
Aprecieri: 0
Mulţumiri: 1  
Medalii

L-ai testat măcar?
Avatar utilizator
L.a.D l Catalin
Nivel 6

Nivel 6
Mesaje: 1078
Membru din: 15 Sep 2014, 18:27
Server: Freakz Metin2
Regat: Jinno
Aprecieri: 15  
Mulţumiri: 132  
 Contact:
Medalii

Pentru ce versiune de game este?
[center]VAND CONT STEAM 112 GAMES[/center]
Afișează semnătura
Avatar utilizator
IonelaLoveMT2
Nou Venit

Nou Venit
Mesaje: 18
Membru din: 01 Iul 2015, 22:47
Server: Metin2Mondial
Regat: Jinno
Aprecieri: 0
Mulţumiri: 2  
Medalii

4 inventare <3 ms frumos tot timpu ma rugau playeri sa fac mai multe inventare ca nau loc ,etc <3
Avatar utilizator
Story2
Nou Venit

Nou Venit
Mesaje: 15
Membru din: 02 Iul 2015, 14:29
Server: www.story2.ro
Aprecieri: 0
Mulţumiri: 0
Medalii

E pentru 40k ?
Avatar utilizator
George21
Nivel 6

Nivel 6
Mesaje: 1100
Membru din: 26 Dec 2014, 13:56
Server: http://mt2-ng.com/in
Regat: Chunjo
Aprecieri: 11  
Mulţumiri: 10  
Medalii

Da este pentru 40k .
Avatar utilizator
S.Adrian
Metin Master

Metin Master
Mesaje: 2641
Membru din: 22 Aug 2013, 16:22
Regat: Chunjo
Aprecieri: 9  
Mulţumiri: 63  
Discord: Copiază ID
Medalii

Am si eu o intrebare boss, pentru ce versiune de game este?
Imagine
Imagine
Afișează semnătura
Avatar utilizator
George21
Nivel 6

Nivel 6
Mesaje: 1100
Membru din: 26 Dec 2014, 13:56
Server: http://mt2-ng.com/in
Regat: Chunjo
Aprecieri: 11  
Mulţumiri: 10  
Medalii

Este pentru 40 k :) .
Avatar utilizator
F. Gabriel
Membru Club

Membru Club
Mesaje: 3759
Membru din: 17 Aug 2013, 20:44
Server: -
Regat: Shinsoo
Aprecieri: 358  
Mulţumiri: 84  
 Contact:
Medalii

Mutat in altele.
Imagine

Hosting Metin2 by OVINETWORK.RO
Afișează semnătura
Închis
Răspunsuri
1
Vizualizări
428
Răspunsuri
1
Vizualizări
197
Răspunsuri
3
Vizualizări
268
Răspunsuri
0
Vizualizări
290

Înapoi la “Arhivă”

  • Informaţie