Jump to content

Sergardo

Members
  • Posts

    148
  • Joined

  • Last visited

Posts posted by Sergardo

  1. On 10/30/2022 at 11:29 AM, RagEmp said:

    Look for this:

    OnTimer10500:
    	set .@map$, instance_mapname("6@tower");
    	mapannounce .@map$,"You'll soon know. Mine is the face of death!",bc_map,"0x00ffcc";
    	stopnpctimer;
    	monster .@map$,156,147,"Nacht Sieger",1956,1,instance_npcname("#4th Beeper")+"::OnMyMobDead";
    	end;
    
    OnMyMobDead:
    	// You can add 'getitem 501, 100;'  or something here..
    	donpcevent instance_npcname("Lost Soul#102")+"::OnEnable";
    	end;

    Assuming you only want to give item to the one who killed.

    If you want to give to each party member, just run a loop to distribute the item instead..

    	getpartymember getcharid(1), 2;
    	for ( .@i = 0; .@i < $@partymembercount; .@i++ ) {
    		attachrid $@partymemberaid[.@i];
    		getitem 501, 100; 
    		detachrid;
    	}

     

    thank you so much sir master

  2. On 1/29/2018 at 7:46 PM, Hurtsky said:

    here the fixed one

    prontera,100,200,3	script	VIPBuffer	78,{
    
    	specialeffect2 EF_HEAL2; percentheal 100,100;
    	specialeffect2 EF_INCAGILITY; sc_start SC_INCREASEAGI,600000,10;
    	specialeffect2 EF_BLESSING; sc_start SC_BLESSING,600000,10;
    	
    	if ( countitem ( .VIP_item ) ) {
    		specialeffect2 EF_ANGELUS; sc_start SC_ANGELUS,600000,10;
    		specialeffect2 EF_SUFFRAGIUM; sc_start SC_SUFFRAGIUM,600000,3;
    		specialeffect2 EF_IMPOSITIO; sc_start SC_IMPOSITIO,600000,5;
    		specialeffect2 EF_GLORIA; sc_start SC_GLORIA,600000,5;
    		specialeffect2 EF_MAGNIFICAT; sc_start SC_MAGNIFICAT,600000,5;
    		specialeffect2 EF_CHEMICALPROTECTIOn; sc_start SC_CP_WEAPON,600000,5;
    		sc_start SC_CP_ARMOR,600000,5;
    		sc_start SC_CP_SHIELD,600000,5;
    		sc_start SC_CP_HELM,600000,5;
    		specialeffect2 EF_ASSUMPTIO; sc_start SC_ASSUMPTIO,600000,5;
    		sc_start SC_ADRENALINE2,600000,1;
    		specialeffect2 EF_MAXPOWER; sc_start SC_MAXIMIZEPOWER,600000,5;
    		specialeffect2 EF_PERFECTION; sc_start SC_WEAPONPERFECTION,600000,5;
    		specialeffect2 EF_ENDURE; sc_start SC_ENDURE,600000,10;
    		sc_start SC_KAUPE,600000,3;
    		sc_start SC_KAITE,600000,7;
    		sc_start SC_STRFOOD,600000,5;
    		sc_start SC_AGIFOOD,600000,5;
    		sc_start SC_VITFOOD,600000,5;
    		sc_start SC_INTFOOD,600000,5;
    		sc_start SC_DEXFOOD,600000,5;
    		sc_start SC_LUKFOOD,600000,5;
    
    		switch ( CLASS ) {
    			case 18:
    			case 4019:
    			case 4071:
    			case 4078:
    				skilleffect "SL_ALCHEMIST",0;
    				sc_start4 SC_SPIRIT,9999999,5,455,0,0;
    				break;
    			case 15:
    			case 4016:
    			case 4070:
    			case 4077:
    				skilleffect "SL_MONK",0;
    				sc_start4 SC_SPIRIT,9999999,5,447,0,0;
    				break;
    			case 4047:
    				skilleffect "SL_STAR",0;
    				sc_start4 SC_SPIRIT,9999999,5,448,0,0;
    				break;
    			case 16:
    			case 4017:
    			case 4067:
    			case 4074:
    				skilleffect "SL_SAGE",0;
    				sc_start4 SC_SPIRIT,9999999,5,449,0,0;
    				break;
    			case 14:
    			case 4015:
    			case 4066:
    			case 4073:
    				skilleffect "SL_CRUSADER",0;
    				sc_start4 SC_SPIRIT,9999999,5,450,0,0;
    				break;
    			case 23:
    			case 4190:
    				skilleffect "SL_SUPERNOVICE",0;
    				sc_start4 SC_SPIRIT,9999999,5,451,0,0;
    				break;
    			case 7:
    			case 4008:
    			case 4054:
    			case 4060:
    				skilleffect "SL_KNIGHT",0;
    				sc_start4 SC_SPIRIT,9999999,5,452,0,0; 
    				break;
    			case 9:
    			case 4010:
    			case 4055:
    			case 4061:
    				skilleffect "SL_WIZARD",0;
    				sc_start4 SC_SPIRIT,9999999,5,453,0,0;
    				break;
    			case 8:
    			case 4009:
    			case 4057:
    			case 4063:
    				skilleffect "SL_PRIEST",0;
    				sc_start4 SC_SPIRIT,9999999,5,454,0,0;
    				break;
    			case 19:
    			case 20:
    			case 4020:
    			case 4021:
    			case 4068:
    			case 4069:
    			case 4075:
    			case 4076:
    				skilleffect "SL_BARDDANCER",0;
    				sc_start4 SC_SPIRIT,9999999,5,455,0,0;
    				break;
    			case 17:
    			case 4018:
    			case 4072:
    			case 4079:
    				skilleffect "SL_ROGUE",0;
    				sc_start4 SC_SPIRIT,9999999,5,456,0,0;
    				break;
    			case 12:
    			case 4013:
    			case 4059:
    			case 4065:
    				skilleffect "SL_ASSASIN",0;
    				sc_start4 SC_SPIRIT,9999999,5,457,0,0;
    				break;
    			case 10:
    			case 4011:
    				skilleffect "SL_BLACKSMITH",0;
    				sc_start4 SC_SPIRIT,9999999,5,458,0,0;
    				break;
    			case 11:
    			case 4012:
    			case 4056:
    			case 4062:
    				skilleffect "SL_HUNTER",0;
    				sc_start4 SC_SPIRIT,9999999,5,460,0,0;
    				break;
    			case 4049:
    				skilleffect "SL_SOULLINKER",0;
    				sc_start4 SC_SPIRIT,9999999,5,461,0,0;
    				break;
    			default:
    				break;
    		}
    	}
    	end;
    	
    OnInit:
    	.VIP_item = 3000; //itemId
    	end;
    }

     

    hi how about rental item? not detecting  

  3. 2 hours ago, Emistry said:

    how about start with reading the config inside the script?

    dont turn on the penalty if you dont want it to penalize the players

    https://github.com/deadlybrothers/script/blob/master/goldroom.txt#L56-L57

    its already 0 the penalty           the problem is not 100% you will got points    still have chance you got nothing                                                                                                                                                                                                                                     //Apply gold penalty. 0 = no 1 = yes
        set .@penalty1,0;       

  4. On 10/26/2022 at 2:24 PM, kalabasa said:

    if remove this like  emistry  comment

     if (.@penalty1 != 0){
        set @deduction,rand(.@maxpenalty1);
        if(@deduction == 0) set @deduction,1;   
       }
       set @gain, @gain + @bonus - @deduction;

    only for deduction    you still got the  " You got nothing"

     

    On 10/6/2012 at 12:19 AM, Emistry said:

    remove these..

    master emistry how about remove the you got nothing    imean    sure 100%  you got the gold points

     

    On 10/27/2022 at 11:16 AM, Bringer said:

    try this

    only will not show the you got nothing   how about the sure 100%  got gold  points

  5. hi already put // on skill.cpp but still stoping (wait the sonicblow animation before to attack again)  how to do continues attack with injustice card 

                if (skill == PF_SPIDERWEB) //Special case, due to its nature of coding.
                    type = CAST_GROUND;
    #ifndef RENEWAL
               //else if (skill == AS_SONICBLOW)
                   // pc_stop_attack(sd); //Special case, Sonic Blow autospell should stop the player attacking.
     

  6. On 9/9/2022 at 9:30 PM, kalabasa said:

    from doc\skill_db.txt

    always check for proper tab or alignment i guess

    you can always check for samples at db\pre-re\skill_db.yml or db\re\skill_db.yml

     

    Cooldown: Time before the character can use the same skill again in milliseconds.

    Can be defined in scalar form or sequence map form:
    Scalar Form
      Cooldown: 1000

    Sequence Map Form
      Cooldown:
        - Level: 1
          Time: 1000
        - Level: 2
          Time: 2000
        - Level: 3
          Time: 3000
        - Level: 4
          Time: 4000
        - Level: 5
          Time: 5000

     

     

    - Id: 14
        Name: MG_COLDBOLT
        Description: Cold Bolt
        MaxLevel: 10
        Type: Magic
        TargetType: Attack
        Flags:
          IsAutoShadowSpell: true
        Range: 9
        Hit: Multi_Hit
        HitCount:
          - Level: 1
            Count: 1
          - Level: 2
            Count: 2
          - Level: 3
            Count: 3
          - Level: 4
            Count: 4
          - Level: 5
            Count: 5
          - Level: 6
            Count: 6
          - Level: 7
            Count: 7
          - Level: 8
            Count: 8
          - Level: 9
            Count: 9
          - Level: 10
            Count: 10
        Element: Water
        CopyFlags:
          Skill:
            Plagiarism: true
            Reproduce: true
        CastCancel: true
        CastTime:
          - Level: 1
            Time: 640
          - Level: 2
            Time: 960
          - Level: 3
            Time: 1280
          - Level: 4
            Time: 1600
          - Level: 5
            Time: 1920
          - Level: 6
            Time: 2100
          - Level: 7
            Time: 1560
          - Level: 8
            Time: 2880
          - Level: 9
            Time: 3200
          - Level: 10
            Time: 3200
        AfterCastActDelay: 300
        FixedCastTime:
          - Level: 1
            Time: 160
          - Level: 2
            Time: 240
          - Level: 3
            Time: 320
          - Level: 4
            Time: 400
          - Level: 5
            Time: 480
          - Level: 6
            Time: 700
          - Level: 7
            Time: 640
          - Level: 8
            Time: 720
          - Level: 9
            Time: 800
          - Level: 10
            Time: 1200
    
    Cooldown : 1000
        Requires:
          SpCost:
            - Level: 1
              Amount: 12
            - Level: 2
              Amount: 14
            - Level: 3
              Amount: 16
            - Level: 4
              Amount: 18
            - Level: 5
              Amount: 20
            - Level: 6
              Amount: 22
            - Level: 7
              Amount: 24
            - Level: 8
              Amount: 26
            - Level: 9
              Amount: 28
            - Level: 10
              Amount: 30


    when i add cooldown :1000  got map error     and this happen         

    errorskilldelay.PNG

  7. hi i change my files to 2020 rathena but got error on this patch at koe  can someone help me ty  

    if ( s_bl->type == BL_PC && t_bl->type == BL_MOB ) {
            struct map_session_data *sd = BL_CAST( BL_PC, s_bl );
            if ( ( ( (TBL_MOB*)target )->mob_id == 1288 && !strcmp( mapindex_id2name(sd->mapindex), "guild_vs1" ) ) &&
                ( sd->status.guild_id == mapreg_readreg( add_str("$koegid") ) || battle_getcurrentskill(src) > 0 ) )
            return 0;
        }

     

  8. 1. i will cast devo to my party member and defender on

    2. enemy player hit my pt member - " works fine "

    3. but when i cast my devo skill again to my pt member the defender reduce damage gone but the icon defender skill and the effect of slow still there

    nwawala effect ng defender pag nag recast ng devotion skill

    anyone can help me to fix this? Thank you!

     

  9. no answer to this question please hope someone knows how to fix this defender devo 

    1. i will cast devo to my party member and defender on

    2. enemy player hit my pt member - " works fine "

    3. but when i cast my devo skill again to my pt member the defender reduce damage gone but the icon defender skill and the effect of slow still there

     

    anyone can help me to fix this? Thank you!

  10. no answer to this question please hope someone knows how to fix this defender devo 

    1. i will cast devo to my party member and defender on

    2. enemy player hit my pt member - " works fine "

    3. but when i cast my devo skill again to my pt member the defender reduce damage gone but the icon defender skill and the effect of slow still there

     

    anyone can help me to fix this? Thank you!

×
×
  • Create New...