Jump to content

Syreldar

Premium
  • Posts

    1298
  • Joined

  • Last visited

  • Days Won

    38
  • Feedback

    100%

Posts posted by Syreldar

  1. Hi metin2dev users,

     

    i will ask a question to all of you, i've got this problem since a couple of years onto my server and i want to share it with you.

    Same channel, same map.

     

    If i declare war to enemy guild, it says "the enemy leader is offline" even if he's behind me.

     

    Can't solve this problem, i know it's stupid for a dev like me but my cores are well done, don't undertsnd were's the problem :/. 

     

  2.  

    Your String is correct but i have no idea why is not works...

     

     

    test this;

     --[[quest guild_ranking 2006
    riscritta decentemente da nabbhacker per newage2]]
    
    quest guild_ranking begin
    	state start begin
    		when 11000.chat."Andamento della tua Gilda" or 11002.chat."Andamento della tua Gilda" or 11004.chat."Andamento della tua Gilda" begin
    		local name = mob_name(npc.get_race())..":"
    			say_title(name)
    			say("Classifica:[DELAY value;0]"); 
    			say(" |  Nome  | Punti |  Vit.  | Sconfitte   |  Pareggi  "); 
    			say(guild.around_ranking_string().."[/DELAY]")
    			wait()
    			say_title(name)
    			say("Prestazioni della tua Gilda ed informazioni:[ENTER]")
    			
    			--don't work begin
    			--[[
    			say(string.format("Nome Gilda:%s ;", guild.get_name()))
    			say(string.format("Livello:%d ;", guild.get_level()))
    			say(string.format("Numero Membri:%d ;", guild.get_member_count()))
    			say(string.format("Guerre Combattute:%d: ;", guild.get_any_war()))
    			say(string.format("Posizione Classifica:%d ;", guild.get_rank()))
    			]]
    			say("Nome Gilda: "..guild.get_name().."")
    			say("Livello: "..guild.get_level().."")
    			say("Numero Membri: "..guild.get_member_count().."")
    			say("Guerre Combattute: "..guild.get_any_war().."")
    			say("Posizione Classifica: "..guild.get_rank().."")
    			--don't work end
    		end	-- when
    		
    
    		when 11000.chat."Andamento Top Gilde" or 11002.chat."Andamento Top Gilde" or 11004.chat."Andamento Top Gilde" begin
    		local name = mob_name(npc.get_race())..":"
    			say_title(name)
    			say("Classifica:[DELAY value;0]");
    			say(" |  Nome  | Punti |  Vit.  | Sconfitte   |  Pareggi  "); 
    			say(guild.high_ranking_string().."[/DELAY]")
    		end -- when
    	end -- state
    end -- quest

    already tested it, same result.

  3. Hello everyone, 

     

    I've got problems with string.format, it don't work, and i can't explain why.

     

    an example:

     

    Quest: http://puu.sh/8NYD8.quest

     

    Fail screen: https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif

     

    Why?

    • Dislove 2
    • Good 2
    • Love 1
  4. You encounter this error because you don't use CTOA, so, the client will not be able to convert integer numbers to C long, goint into an error.

     

     

    Solution:

     

    Add this to system.py:

    def StringColorToInt(colorstring):
        import grp
     
        colorstring = colorstring.strip()
     
        if len(colorstring) != 8:
            raise ValueError, "input #%s is not in #AARRGGBB format" % colorstring
     
        a, r, g, b = colorstring[:2], colorstring[2:4], colorstring[4:6],colorstring[6:8]
        a, r, g, b = [int(n, 16) for n in (a, r, g, ]
     
        return grp.GenerateColor(float® / 255.0, float(g) / 255.0, float( / 255.0, float(a) / 255.0)
     
    __builtin__.CTOA = StringColorToInt
     
    Search for 0xff codes in the client root/locale/uiscript and change them like this:
     

    0xffFFB96D = CTOA("ffFFB96D")

     

    • Love 1
  5. i've got some problem with those functions:

    MIN_ADDON_DSS: int
    Sets the minimum normal hit bonus dmg you can have.
     
    MAX_ADDON_DSS: int
    Sets the maximum normal hit bonus dmg you can have.

    They're not int, they're smallint, the maximum is 32767, as the shell says.

     

    Metin2's official damages can go up to > 200k, i suggest you to put "int" instead of "smallint".

     

    if i put in CONFIG

     

    MIN_ADDON_FKS: 1

    MAX_ADDON_FKS: 20000

    MIN_ADDON_DSS: 1

    MAX_ADDON_DSS: 20000

     

    The shell returns :

     

    MIN_ADDON_FKS: 1

    MAX_ADDON_FKS: 20000

    MIN_ADDON_DSS: 20000

     

    Strange, huh?

  6. If there isn't a function to set the success percentage of stones i suggest you to do it.

    Or maybe to enable setting it at 100% directly, so:

    stone_success_pct: unsigned int (set the success percentage of inserting a stone [0-100%])
    stones_always_add: 1/0 (100% success pct of inserting a stone if enabled)

    i also suggest this:

    minerals_success_pct: unsigned int (set the success percentage of inserting a mineral [0-100%])
    minerals_always_add: 1/0 (100% success pct of inserting a mineral if enabled)
    • Love 1
×
×
  • 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.