[PYTHON | RELEASE 3]Target level in the Exchange &&

09/04/2014 14:50 fatihbab34#1
Hi. I'm Fatihbab34™
Actually, this system better with binary.. But I'm make python with lua.

NOTE : Together with Lua can cause problems..
NOTE2 : If you have error,you download "Exchange .py's" and this use.. Because this "PHP" Module sometimes give error lines..

Metin2 Offical Photo's;
[Only registered and activated users can see links. Click Here To Register...]

Tutorial ;

*** ConstInfo.py *** Open and add :
PHP Code:
INPUT_IGNORE 0

                VID2 
0
                STHX2 
0

                PLAYER_LEVEL 
0
                PLAYER_NAMEE 

Open game.py and search : def __ServerCommand_Build(self):

Add the :
PHP Code:
"ticlevel"        self.Den7,
                
"pvp_den7"        self.Denn7,
                
"pvp_den8"        self.Denn8,
            
                
#Değerler..
                
"get_input_value7"        self.GetInputValue7,
                
"get_input_start7"        self.GetInputOn7,
                
"get_input_end7"        self.GetInputOff7
Function's ;

PHP Code:
def Denn7(selfdata):
        
dane data.split("|")
        
constInfo.PLAYER_LEVEL str(dane[0])
        
    
def Denn8(selfdata):
        
dane data.split("|")
        
constInfo.PLAYER_NAMEE str(dane[0])

    
def Den7(selfid):
        
constInfo.STHX2 int(id)
        
    
def GetInputOn7(self):
        
constInfo.INPUT_IGNORE 1
        
    def GetInputOff7
(self):
        
constInfo.INPUT_IGNORE 0
            
    def GetInputValue7
(self): # HP Sistemi değer girilen sayi*
        
net.SendQuestInputStringPacket(str(constInfo.VID2)) 
Close the "Game.py"

And Open root/uiexchange.py
Search : def OpenDialog(self):
And self.TitleName.SetText(locale.EXCHANGE_TITLE % (exchange.GetNameFromTarget())) This is change ;

PHP Code:
import event
        import constInfo
        event
.QuestButtonClick(constInfo.STHX2)
        
constInfo.VID2 player.GetTargetVID()
        
#Fatihbab34(90) with echange
        
self.TitleName.SetText(exchange.GetNameFromTarget() + "(" str(constInfo.PLAYER_LEVEL) + ")" " " "with exchange."
And This lua ..

PHP Code:
quest ticfb34 begin
    state start begin
        when login begin
            cmdchat
("ticlevel "..q.getcurrentquestindex())
        
end

        when info 
or button begin
            cmdchat
("get_input_start7")
            
local vid input(cmdchat("get_input_value7"))
            
cmdchat("get_input_end7")
            
local old_pc pc.select(vid)
            
local level pc.get_level()
            
local name pc.get_name() 
            
pc.select(old_pc)
            
cmdchat("pvp_den7 "..level.."") -- player is exchange level (player'ın ticarette leveli)
        end
    end
end 

Best Regards.
Fatihbab34™

09/04/2014 15:14 xGr33n#2
Hmm... It's not really necessary. I would use this: [Only registered and activated users can see links. Click Here To Register...]
09/04/2014 15:37 Poccix#3
Why? o.O The person stands near you, and you can see the level.
I think it's very useless. Sorry.
09/04/2014 15:41 Avulsed#4
Quote:
Originally Posted by Lord Poccix View Post
Why? o.O The person stands near you, and you can see the level.
I think it's very useless. Sorry.
The official server use this to better prevent scamming. Anyways i think the best way is to edit the source of the binary, but thanks for your work. :)
09/04/2014 15:46 [uLow]Beni#5
The idea is nice, but using the Server for getting the level is stupid.
You can just use a function under player, it will get the level of the vid.
09/04/2014 16:09 Zуe#6
thanks for sharing i was searching for this,
its like the original from the official Server
09/04/2014 16:23 LovecKrys#7
Sorry but this code is really awful
09/04/2014 18:11 fatihbab34#8
Quote:
Originally Posted by LovecKrys View Post
Sorry but this code is really awful
Yes :o but wanting to use, use.. :pimp:
09/04/2014 18:47 DasSchwarzeT#9
Quote:
Originally Posted by fatihbab34 View Post
Yes :o but wanting to use, use.. :pimp:
I think it might be better to release a nice new switchbot :o
09/04/2014 19:55 fatihbab34#10
Quote:
Originally Posted by DasSchwarzeT View Post
I think it might be better to release a nice new switchbot :o
and AuktionsHaus :pimp:
09/04/2014 20:42 .Risan.#11
Warum nicht direkt im src eingebunden?
09/04/2014 23:02 vectorm2#12
Quote:
Originally Posted by Lord Poccix View Post
Why? o.O The person stands near you, and you can see the level.
I think it's very useless. Sorry.
senin ben olmayan aklını :facepalm:
09/05/2014 00:52 nitrex19#13
[Only registered and activated users can see links. Click Here To Register...]
Quote:
Originally Posted by fatihbab34 View Post
Hi. I'm Fatihbab34™
Actually, this system better with binary.. But I'm make python with lua.

NOTE : Together with Lua can cause problems..
NOTE2 : If you have error,you download "Exchange .py's" and this use.. Because this "PHP" Module sometimes give error lines..

Metin2 Offical Photo's;
[Only registered and activated users can see links. Click Here To Register...]

Tutorial ;

*** ConstInfo.py *** Open and add :
PHP Code:
INPUT_IGNORE 0

                VID2 
0
                STHX2 
0

                PLAYER_LEVEL 
0
                PLAYER_NAMEE 

Open game.py and search : def __ServerCommand_Build(self):

Add the :
PHP Code:
"ticlevel"        self.Den7,
                
"pvp_den7"        self.Denn7,
                
"pvp_den8"        self.Denn8,
            
                
#Değerler..
                
"get_input_value7"        self.GetInputValue7,
                
"get_input_start7"        self.GetInputOn7,
                
"get_input_end7"        self.GetInputOff7
Function's ;

PHP Code:
def Denn7(selfdata):
        
dane data.split("|")
        
constInfo.PLAYER_LEVEL str(dane[0])
        
    
def Denn8(selfdata):
        
dane data.split("|")
        
constInfo.PLAYER_NAMEE str(dane[0])

    
def Den7(selfid):
        
constInfo.STHX2 int(id)
        
    
def GetInputOn7(self):
        
constInfo.INPUT_IGNORE 1
        
    def GetInputOff7
(self):
        
constInfo.INPUT_IGNORE 0
            
    def GetInputValue7
(self): # HP Sistemi değer girilen sayi*
        
net.SendQuestInputStringPacket(str(constInfo.VID2)) 
Close the "Game.py"

And Open root/uiexchange.py
Search : def OpenDialog(self):
And self.TitleName.SetText(locale.EXCHANGE_TITLE % (exchange.GetNameFromTarget())) This is change ;

PHP Code:
import event
        import constInfo
        event
.QuestButtonClick(constInfo.STHX2)
        
constInfo.VID2 player.GetTargetVID()
        
#Fatihbab34(90) with echange
        
self.TitleName.SetText(exchange.GetNameFromTarget() + "(" str(constInfo.PLAYER_LEVEL) + ")" " " "with exchange."
And This lua ..

PHP Code:
quest ticfb34 begin
    state start begin
        when login begin
            cmdchat
("ticlevel "..q.getcurrentquestindex())
        
end

        when info 
or button begin
            cmdchat
("get_input_start7")
            
local vid input(cmdchat("get_input_value7"))
            
cmdchat("get_input_end7")
            
local old_pc pc.select(vid)
            
local level pc.get_level()
            
local name pc.get_name() 
            
pc.select(old_pc)
            
cmdchat("pvp_den7 "..level.."") -- player is exchange level (player'ın ticarette leveli)
        end
    end
end 

Best Regards.
Fatihbab34™


Teşekkürler :mofo: :bandit:

screenshot: [Only registered and activated users can see links. Click Here To Register...]
09/05/2014 01:51 Bostanin Edhe#14
Ist echt total nutzvoll! danke dir ! jetzt hat mein Leben wieder ein Sinn !
09/05/2014 02:31 callmax#15
warum überhaupt in den src einbinden, das ganze ist ja sogar rein in python möglich O.o