Jump to content
×
×
  • Create New...

[ Dead Download Link ] Skill book exchange system [ We Need You ]


Koray

Recommended Posts

 

Installation:

*constInfo.py

Search:

CONSOLE_ENABLE = 0


Add it under:

BK_TRADE_SYSTEM = {
    "qid": 0,
    "ItemList": ""
}



Hidden Content

    Give reaction to this post to see the hidden content.



Search and otherwise add:
 

INPUT_IGNORE = 0

 

*game.py

Search:

from _weakref import proxy


Add in under:
 

import BKTrade

 

Search:
        self.curtain = uiPhaseCurtain.PhaseCurtain()
        self.curtain.speed = 0.03
        self.curtain.Hide()
Add in under:
        self.BKTradeSys = BKTrade.BKTrade()
        self.BKTradeSys.Close()

Hidden Content

    Give reaction to this post to see the hidden content.

 

Search:

"mall"            : self.__InGameShop_Show,


Add in under:
 

"bk_trade_sys"            : self.__BKTradeSys,

 

Search:
 

    def PartyHealReady(self):
        self.interface.PartyHealReady()

Add in upper:
 

    def __BKTradeSys(self, arg1, arg2):
        if str(arg1) == "qid":
            constInfo.BK_TRADE_SYSTEM["qid"] = arg2
        if str(arg1) == "get":
            net.SendQuestInputStringPacket(str(constInfo.BK_TRADE_SYSTEM["ItemList"]))
        if str(arg1) == "open":
            self.BKTradeSys.OpenWindow()
        if str(arg1) == "block":
            constInfo.INPUT_IGNORE = 1
        if str(arg1) == "break":
            constInfo.INPUT_IGNORE = 0

Hidden Content

    Give reaction to this post to see the hidden content.

 

Search:

def OpenQuestWindow(self, skin, idx):


Change function:
 

    def OpenQuestWindow(self, skin, idx):
        if constInfo.INPUT_IGNORE:
            return
        self.interface.OpenQuestWindow(skin, idx)

Hidden Content

    Give reaction to this post to see the hidden content.


Add bktrade.py ve ui_wrapper.py files in root pack


Add bktrade.lua in quest folder write ./qc bktrade.lua command and compile quest, Open game and write /reload q command

If you are see "Unknown Error. Please contact with game admin" error Look at quest comments

If you are upgraded inventory page count look at quest 71.line

 

Hidden Content

    Give reaction to this post to see the hidden content.

  • Metin2 Dev 1
  • Love 5
  • Good 2
Link to comment
Share on other sites

1016 22:58:45165 :: Traceback (most recent call last):

1016 22:58:45165 ::   File "networkModule.py", line 248, in SetGamePhase

1016 22:58:45165 ::   File "game.py", line 114, in __init__

1016 22:58:45167 ::   File "BKTrade.py", line 16, in __init__

1016 22:58:45168 ::   File "BKTrade.py", line 33, in GUIFunc

1016 22:58:45168 :: TypeError
1016 22:58:45168 :: :
1016 22:58:45168 :: an integer is required
1016 22:58:45168 ::

 

 

:(

 

40k Files...

Link to comment
Share on other sites

  • Premium

The well coded c++ codes are more safety than pylua connections, in my opinion.

If you care during the coding about the possible "hacking" on the python side, for e.g. you check the python inputs on the serverside properly, it has the same security level. But now I prefer the c++ codes too :D

The one and only UI programming guideline

Link to comment
Share on other sites

  • Honorable Member

No, I do not care about it, they can't do anything with python if cythonized already :).
Always there is the risk who can code hacks for him/her-self, those persons can manipulate the quest commands while the client sends it to the server.
 

Link to comment
Share on other sites

  • 1 month later...
Spoiler

 

1203 00:48:23052 :: Traceback (most recent call last):

1203 00:48:23052 ::   File "networkModule.py", line 251, in SetGamePhase

1203 00:48:23052 ::   File "system.py", line 130, in __pack_import

1203 00:48:23052 ::   File "system.py", line 110, in _process_result

1203 00:48:23053 ::   File "game.py", line 56, in ?

1203 00:48:23053 ::   File "system.py", line 130, in __pack_import

1203 00:48:23053 ::   File "
1203 00:48:23053 :: <string>
1203 00:48:23053 :: ", line 
1203 00:48:23053 :: 44
1203 00:48:23053 :: 

1203 00:48:23053 ::     
1203 00:48:23053 :: asStringPosList = '|'.join(str(i) for i in tmpInventoryPosList) # Convert Inventory pos list to string

1203 00:48:23053 ::     
1203 00:48:23053 ::  
1203 00:48:23053 ::  
1203 00:48:23053 ::  
1203 00:48:23053 ::  
1203 00:48:23053 ::  
1203 00:48:23053 ::  
1203 00:48:23053 ::  
1203 00:48:23053 ::  
1203 00:48:23053 ::  
1203 00:48:23053 ::  
1203 00:48:23053 ::  
1203 00:48:23053 ::  
1203 00:48:23053 ::  
1203 00:48:23053 ::  
1203 00:48:23053 ::  
1203 00:48:23053 ::  
1203 00:48:23053 ::  
1203 00:48:23053 ::  
1203 00:48:23053 ::  
1203 00:48:23053 ::  
1203 00:48:23053 ::  
1203 00:48:23053 ::  
1203 00:48:23053 ::  
1203 00:48:23053 ::  
1203 00:48:23053 ::  
1203 00:48:23053 ::  
1203 00:48:23053 ::  
1203 00:48:23053 ::  
1203 00:48:23053 ::  
1203 00:48:23053 ::  
1203 00:48:23053 ::  
1203 00:48:23053 ::  
1203 00:48:23054 ::  
1203 00:48:23054 ::  
1203 00:48:23054 ::  
1203 00:48:23054 ::  
1203 00:48:23054 :: ^

1203 00:48:23054 :: SyntaxError
1203 00:48:23054 :: : 
1203 00:48:23054 :: invalid syntax
1203 00:48:23054 :: 

 

Can somebody give me this command in python22 form?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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.