Jump to content

PewN

Members
  • Posts

    892
  • Joined

  • Last visited

Posts posted by PewN

  1.  

    Hi ~ rAthena.

    I just need some help :)

    How can i edit the skill Tarot Card instead of breaking the item it will only unequip it?

     

    case 3:	// 1000 damage, random armor destroyed
    	{
    		status_fix_damage(src, bl, 1000, 0, skill_id);
    		clif_damage(src,bl,tick,0,0,1000,0,DMG_NORMAL,0);
    		if( !status_isdead(bl) ) {
    			int where[] = { EQP_ARMOR, EQP_SHIELD, EQP_HELM, EQP_SHOES, EQP_GARMENT };
    			skill_break_equip(src,bl, where[rnd()%5], 10000, BCT_ENEMY);
    		}
    	}
    break;
    

    Thanks ~

     

    Try doing this:

    skill_strip_equip(src,bl, where[rnd()%5], 10000, skill_lv, skill_get_time(skill_id,skill_lv));
    

    EDIT: Tested and working.

     

    Thanks for your help ~ too damn to realize :( hahaha

  2. Hi ~ rAthena.

    I just need some help :)

    How can i edit the skill Tarot Card instead of breaking the item it will only unequip it?
     

    case 3:	// 1000 damage, random armor destroyed
    	{
    		status_fix_damage(src, bl, 1000, 0, skill_id);
    		clif_damage(src,bl,tick,0,0,1000,0,DMG_NORMAL,0);
    		if( !status_isdead(bl) ) {
    			int where[] = { EQP_ARMOR, EQP_SHIELD, EQP_HELM, EQP_SHOES, EQP_GARMENT };
    			skill_break_equip(src,bl, where[rnd()%5], 10000, BCT_ENEMY);
    		}
    	}
    break;
    

    Thanks ~

  3. the disconnection is a feature

    if (sum >= sd->tem_tick_skill3 - 20 && sum <= sd->tem_tick_skill3 + 20)

    this is the range of detection, if we lowered from 20, mean we use lowered range. but don't give it to high number.

    We use 20, because if at real Private Server, the packet sent depend on user connection speed.

    i'll do test once more, to get the exact number :D

     

    is this working in any client? like 2012? thanks

  4. 	set .@nb, query_sql( "select char_id as aaa, ( select name from `char` where char_id = aaa ), win, lost from char_bg order by win desc limit 10", .@char_id, .@name$, .@win, .@lost );
    	mes "^0000FF[ BG Ranking ]^000000";
    	for ( set .@i, 0; .@i < .@nb; set .@i, .@i +1 )
    		mes "^0000FF"+ (.@i+1) +": ^006699"+ ( ( getstrlen( .@name$[.@i] ) )? .@name$[.@i] : "None" ) +"^000000 ^00AA00W["+ .@win[.@i] +"]^000000 ^FF0000L["+ .@lost[.@i] +"]^000000";
    

    i will try this thank you very much annieruru

    i didn't know that query_sql can do like this  :(

     

    query_sql("select char_id as aaa, ( select name from `char` where char_id = aaa), win, lost from char_bg order by win desc limit 10", .@char_id, .@name$, .@win, .@lost );
    
  5. I'm having a problem with my script on query_sql

    set .@nb, query_sql("select char_id, win, lost from char_bg order by win desc limit 10", .@char_id, .@win, .@lost);
    mes "^0000FF[ BG Ranking ]^000000";
    for ( set .@i, .@j; .@i < 10; set .@i, .@i + 1 ) {
    query_sql "select name from `char` where char_id = "+.@char_id[.@i], .@name$;
    mes "^0000FF"+ (.@i+1) +": ^006699"+ ( (.@name$[.@i] == "")? "None":.@name$[.@i]) +"^000000 ^00AA00W["+ .@win[.@i] +"]^000000 ^FF0000L["+ .@lost[.@i] +"]^000000";
    }
    
×
×
  • Create New...