Jump to content

Evo

Member
  • Posts

    11
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Evo

  1. def check_file():
    	file_path = filedialog.askopenfilename(filetypes=[('Text files', '*.txt')])
    	if file_path:
    		count_respect_format = 0
    		count_do_not_respect_format = 0
    		invalid_strings = []
    
    		with open(file_path, 'r') as file:
    			content = file.read()
    			pairs = content.split('\n\n')
    			for pair in pairs:
    				strings = pair.strip().split('\n')
    				if len(strings) == 2:
    					string1, string2 = strings
    					if check_format(string1.strip()) and check_format(string2.strip()):
    						count_respect_format += 1
    					else:
    						count_do_not_respect_format += 1
    						invalid_strings.append((string1.strip(), string2.strip()))
    				else:
    					print(f"Skipping pair: {pair}")
    
    		result_text.delete('1.0', 'end')
    		result_text.insert('end', f"Number of pairs that respect the format: {count_respect_format}\n"
    								  f"Number of pairs that do not respect the format: {count_do_not_respect_format}\n\n")
    
    		if count_do_not_respect_format > 0:
    			result_text.insert('end', "Invalid strings:\n\n")
    			for invalid_string in invalid_strings:
    				result_text.insert('end', f"{invalid_string[0]}\n{invalid_string[1]}\n\n")
    	else:
    		result_text.delete('1.0', 'end')
    		result_text.insert('end', "No file selected.")

     

    • Good 1
    • Love 1
  2. 6 hours ago, Gurgarath said:

    Sometimes it seems like people can't get knockbacked anymore. Try to attack mobs from your horse to see if they get pushed when you hit them (not when they die). Otherwise the knowkback will only make the people fall. 

     

    IsStone() and return false; but it seems that it was already fixed in the original code.

     

    
    					if (pkChrVictim->IsRaceFlag(RACE_FLAG_METIN))
    						fknockbackLength = 0;

     

    I've noticed Rakancito about knockback with stones weeks ago... but he """fixed""" this with a wrong work around and I have not noticed that to him. IsStone() version is correct.

     

               if (IS_SET(m_pkSk->dwFlag, SKILL_FLAG_KNOCKBACK))
                {
                    float fknockbackLength = 300; //Distance for KnockBack, defult 300
    
                    if (pkChrVictim->IsStone())
                        fknockbackLength = 0;

     

    • Love 1
  3. This """things""" have nothing to do with original beta skill window gui.

    Why you don't learn/inform about that before posting horrible turky selfmade shit and 99,9999% coded like shit aswell?

    My eyes are burning becouse of that video.

     

    OT:

    Is 240p a standard in turkylandia?

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