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;
Tutorial ;
*** ConstInfo.py *** Open and add :
Open game.py and search : def __ServerCommand_Build(self):
Add the :
Best Regards.
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;
Tutorial ;
*** ConstInfo.py *** Open and add :
PHP Code:
INPUT_IGNORE = 0
VID2 = 0
STHX2 = 0
PLAYER_LEVEL = 0
PLAYER_NAMEE = 0
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 ;
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 ;
And This lua ..
PHP Code:
def Denn7(self, data):
dane = data.split("|")
constInfo.PLAYER_LEVEL = str(dane[0])
def Denn8(self, data):
dane = data.split("|")
constInfo.PLAYER_NAMEE = str(dane[0])
def Den7(self, id):
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))
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.")
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™






