Jump to content

Strzikjav

Inactive Member
  • Posts

    27
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Strzikjav

  1. Ah, sorry for not understanding then.

     

    Right click on the file > Open with.

    You'll see something like

     

    bzXC6Xf.png

     

    After clicking on the desired one and hitting ok, you will get prompted for the encoding. Auto detect doesn't work. You want either Korean EUC or Korean ISO, one of the two worked, the other didn't (If I remember correctly Korean (949) was not working properly).

     

    worked fine for me =) thanks

     

  2. Hello,

     

    i tried to implement my quest, but when i try to run the make.sh i get this error:

    must start with 'quest'
    mob_pull.quest:1:Abort trap (core dumped)

    This is my Quest:

    quest auto_pull begin
    	state start begin
    		when login begin
    			pc.setqf("auto_pull", 0)
    			cmdchat("auto_pull "..q.getcurrentquestindex())
    		end
    		when button or info begin
    			if pc.getqf("auto_pull")==0 then
    				chat("Automatischer Umhang aktiviert. Pull-Intervall: 10 Sekunden")
    				loop_timer("pull_it", 30) --TIMER
    				pc.setqf("pull", 1)
    			elseif pc.getqf("pull")==1 then
    				chat("Automatischer Umhang deaktiviert")
    				cleartimer("pull_it")
    				pc.setqf("pull", 0)
    			end
    		end
    		when pull_it.timer with pc.getqf("pull")==1 begin
    			if pc.get_hp()/pc.get_max_hp() >= 0.5 then
    				pc.aggregate_monster()
    			end
    		end
    	end
    end

    any ideas what i did wrong?
     

    Invoice files / 2089M game

     

    thanks for help

     

    regards

  3. With

    event.QuestButtonClick(int(questIndex))

    You need

    when button or info begin
        ##DO SOMETHING
    end

    In your quest. Look in uiquest.py and you will see that buttons works like that. Quests are started (don't know how..) and event.QuestButtonClick(int(questIndex)) it's used for gui buttons

     

    You can use event.QuestButtonClick(int(questIndex)) everywhere. In game.py add in def __init__ this:

    self.MyQuestNameIndex = 0

    In ServerCommand...etc

    add:

    "myvalue" : self.InitMyQuestName,

    Then make this function

    def InitMyQuestName(self, id):
         self.MyQuestNameIndex = int(id) # i added int just in case...
         #Be careful! I used SPACE not TAB. You will get syntax errors if you don't replace it.

    then you can use event.QuestButtonClick(self.MyQuestNameIndex)

     

    if you want to use it everywhere in your client, then use constInfo instead of self.MyQuestNameIndex

     

     

    I'm not sure if you understood me... More details: http://www.elitepvpers.com/forum/metin2-pserver-guides-strategies/2355018-release-client-quest-kommunikation.html

    You have here everything, also how to get a value from client and use it in your quest

     

    I've already done everything you wrote in my first post (it seems that you missunderstood me, otherway you wouldnt post it^^)

    But thanks for the Link, this may be useful.

     

    Is it possible that:

     

    self.ResetChat() or return in my if clause are blocking the quest? (To display it)

    Cuz everything is working without errors and problems, but it doesnt show the quest (Already checked QuestIndex, everything is right)

     

  4. Did you save the value as int()?And no you don't need a button to call the function

     

    Yeah, this is my called function (from serverCommandList):

    def TestWarpFunction(self, id)
           constInfo.VARIABLE = int(id)

    I'm calling my my method in a if-loop (sry 4 bad englisch)

    #SOME OTHER SOURCE...
    
    elif BLABLA:
          event.QuestButtonClick(constInfo.VARIABLE)
          self.__ResetChat()
          return

    Is the ___ResetChat() or return maybe disturbing my Quest?

     

  5. Hey Guys,

     

    hope to get fast help with myQuestion^^

    Acutal i have a question:

     

    event.QuestButtonClick(ARGUMNT)
    

    Is this just a call to the function to open the Quest with Questindex as ARGUMNT or do i really need a button to call this function?

     

    Actual i am calling this method without a button, but nothing happens (even no error) so i was wondering.

    The Quest to get the Questindex looks like this:

    quest test begin
        state start begin
            when login begin
                cmdchat("myvalue "..q.getcurrentquestindex())
            end
        end
    end

    I'm saving my Questindex in a var in constinfo (yes, i know ho to read out the cmdchat value via game.py)

    Regards

     

     

     

    €dit:

     

    i'm calling my quest like this:

    when button or info begin
        ##DO SOMETHING
    end
  6.  

     

     

     

    The coordinates are in source code ;)

    Inviato dal mio iPhone utilizzando Tapatalk

     

    thanks to all for your help, do you know where exactly?

     

    ****linesrcsservergamesrcstart_position.cpp

     

     

    for start position

    DWORD g_start_position[4][2] =
    {
    	{      0,      0 },	// reserved
    	{ 469300, 964200 },	// ½Å¼ö±¹
    	{  55700, 157900 },	// õÁ¶±¹
    	{ 969600, 278400 }	// Áø³ë±¹
    };

    for new character

    DWORD g_create_position[4][2] = 
    {
    	{		0,		0 },
    	{ 459800, 953900 },
    	{ 52070, 166600 },
    	{ 957300, 255200 },	
    };
    

    I dont rly now the difference.. But I think with a little testing it should work

     

     

    Where exactly can i find the path / file? I'm new to Servermodding

     

    It's in the sourcecode. I won't give any information where to download or find it but first you should know what a source code is. After you should know how to compile the Metin2 source code in c++ and then you can start editing the spawn point of new characters. Sorry for mistakes but I'm tired ;)

     

     

    ahh okay then i know what to do, just missunderstood it, thanks anyway for you help

  7.  

     

    The coordinates are in source code ;)

    Inviato dal mio iPhone utilizzando Tapatalk

     

    thanks to all for your help, do you know where exactly?

     

    ****linesrcsservergamesrcstart_position.cpp

     

     

    for start position

    DWORD g_start_position[4][2] =
    {
    	{      0,      0 },	// reserved
    	{ 469300, 964200 },	// ½Å¼ö±¹
    	{  55700, 157900 },	// õÁ¶±¹
    	{ 969600, 278400 }	// Áø³ë±¹
    };

    for new character

    DWORD g_create_position[4][2] = 
    {
    	{		0,		0 },
    	{ 459800, 953900 },
    	{ 52070, 166600 },
    	{ 957300, 255200 },	
    };
    

    I dont rly now the difference.. But I think with a little testing it should work

     

     

    Where exactly can i find the path / file? I'm new to Servermodding

×
×
  • 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.