Jump to content

Asterix

Inactive Member
  • Posts

    31
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Asterix

  1.  

    Hi, I have a small problem with a new bonus. The bonus is correctly implemented and works in the specialty system (I attach screen after). But I can't insert it as a fixed bonus on the items.

    common/length.h

    #ifdef ENABLE_NEW_SKYRIS_BONUS_TYPE
    	APPLY_PSB_UNBREAKABLE_DEFENSE 	= 101,
    	APPLY_PSB_REMOVE_GOOD_AFFECT,
    	APPLY_RES_PHYSICAL_ATTACK,
    	APPLY_RES_MAGICAL_ATTACK ,
    	APPLY_PHYSICAL_DAMAGE,
    	APPLY_MAGICAL_DAMAGE,
    	APPLY_STR_PCT,
    	APPLY_DEX_PCT,
    	APPLY_CON_PCT,
    	APPLY_INT_PCT,
    	APPLY_PSB_ABSORB_DAMAGE,
    	APPLY_PSB_REFLECT_TOTAL_DAMAGE,
    	APPLY_PSB_BREAK_DEFENSE_AFFECT,
    	APPLY_RES_MOB,

    uitooltip.py

    	AFFECT_DICT = {
    		item.APPLY_MAX_HP : localeInfo.TOOLTIP_MAX_HP,
    		item.APPLY_MAX_SP : localeInfo.TOOLTIP_MAX_SP,
    		item.APPLY_CON : localeInfo.TOOLTIP_CON,
    		item.APPLY_INT : localeInfo.TOOLTIP_INT,
    		item.APPLY_STR : localeInfo.TOOLTIP_STR,
    		item.APPLY_DEX : localeInfo.TOOLTIP_DEX,
    		item.APPLY_ATT_SPEED : localeInfo.TOOLTIP_ATT_SPEED,
    		item.APPLY_MOV_SPEED : localeInfo.TOOLTIP_MOV_SPEED,
    		item.APPLY_CAST_SPEED : localeInfo.TOOLTIP_CAST_SPEED,
    		item.APPLY_HP_REGEN : localeInfo.TOOLTIP_HP_REGEN,
    		item.APPLY_SP_REGEN : localeInfo.TOOLTIP_SP_REGEN,
    		item.APPLY_POISON_PCT : localeInfo.TOOLTIP_APPLY_POISON_PCT,
    		item.APPLY_STUN_PCT : localeInfo.TOOLTIP_APPLY_STUN_PCT,
    		item.APPLY_SLOW_PCT : localeInfo.TOOLTIP_APPLY_SLOW_PCT,
    		item.APPLY_CRITICAL_PCT : localeInfo.TOOLTIP_APPLY_CRITICAL_PCT,
    		item.APPLY_PENETRATE_PCT : localeInfo.TOOLTIP_APPLY_PENETRATE_PCT,
    
    		item.APPLY_ATTBONUS_WARRIOR : localeInfo.TOOLTIP_APPLY_ATTBONUS_WARRIOR,
    		item.APPLY_ATTBONUS_ASSASSIN : localeInfo.TOOLTIP_APPLY_ATTBONUS_ASSASSIN,
    		item.APPLY_ATTBONUS_SURA : localeInfo.TOOLTIP_APPLY_ATTBONUS_SURA,
    		item.APPLY_ATTBONUS_SHAMAN : localeInfo.TOOLTIP_APPLY_ATTBONUS_SHAMAN,
    		item.APPLY_ATTBONUS_MONSTER : localeInfo.TOOLTIP_APPLY_ATTBONUS_MONSTER,
    
    		item.APPLY_ATTBONUS_HUMAN : localeInfo.TOOLTIP_APPLY_ATTBONUS_HUMAN,
    		item.APPLY_ATTBONUS_ANIMAL : localeInfo.TOOLTIP_APPLY_ATTBONUS_ANIMAL,
    		item.APPLY_ATTBONUS_ORC : localeInfo.TOOLTIP_APPLY_ATTBONUS_ORC,
    		item.APPLY_ATTBONUS_MILGYO : localeInfo.TOOLTIP_APPLY_ATTBONUS_MILGYO,
    		item.APPLY_ATTBONUS_UNDEAD : localeInfo.TOOLTIP_APPLY_ATTBONUS_UNDEAD,
    		item.APPLY_ATTBONUS_DEVIL : localeInfo.TOOLTIP_APPLY_ATTBONUS_DEVIL,
    		item.APPLY_STEAL_HP : localeInfo.TOOLTIP_APPLY_STEAL_HP,
    		item.APPLY_STEAL_SP : localeInfo.TOOLTIP_APPLY_STEAL_SP,
    		item.APPLY_MANA_BURN_PCT : localeInfo.TOOLTIP_APPLY_MANA_BURN_PCT,
    		item.APPLY_DAMAGE_SP_RECOVER : localeInfo.TOOLTIP_APPLY_DAMAGE_SP_RECOVER,
    		item.APPLY_BLOCK : localeInfo.TOOLTIP_APPLY_BLOCK,
    		item.APPLY_DODGE : localeInfo.TOOLTIP_APPLY_DODGE,
    		item.APPLY_RESIST_SWORD : localeInfo.TOOLTIP_APPLY_RESIST_SWORD,
    		item.APPLY_RESIST_TWOHAND : localeInfo.TOOLTIP_APPLY_RESIST_TWOHAND,
    		item.APPLY_RESIST_DAGGER : localeInfo.TOOLTIP_APPLY_RESIST_DAGGER,
    		item.APPLY_RESIST_BELL : localeInfo.TOOLTIP_APPLY_RESIST_BELL,
    		item.APPLY_RESIST_FAN : localeInfo.TOOLTIP_APPLY_RESIST_FAN,
    		item.APPLY_RESIST_BOW : localeInfo.TOOLTIP_RESIST_BOW,
    		item.APPLY_RESIST_FIRE : localeInfo.TOOLTIP_RESIST_FIRE,
    		item.APPLY_RESIST_ELEC : localeInfo.TOOLTIP_RESIST_ELEC,
    		item.APPLY_RESIST_MAGIC : localeInfo.TOOLTIP_RESIST_MAGIC,
    		item.APPLY_RESIST_WIND : localeInfo.TOOLTIP_APPLY_RESIST_WIND,
    		item.APPLY_RES_MOB : localeInfo.TOOLTIP_RES_MOB,
    		item.APPLY_REFLECT_MELEE : localeInfo.TOOLTIP_APPLY_REFLECT_MELEE,
    		item.APPLY_REFLECT_CURSE : localeInfo.TOOLTIP_APPLY_REFLECT_CURSE,
    		item.APPLY_POISON_REDUCE : localeInfo.TOOLTIP_APPLY_POISON_REDUCE,
    		item.APPLY_KILL_SP_RECOVER : localeInfo.TOOLTIP_APPLY_KILL_SP_RECOVER,
    		item.APPLY_EXP_DOUBLE_BONUS : localeInfo.TOOLTIP_APPLY_EXP_DOUBLE_BONUS,
    		item.APPLY_GOLD_DOUBLE_BONUS : localeInfo.TOOLTIP_APPLY_GOLD_DOUBLE_BONUS,
    		item.APPLY_ITEM_DROP_BONUS : localeInfo.TOOLTIP_APPLY_ITEM_DROP_BONUS,
    		item.APPLY_POTION_BONUS : localeInfo.TOOLTIP_APPLY_POTION_BONUS,
    		item.APPLY_KILL_HP_RECOVER : localeInfo.TOOLTIP_APPLY_KILL_HP_RECOVER,
    		item.APPLY_IMMUNE_STUN : localeInfo.TOOLTIP_APPLY_IMMUNE_STUN,
    		item.APPLY_IMMUNE_SLOW : localeInfo.TOOLTIP_APPLY_IMMUNE_SLOW,
    		item.APPLY_IMMUNE_FALL : localeInfo.TOOLTIP_APPLY_IMMUNE_FALL,
    		item.APPLY_BOW_DISTANCE : localeInfo.TOOLTIP_BOW_DISTANCE,
    		item.APPLY_DEF_GRADE_BONUS : localeInfo.TOOLTIP_DEF_GRADE,
    		item.APPLY_ATT_GRADE_BONUS : localeInfo.TOOLTIP_ATT_GRADE,
    		item.APPLY_MAGIC_ATT_GRADE : localeInfo.TOOLTIP_MAGIC_ATT_GRADE,
    		item.APPLY_MAGIC_DEF_GRADE : localeInfo.TOOLTIP_MAGIC_DEF_GRADE,
    		item.APPLY_MAX_STAMINA : localeInfo.TOOLTIP_MAX_STAMINA,
    		item.APPLY_MALL_ATTBONUS : localeInfo.TOOLTIP_MALL_ATTBONUS,
    		item.APPLY_MALL_DEFBONUS : localeInfo.TOOLTIP_MALL_DEFBONUS,
    		item.APPLY_MALL_EXPBONUS : localeInfo.TOOLTIP_MALL_EXPBONUS,
    		item.APPLY_MALL_ITEMBONUS : localeInfo.TOOLTIP_MALL_ITEMBONUS,
    		item.APPLY_MALL_GOLDBONUS : localeInfo.TOOLTIP_MALL_GOLDBONUS,
    		item.APPLY_SKILL_DAMAGE_BONUS : localeInfo.TOOLTIP_SKILL_DAMAGE_BONUS,
    		item.APPLY_NORMAL_HIT_DAMAGE_BONUS : localeInfo.TOOLTIP_NORMAL_HIT_DAMAGE_BONUS,
    		item.APPLY_SKILL_DEFEND_BONUS : localeInfo.TOOLTIP_SKILL_DEFEND_BONUS,
    		item.APPLY_NORMAL_HIT_DEFEND_BONUS : localeInfo.TOOLTIP_NORMAL_HIT_DEFEND_BONUS,
    		item.APPLY_PC_BANG_EXP_BONUS : localeInfo.TOOLTIP_MALL_EXPBONUS_P_STATIC,
    		item.APPLY_PC_BANG_DROP_BONUS : localeInfo.TOOLTIP_MALL_ITEMBONUS_P_STATIC,
    		item.APPLY_RESIST_WARRIOR : localeInfo.TOOLTIP_APPLY_RESIST_WARRIOR,
    		item.APPLY_RESIST_ASSASSIN : localeInfo.TOOLTIP_APPLY_RESIST_ASSASSIN,
    		item.APPLY_RESIST_SURA : localeInfo.TOOLTIP_APPLY_RESIST_SURA,
    		item.APPLY_RESIST_SHAMAN : localeInfo.TOOLTIP_APPLY_RESIST_SHAMAN,
    		item.APPLY_MAX_HP_PCT : localeInfo.TOOLTIP_APPLY_MAX_HP_PCT,
    		item.APPLY_MAX_SP_PCT : localeInfo.TOOLTIP_APPLY_MAX_SP_PCT,
    		item.APPLY_ENERGY : localeInfo.TOOLTIP_ENERGY,
    		item.APPLY_COSTUME_ATTR_BONUS : localeInfo.TOOLTIP_COSTUME_ATTR_BONUS,
    
    		item.APPLY_MAGIC_ATTBONUS_PER : localeInfo.TOOLTIP_MAGIC_ATTBONUS_PER,
    		item.APPLY_MELEE_MAGIC_ATTBONUS_PER : localeInfo.TOOLTIP_MELEE_MAGIC_ATTBONUS_PER,
    		item.APPLY_RESIST_ICE : localeInfo.TOOLTIP_RESIST_ICE,
    		item.APPLY_RESIST_EARTH : localeInfo.TOOLTIP_RESIST_EARTH,
    		item.APPLY_RESIST_DARK : localeInfo.TOOLTIP_RESIST_DARK,
    		item.APPLY_ANTI_CRITICAL_PCT : localeInfo.TOOLTIP_ANTI_CRITICAL_PCT,
    		item.APPLY_ANTI_PENETRATE_PCT : localeInfo.TOOLTIP_ANTI_PENETRATE_PCT,
    	}

    locale_game.txt

    TOOLTIP_RES_MOB	Resistenza contro mostri +%d%%

     

    Screen of error (UNKNOW_VALUE[114]):

    https://metin2.download/picture/afgLRNGfZxd7sVELiiYQ054b1F23NDw3/.gif

     

    Screen of speciality and bonus corretly implemented:

    https://metin2.download/picture/Af62CyDAy4Fsc6A4NU1ZchpzWKUQI66L/.gif

     

     

     

    Some idea? 

  2. On 8/27/2019 at 9:18 AM, Helia01 said:

    Hey M2DEV ?

    Today i will show you my new tool!
    Open gr2 file, use double click for input or change path, press enter.
    After changes go to File->Save or Save as.. 
    EASY!
    ENJOY!

    D9qzVbb.png

    Update: 1.0.0.1
    1. Detect and show File Granny Tag
    2. Now you have the opportunity to choose the output version Granny.

      Hide contents

    lG4m1LY.png

    ytpQUYl.png

     

    File->Save or Save as... 
    Next open gr2 in GrannyViewer and check changes.

    gmHMgJP.png

     

    

    This is the hidden content, please

    This is the hidden content, please

      Hide contents

    This is the hidden content, please

    This is the hidden content, please


     

    Hi!

    Thanks for the relaese.

    I have a request for you. 

    Is possible do the tool for granny 2.4? 

    I will be very happy 

  3. Hello everyone,
    I have a small problem.
    I made a map with the WE, and then generated the server.attr from the tool. 
    I set the x, y coordinates multiple of 256, as it should normally be.
    And I already checked that the coordinates are not in collision.
    
    But when I transfer, the server does not read the coordinates from the town.txt, 
    in fact it continues to bring me in the 0,0 coordinates.
    
    What should I do?
  4. 7 hours ago, Syreldar said:

    It means someone else has the item and killed a 5126/5156 monster. 

    Also if those monsters are not unique to that specific dungeon, you might want to check for the dungeon on the 'when'.

    
    when 5126.kill or 5156.kill with monkey_dungeon.IsInDungeon(pc.get_map_index()) begin

     

     

    Thank you. But I have a strange problem, after doing the dungeon I can not do it again. If I restart the server yes.

     

    I'm glad you've improved so much! I saw some post of yours, congratulations. In the end you're always a Messinese like me. Do not remember? I do not understand why I'm not accepted on skype but ok.

  5. I have a problem.

    		when 5126.kill or 5156.kill begin
    		notice_multiline("Uccidendo i mostri potrai trovare l'item Meccanismo Segreto",d.notice_big)
    		notice_multiline("Se non riuscirai a trovarlo dovrai reiniziare il dungeon!",d.notice_big)
    			if pc.count_item(57096) >= 1 then
    			d.kill_all()
    			notice_multiline("Hai trovato Meccanismo segreto!",d.notice_big)
    			notice_multiline("Tra 30 secondi verrai riportato nel labirinto!",d.notice_big)
    			timer("end_monkey1",30)
    			end
    				if pc.count_item(57096) == 0 then
    				notice_multiline("Non hai ancora trovato Meccanismo segreto",d.notice_big)
    				return
    				end
    		end
    	

    the pc count not is okay?

    Why if i dont have 57096 i go out of the dungeon?

     

     

  6. Hello everyone,
    I recently needed to make a small code. But I have a compile problem.
    
    What error does the script present?
    Other tips for controlling the item?
    
    Thanks friends

     

     

    quest monkey_dungeon begin
        state start begin
    		function IsInDungeon(pc_index)
    			local map_index = 108
    			return (pc_index >= map_index*10000 and pc_index < (map_index+1)*10000)
    		end
    		--* Item teletrasporto Stanza *--
    		when 57095.use begin
    			if monkey_dungeon.IsInDungeon(pc.get_map_index()) == true then
    				syschat("[Info] Non puoi utilizzare l'item all'interno del dungeon")
    				return
    			end
    			-- if pc.get_map_index() ~= 109 then
    				-- syschat("[Info] Puoi utilizzare l'item soltanto nel sotterraneo")
    				-- return
    			-- end
    			if party.is_party() and not party.is_leader() then
    				syschat("[Info] Soltato il Capo Gruppo puo' utilizzare questo item")
    				return
    			end
    			timer("monkey_dungeon", 10)
    			notice_in_map("Un gruppo di eroi affrontera' la Stanza Sotterranea")
    			pc.remove_item(57095, 1)
    			syschat("[Info] Tra 10 secondi verrete portati nella Stanza Sotterranea!")
    		end
    		--* Fine *--
    		when monkey_dungeon.timer begin
    			d.join(108)
    			d.regen_file("data/dungeon/monkey_dungeon/monkey_dungeon1.txt")
            end
    		when 5126.kill or 5156.kill begin
    		notice_multiline("Uccidendo i mostri potrai trovare l'item Meccanismo Segreto",d.notice_big)
    		notice_multiline("Se non riuscirai a trovarlo dovrai reiniziare il dungeon!",d.notice_big)
    			if pc.count_item(57096) >= 1 then
    			d.kill_all()
    			notice_multiline("Hai trovato Meccanismo segreto!",d.notice_big)
    			notice_multiline("Tra 30 secondi verrai riportato nel labirinto!",d.notice_big)
    			timer("end_monkey1",30)
    			end
    				if pc.count_item(57096) == 0 then
    				notice_multiline("Non hai ancora trovato Meccanismo segreto",d.notice_big)
    				return
    				end
    		end
    		when end_monkey1.timer begin
    		d.exit_all()
    		end	
    			
    	end
    end

     

    • Sad 1
  7. 10 hours ago, xUniverse said:

    Quindi puoi definire una nuova funzione, prima di def __GetAttributeColor (self, index, value) in  questo modo:

    
    	
    		   
    		  
    			
    				 
    					
    				
    				
    				
    		
    		 
    		 
    		 
    		 
    		 
    		

    Ricerca:

    
    

    E aggiungi dopo:

    
    

    E non dimenticare di definire i colori nella classe  ToolTip (ui.ThinBoard).

    ############
    - È possibile creare un dizionario con alcuni tipi e intervalli di valori da semplificare.
    - È possibile utilizzare la stessa condizione in attributi con "stessi valori" (ad esempio nelle difese contro le armi).
    ############

    Esempio (l'ho fatto per testare) :

    example.png.24adbce9b178e1a33f305c23c6cf09cb.png

    Hi!

    i don’t understand where is  the check of value

    • Love 1
  8. Hello everyone!

    I am looking for a team for development of a italian private server, specifically:

    X2) GAME ADMIN;
    1. Know how to operate within mysql databases and know how to manage a server.

    2. Own a culture of private servers and have a basic knowledge of game balancing.


    X4) DEVELOPER;
    1. GAME AND CLIENT, necessary knowledge of source files.

    2. Quest and system, knowledge of the LUA and Python languages.

    3. Modeller, knowledge of mde files and good practice with modeling and exporting and preferably 2D graphics.

    4. Webmaster, will take care of the website and the management of the forum.


    X3) Game Master;

    Knowledge EXPERT of the game ... and mainly having lots of ideas and lots of time available!


    All staffers will be paid both before and after the opening.
    We are talking about a serious project with solid economic foundations.

    I DO NOT LOOK FOR OCCASIONAL WORKERS!

    Who will marry the project will obviously be paid, but will have to help manage the server and everything that goes around.

    For SOLO EMAIL applications:
    [email protected]

    First name:
    Nick infuses:
    Application:
    Knowledge:
    Previous work:
    Shared releases in the community:

    Thank you all

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