Jump to content

VegaS

Banned
  • Posts

    363
  • Joined

  • Last visited

  • Days Won

    40
  • Feedback

    0%

Posts posted by VegaS

  1. Open game.py
    
    add in 	def __ServerCommand_Build(self):
    		serverCommandList={
    
    
    			"antiexp"				: self.__antiexp,	
    			
    then add below function:
    
    	# System Anti Exp - Start
    	def __antiexp(self, qid):
    		constInfo.antiexp= int(qid)
    	# System Anti Exp - End	
    	
    Add in constinfo.py:
    
    antiexp = 0
    
    Open uiinventory and search function:
    
    self.DSSButton = self.GetChild2("DSSButton") and add below:
    
    			self.VegaS_button_Exp = self.GetChild2("VegaS_button_Exp")
    			
    search function:
    
    self.DSSButton.SetEvent(ui.__mem_func__(self.ClickDSSButton)) and add below:
    
    		## Button Anti-Experienta
    		if self.VegaS_button_Exp:
    			self.VegaS_button_Exp.SetEvent(ui.__mem_func__(self.ClickVegaS_button_Exp))	
    			
    			
    Then add the function below:
    
    ###Button anti-experienta###		
    	def ClickVegaS_button_Exp(self):
    		import event
    		qid = constInfo.antiexp
    		event.QuestButtonClick(qid)	
    		
    Importing the module event earlier in uiinventory.
    
    Inventorywindow add :
    
                   {
                        "name" : "VegaS_button_Exp",
                        "type" : "button",
                        
                        "x" : your details,
                        "y" : your details,
    					
    					"tooltip_text" : "Anti-ExP",
                        
    					"default_image" : "you images",
    					"over_image" : "you imagesa",
    					"down_image" : "you images",
                    },
    		
    		
    And this quest:
    
    quest anti_exp begin
        state start begin
    		when letter begin
                cmdchat("antiexp "..q.getcurrentquestindex())
            end
    		when button or info begin
    		if pc.getqf("antiexp") == 0 then
    			pc.setqf("antiexp", 1)
    			chat("[System Anti_Experience] - Activated] Experience points will be reset to 0 every second!")
                local ep = pc.get_exp()
                pc.give_exp2(-ep)
    			timer("vegas", 1)
    		elseif pc.getqf("antiexp") == 1 then
    			pc.setqf("antiexp", 0)
    			chat("[System Anti_Experience] - Disabled] I've now receive experience points again!")
    			end
    		end	
    					
    		when vegas.timer with pc.getqf("antiexp") == 1 begin
    			local ep = pc.get_exp()
                pc.give_exp2(-ep)
    			timer("vegas1", 1)
    			pc.setqf("antiexp", 1)
    		end	
    			
    		when vegas1.timer with pc.getqf("antiexp") == 1 begin
    			local ep = pc.get_exp()
                pc.give_exp2(-ep)
    			timer("vegas", 1)
    			pc.setqf("antiexp", 1)
    		end
    		
    		when login with pc.getqf("antiexp") == 1 begin
    			chat("[System Anti_Experience] - Activated]")
    			local ep = pc.get_exp()
    			pc.give_exp2(-ep)
    			timer("vegas", 1)
    			pc.setqf("antiexp", 1)
    		end
    	
    		when login with pc.getqf("antiexp") == 0 begin
    			chat("[System Anti_Experience] - It is not enabled!]")
    		end
    	end
    end
    

     

  2. You can do this without any modification using Ctrl+Q.

    ​Ctrl+Q hides only the quests

    ​I think he means,but the first option is better I say :D

    	def __PressQKey(self):
    		if app.IsPressed(app.DIK_LCONTROL) or app.IsPressed(app.DIK_RCONTROL):
    			if 0==interfaceModule.IsQBHide: -- exist 
    				interfaceModule.IsQBHide = 1
    				self.interface.HideAllQuestButton()
    				self.interface.HideAllWhisperButton()
    			else:
    				interfaceModule.IsQBHide = 0
    				self.interface.ShowAllQuestButton()
    				self.interface.ShowAllWhisperButton()
    		else:
    			app.RotateCamera(app.CAMERA_TO_NEGATIVE)

     

  3. "game/shop.cpp" and search function: 

    m_pGrid = M2_NEW CGrid

    Replace all function with:

    m_pGrid = M2_NEW CGrid(10, 8)

     

    "game/shop_manager.cpp" and search function:

    CGrid grid = CGrid

    Replace all function with:

    CGrid grid = CGrid(10, 8)

     

    Sorry numbers were mistakenly spaces,check now,

     

     

     

    Regards, 

        VegaS

  4. How many slots you have implemented? and put an entire picture.

    In case you used tutorial http://metin2dev.org/board/index.php?/topic/5622-cpyextend-npc-shop-to-80-items/&page=1

    modify these,the tutorial is put function:

     

    m_pGrid = M2_NEW CGrid(10, 9)
    
    CGrid grid = CGrid(10, 9)

    you will have to change to 10.8, as is actually in client

    1.                                         "x_count" : 10,
    2.                                         "y_count" : 8,
     
     
     
     
    Regards,
          VegaS 
  5.  

    Should be only used if you already fixed Bots like M2Bob since especially while farming/killing metins those bots wait until the mob disappers until they go to the next one.

    If you reduce the value you'd speed them up a lot.

    Mostly give you quite right, of course everything is possible.
    What you will already be protected will be a breeze, because it helps pretty much diminished extinction by killing monsters. We tested and working can mean a dungeon 2 times better, and without interruptions image to a normal extinction, which default is 10s. Thanks for your opinion.
    PS:I apologize for the language.
     
     
     

    Regards,

     

     VegaS  - The leader of the organization Titan2

  6. Hi, probably many of you, I say that is the advantage of this change. Well of course changing little help against attent of lag especially in some dungeons that are hundreds of phones, greatly help to run it in a more fast.

     

    So to change the seconds of extinction of a monster after it you will kill them, the normal range of approx. 10 second, enter in:

     

    We open:

     

    char_battle.cpp

     

     

    looking function:

     

    m_pkDeadEvent = event_create(dead_event, pEventInfo, bImmediateDead ?1: PASSES_PER_SEC(10));

     

     

    and to change the seconds of extinction course change, number 10, where red is bold, with how many seconds you want, preferably as 1 second, the very best.

     

    m_pkDeadEvent = event_create(dead_event, pEventInfo, bImmediateDead ?1: PASSES_PER_SEC(10));

     

     

     

    I apologize for the language.

    Good luck to implement.

     

     

     

     

    Regards,

     

     VegaS  - The leader of the organization Titan2

    • Metin2 Dev 2
    • Good 1
    • Love 5
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.