Jump to content

Keitenai

Members
  • Posts

    98
  • Joined

  • Last visited

  • Days Won

    11

Posts posted by Keitenai

  1. Hello,

    A lot of rAthena users preferred to use text database, and I am one of these users since it is so much easier to trace | modify | compare.
    I've been trying to find a workaround to enable rAthena to still read text version of item database, but frustratingly I don't have the knowledge & capability to do so.

     

    I really hope that there would be someone out there who can help in making rAthena be able to read text version of item db.

     

    Please hit like if you are like me who prefer to use text version item db.

    Thank you!

    • Upvote 4
    • Love 3
  2. 14 minutes ago, sapitosucio said:

    Simple but amazing concept, I have always been troubled with keeping up with resistences I've got by items or cards.

    I actually went trough the diff file and pasted all the code on the /src/custom folder I learnt about with your Delay System and it works all gucci

    I did some testing and I just noticed one thing.

    The Strong Shield [1] gives you endure-like effect but every source of dmg I receive is amplified 20%, I put a Thara Frog Card on it, which as we all know, it give us 30% resistance against demi-human, in theory I should have 10% demi-human resistence, after the -20% of resistance the Strong Shield takes away from me. But the command is returning me off values. or not ?

     

    LnEnLgs.jpeg

     

    Strong Shield gives -20 from Elements

    while thara frog card gives +30 resistance from Race

     

    These are 2 different types, and you can see that very clearly using @resist ?

     

  3. 4 hours ago, sapitosucio said:

    Thank you for the update, Keitenai!

    I found some little "problems", tho

     

    Asides from the fact that It doesn't let me apply the patch with git apply as any other diff file

    The Diff is repeating chunks, specifically the skill_delay.conf and skill_delay_castle.conf.

    Also, there is a variable to show (or not) delay time but it's not available on the conf files, you would need to place it manually Nabov2C.png

     

    Other than that, it works amazing, thank you again @Keitenai

     

    Thanks for pointing out these issues.

    The uploaded patch has been fixed.

    ??

     

    • Love 1
  4. So many errors in this script.

    * SQL `guild_member` table doesn't have `account_id`

    * "getarraysize(.holderprize)" you should not use item ID as array size, ItemID is way too big for this

    * same with the "getarraysize(.defenderprize)" and "getarraysize(.bothprize)"

    * freeloop - you don't need to activate freeloop if you use the correct size for getarraysize since max guild member is only 50 (by default).

    * getitem - this function only requires 2 values ( getitem item ID, Amount; ). Making  "getitem .bothprize[.@k], .bothprize[.@k+1], .@aid[.@j];" is too much.

     

     

  5. Find this inside the Endless Tower script :

    function	script	F_Tower_Warp	{
    
    	set .@level, getarg(0);
    	set .@map$, getarg(1);
    
    	switch(.@level) {
    		case 2: warp .@map$,136,354; break;
    		case 3: warp .@map$,224,354; break;
    		case 4: warp .@map$,310,354; break;
    		case 5: warp .@map$,395,354; break;
    		case 6: warp .@map$,52,270; break;
    		case 7: warp .@map$,136,270; break;
    		case 8: warp .@map$,224,270; break;
    		case 9: warp .@map$,310,270; break;
    		case 10: warp .@map$,395,270; break;
    		case 11: warp .@map$,52,183; break;
    		case 12: warp .@map$,136,183; break;
    		case 13: warp .@map$,224,183; break;
    		case 14: warp .@map$,310,183; break;
    		case 15: warp .@map$,395,183; break;
    		case 16: warp .@map$,52,99; break;
    		case 17: warp .@map$,136,99; break;
    		case 18: warp .@map$,224,99; break;
    		case 19: warp .@map$,310,99; break;
    		case 20: warp .@map$,395,99; break;
    		case 21: warp .@map$,52,12; break;
    		case 22: warp .@map$,136,12; break;
    		case 23: warp .@map$,224,12; break;
    		case 24: warp .@map$,310,12; break;
    		case 25: warp .@map$,395,12; break;
    
    		case 27: warp .@map$,136,354; break;
    		case 28: warp .@map$,224,354; break;
    		case 29: warp .@map$,310,354; break;
    		case 30: warp .@map$,395,354; break;
    		case 31: warp .@map$,52,270; break;
    		case 32: warp .@map$,136,270; break;
    		case 33: warp .@map$,224,270; break;
    		case 34: warp .@map$,310,270; break;
    		case 35: warp .@map$,395,270; break;
    		case 36: warp .@map$,52,183; break;
    		case 37: warp .@map$,136,183; break;
    		case 38: warp .@map$,224,183; break;
    		case 39: warp .@map$,310,183; break;
    		case 40: warp .@map$,395,183; break;
    		case 41: warp .@map$,52,99; break;
    		case 42: warp .@map$,136,99; break;
    		case 43: warp .@map$,224,99; break;
    		case 44: warp .@map$,310,99; break;
    		case 45: warp .@map$,395,99; break;
    		case 46: warp .@map$,52,12; break;
    		case 47: warp .@map$,136,12; break;
    		case 48: warp .@map$,224,12; break;
    		case 49: warp .@map$,310,12; break;
    		case 50: warp .@map$,395,12; break;
    
    		case 52: warp .@map$,136,354; break;
    		case 53: warp .@map$,224,354; break;
    		case 54: warp .@map$,310,354; break;
    		case 55: warp .@map$,395,354; break;
    		case 56: warp .@map$,52,270; break;
    		case 57: warp .@map$,136,270; break;
    		case 58: warp .@map$,224,270; break;
    		case 59: warp .@map$,310,270; break;
    		case 60: warp .@map$,395,270; break;
    		case 61: warp .@map$,52,183; break;
    		case 62: warp .@map$,136,183; break;
    		case 63: warp .@map$,224,183; break;
    		case 64: warp .@map$,310,183; break;
    		case 65: warp .@map$,395,183; break;
    		case 66: warp .@map$,52,99; break;
    		case 67: warp .@map$,136,99; break;
    		case 68: warp .@map$,224,99; break;
    		case 69: warp .@map$,310,99; break;
    		case 70: warp .@map$,395,99; break;
    		case 71: warp .@map$,52,12; break;
    		case 72: warp .@map$,136,12; break;
    		case 73: warp .@map$,224,12; break;
    		case 74: warp .@map$,310,12; break;
    		case 75: warp .@map$,395,12; break;
    
    		case 77: warp .@map$,136,354; break;
    		case 78: warp .@map$,224,354; break;
    		case 79: warp .@map$,310,354; break;
    		case 80: warp .@map$,395,354; break;
    		case 81: warp .@map$,52,270; break;
    		case 82: warp .@map$,136,270; break;
    		case 83: warp .@map$,224,270; break;
    		case 84: warp .@map$,310,270; break;
    		case 85: warp .@map$,395,270; break;
    		case 86: warp .@map$,52,183; break;
    		case 87: warp .@map$,136,183; break;
    		case 88: warp .@map$,224,183; break;
    		case 89: warp .@map$,310,183; break;
    		case 90: warp .@map$,395,183; break;
    		case 91: warp .@map$,52,99; break;
    		case 92: warp .@map$,136,99; break;
    		case 93: warp .@map$,224,99; break;
    		case 94: warp .@map$,310,99; break;
    		case 95: warp .@map$,395,99; break;
    		case 96: warp .@map$,52,12; break;
    		case 97: warp .@map$,136,12; break;
    		case 98: warp .@map$,224,12; break;
    		case 99: warp .@map$,309,12; break;
    	}
    	return;
    }

     

    Add getitem below before return:

    function	script	F_Tower_Warp	{
    
    	set .@level, getarg(0);
    	set .@map$, getarg(1);
    
    	switch(.@level) {
    		case 2: warp .@map$,136,354; break;
    		case 3: warp .@map$,224,354; break;
    		case 4: warp .@map$,310,354; break;
    		case 5: warp .@map$,395,354; break;
    		case 6: warp .@map$,52,270; break;
    		case 7: warp .@map$,136,270; break;
    		case 8: warp .@map$,224,270; break;
    		case 9: warp .@map$,310,270; break;
    		case 10: warp .@map$,395,270; break;
    		case 11: warp .@map$,52,183; break;
    		case 12: warp .@map$,136,183; break;
    		case 13: warp .@map$,224,183; break;
    		case 14: warp .@map$,310,183; break;
    		case 15: warp .@map$,395,183; break;
    		case 16: warp .@map$,52,99; break;
    		case 17: warp .@map$,136,99; break;
    		case 18: warp .@map$,224,99; break;
    		case 19: warp .@map$,310,99; break;
    		case 20: warp .@map$,395,99; break;
    		case 21: warp .@map$,52,12; break;
    		case 22: warp .@map$,136,12; break;
    		case 23: warp .@map$,224,12; break;
    		case 24: warp .@map$,310,12; break;
    		case 25: warp .@map$,395,12; break;
    
    		case 27: warp .@map$,136,354; break;
    		case 28: warp .@map$,224,354; break;
    		case 29: warp .@map$,310,354; break;
    		case 30: warp .@map$,395,354; break;
    		case 31: warp .@map$,52,270; break;
    		case 32: warp .@map$,136,270; break;
    		case 33: warp .@map$,224,270; break;
    		case 34: warp .@map$,310,270; break;
    		case 35: warp .@map$,395,270; break;
    		case 36: warp .@map$,52,183; break;
    		case 37: warp .@map$,136,183; break;
    		case 38: warp .@map$,224,183; break;
    		case 39: warp .@map$,310,183; break;
    		case 40: warp .@map$,395,183; break;
    		case 41: warp .@map$,52,99; break;
    		case 42: warp .@map$,136,99; break;
    		case 43: warp .@map$,224,99; break;
    		case 44: warp .@map$,310,99; break;
    		case 45: warp .@map$,395,99; break;
    		case 46: warp .@map$,52,12; break;
    		case 47: warp .@map$,136,12; break;
    		case 48: warp .@map$,224,12; break;
    		case 49: warp .@map$,310,12; break;
    		case 50: warp .@map$,395,12; break;
    
    		case 52: warp .@map$,136,354; break;
    		case 53: warp .@map$,224,354; break;
    		case 54: warp .@map$,310,354; break;
    		case 55: warp .@map$,395,354; break;
    		case 56: warp .@map$,52,270; break;
    		case 57: warp .@map$,136,270; break;
    		case 58: warp .@map$,224,270; break;
    		case 59: warp .@map$,310,270; break;
    		case 60: warp .@map$,395,270; break;
    		case 61: warp .@map$,52,183; break;
    		case 62: warp .@map$,136,183; break;
    		case 63: warp .@map$,224,183; break;
    		case 64: warp .@map$,310,183; break;
    		case 65: warp .@map$,395,183; break;
    		case 66: warp .@map$,52,99; break;
    		case 67: warp .@map$,136,99; break;
    		case 68: warp .@map$,224,99; break;
    		case 69: warp .@map$,310,99; break;
    		case 70: warp .@map$,395,99; break;
    		case 71: warp .@map$,52,12; break;
    		case 72: warp .@map$,136,12; break;
    		case 73: warp .@map$,224,12; break;
    		case 74: warp .@map$,310,12; break;
    		case 75: warp .@map$,395,12; break;
    
    		case 77: warp .@map$,136,354; break;
    		case 78: warp .@map$,224,354; break;
    		case 79: warp .@map$,310,354; break;
    		case 80: warp .@map$,395,354; break;
    		case 81: warp .@map$,52,270; break;
    		case 82: warp .@map$,136,270; break;
    		case 83: warp .@map$,224,270; break;
    		case 84: warp .@map$,310,270; break;
    		case 85: warp .@map$,395,270; break;
    		case 86: warp .@map$,52,183; break;
    		case 87: warp .@map$,136,183; break;
    		case 88: warp .@map$,224,183; break;
    		case 89: warp .@map$,310,183; break;
    		case 90: warp .@map$,395,183; break;
    		case 91: warp .@map$,52,99; break;
    		case 92: warp .@map$,136,99; break;
    		case 93: warp .@map$,224,99; break;
    		case 94: warp .@map$,310,99; break;
    		case 95: warp .@map$,395,99; break;
    		case 96: warp .@map$,52,12; break;
    		case 97: warp .@map$,136,12; break;
    		case 98: warp .@map$,224,12; break;
    		case 99: warp .@map$,309,12; break;
    	}
    	getitem 6000,1; //Dark_Ashes
    	return;
    }


     

  6. On 5/27/2017 at 12:13 PM, simplexjay2 said:

    thank you very much i will try it now

    I found a bug here in this patch every time i use asura while far on the enemy if you click asura to the enemy it will stop near 2 cell of the enemy

    and b4 you can asura or sonic blow u should be 1-2cell near b4 it can use skill

    outside of 3 cell it will not used the skill that u cast it will just stop 3cell b4 the enemy

    This bug has been long overdue for a fix.

    But better late than never right? ?

    I've uploaded an updated patch. This covers the fix for the said bug & is now compatible with rAthena git 97b5f3b

     

    • Love 1
  7. On 8/15/2018 at 6:20 AM, tribal0306 said:
    
    vending.cpp(384): warning C4244: '-=': conversion from 'double' to 'int', possible loss of data

    Should i ignore this warning?

     

    in vending.cpp find this code:

    sprintf(message + strlen(message), "Total profit: %s x %d", "Zeny" ,(mailprofit -= mailprofit * (battle_config.vending_tax / 10000.)));

     

    change it to this:

    sprintf(message + strlen(message), "Total profit: %s x %d", "Zeny" ,(mailprofit -= mailprofit * (int)(battle_config.vending_tax / 10000.)));

     

    is my solution correct @Easycore ?

  8. for Royal Guard's costume body sprite,

    rename ( grf\data\sprite\Àΰ£Á·\¸öÅë\³²\costume_1 ) it to ÆÈ¶óµò_³²_1 for male,

    while ( grf\data\sprite\Àΰ£Á·\¸öÅë\¿©\costume_1ÆÈ¶óµò_¿©_1 for female sprite to be used by paladin.

  9. try this @Nero:

    -	script	guild_vs1s2	-1,{
    
    	OnAgitEnd:
    		callsub( L_reward,0, "guild_vs1" );
    		end;
    		
    	OnAgitEnd2:
    		callsub( L_reward,1, "guild_vs1" );
    		end;
    	
    	L_reward:
    		.@type = getarg( 0,0 );
    		.@map$ = getarg( 1,"" );
    		
    		if ( .@type == 0) {	// woe fe
    			setarray .@item_master,
    				30206,2;
    			setarray .@item_member,
    				30206,1;
    		}
    		else {	// woe se
    			setarray .@item_master,
    				30206,2;
    			setarray .@item_member,
    				30206,1;
    		}
    		.@item_master_size = getarraysize( .@item_master ) - 1;
    		.@item_member_size = getarraysize( .@item_member ) - 1;
    		
    		if ( .@map$ != "" ) {
    			.@gid = getcastledata( .@map$,1 );
    			if ( .@gid > 0 ) {
    				getguildmember .@gid,1;
    				getguildmember .@gid,2;
    				.@master_id = getcharid( 3, getguildmaster( .@gid ) );
    				while ( .@i < $@guildmembercount ) {
    					.@x = 0;
    					if ( isloggedin( $@guildmemberaid[.@i],$@guildmembercid[.@i] ) ) {
    						if ( $@guildmemberaid[.@i] == .@master_id ) {
    							while ( .@x < .@item_master_size ) {
    								if(!checkvending(strcharinfo(0,$@guildmembercid[.@i])))
    									getitem .@item_master[.@x],.@item_master[.@x+1],$@guildmemberaid[.@i];
    								.@x += 2;
    							}
    						}
    						else {
    							while ( .@x < .@item_member_size ) {
    								if(!checkvending(strcharinfo(0,$@guildmembercid[.@i])))
    									getitem .@item_member[.@x],.@item_member[.@x+1],$@guildmemberaid[.@i];
    								.@x += 2;
    							}
    						}
    					}
    					.@i++;
    				}
    			}
    		}
    		return;
    }

     

     

×
×
  • Create New...