Jump to content
  • 0
cadz

lvl 99 reward

Question

hi anyone can help me to change this to cashpoints rather item? CCTO for the script sir radian

 

// -- A very simple script that made by me (Radian)
// -- Compatible with rAthena.
// -- I don't mind if you want to optimized this
// -- just please include me on the credits 

prontera,35,270,6    script    LvL 99 Reward    864,{

    if ( .enable_event ) {
    
    if ( getcharid(3) > .aid_end ) {
        mes "[ ^777777Account ID Checker^000000 ]";
        mes "I'm sorry you are late to avail this..";
        close;
    }

    if ( getcharid(3) < .aid_start ) {
        mes "[ ^777777Account ID Checker^000000 ]";
        mes "It's impossible you are below of the id we required to obtained the special event rewards.";
        close;
    }
    
    if ( BaseLevel < .max_base_level || JobLevel < .max_job_level ) {
        mes "[ ^00FF00Race Up to Max^000000 ]";
        mes "We're sorry you are not qualified yet on this event, please come back when you are base level is "+.max_base_level+" and job level is "+.max_job_level+".";
        close;
    }
    
    if ( #Reward == 1 ) {
        mes "[ ^FF0000Baj^000000 ]";
        mes "We apologize that you are not qualified any more to receive or get a special reward from us.";
        close;
    }
        mes "[ ^0000FFCongratulation Note^000000 ]";
        mes "We verified that you are qualified and will receive a reward from us.";
            for ( [email protected] = 0;  [email protected] < getarraysize(.reward); [email protected]++ )
            for ( [email protected] = 0; [email protected] < getarraysize(.amount); [email protected]++ )
                getitem .reward[[email protected]],.amount[[email protected]];
                    set #Reward, 1;
    announce "Congratulations! "+strcharinfo(0)+" has claimed his reward for Race to 99 Event This event runs until April 4 2021", bc_all;
        close;        
    OnInit:
    // ------------------------------------------------------------ \\
    .enable_event =    1;        // Set 0 = Disable / 1 = Enable Default.
    .max_base_level    = 99;    // Set the maximum base level here.
    .max_job_level = 70;    // Set the maximum job level here.
    .aid_start = 0;    // Set the Account ID here where you want to start. [ set this to 0 = disable ]
    .aid_end = 0;    // Set the ending Account ID here. [ set this to 0 = disable ]
    setarray .reward,20737,12210,14002,6316,12211;    // Set the rewards here.
    setarray .amount,1,5,10,10,10;            // Set the reward amouns here.
    waitingroom "99 Reward",0;        // Waiting Room.
    // ------------------------------------------------------------- \\
    end;
    }
}

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1
// -- A very simple script that made by me (Radian)
// -- Compatible with rAthena.
// -- I don't mind if you want to optimized this
// -- just please include me on the credits 

prontera,35,270,6	script	LvL 99 Reward	864,{

    if ( .enable_event ) {
    
    if ( getcharid(3) > .aid_end ) {
        mes "[ ^777777Account ID Checker^000000 ]";
        mes "I'm sorry you are late to avail this..";
        close;
    }

    if ( getcharid(3) < .aid_start ) {
        mes "[ ^777777Account ID Checker^000000 ]";
        mes "It's impossible you are below of the id we required to obtained the special event rewards.";
        close;
    }
    
    if ( BaseLevel < .max_base_level || JobLevel < .max_job_level ) {
        mes "[ ^00FF00Race Up to Max^000000 ]";
        mes "We're sorry you are not qualified yet on this event, please come back when you are base level is "+.max_base_level+" and job level is "+.max_job_level+".";
        close;
    }
    
    if ( #Reward == 1 ) {
        mes "[ ^FF0000Baj^000000 ]";
        mes "We apologize that you are not qualified any more to receive or get a special reward from us.";
        close;
    }
        mes "[ ^0000FFCongratulation Note^000000 ]";
        mes "We verified that you are qualified and will receive a reward from us.";
		if(.enable_item_reward) {
            for ( .@i = 0;  .@i < getarraysize(.reward); .@i++ )
            for ( .@i = 0; .@i < getarraysize(.amount); .@i++ )
                getitem .reward[.@i],.amount[.@i];
		}
		if(.enable_cash_reward) {
			#CASHPOINTS += 100;	// Replace to your desired amount.
			dispbottom "You receive 100 Cash points.";
		}
                    #Reward = 1;
    announce "Congratulations! "+strcharinfo(0)+" has claimed his reward for Race to 99 Event This event runs until April 4 2021", bc_all;
        close;        
OnInit:
    // ------------------------------------------------------------ \\
	.enable_event = 1;			// Set 0 = Disable / 1 = Enable (default)
	.enable_item_reward = 1;	// Set 0 = Disable / 1 = Enable (default)
	.enable_cash_reward = 1;	// Set 0 = Disable / 1 = Enable (default)
	.max_base_level    = 99;    // Set the maximum base level here.
	.max_job_level = 70;    	// Set the maximum job level here.
	.aid_start = 2000000;    			// Set the Account ID here where you want to start. [ set this to 0 = disable ]
	.aid_end = 2000100;    			// Set the ending Account ID here. [ set this to 0 = disable ]
	
	setarray .reward,20737,12210,14002,6316,12211;    // Set the rewards here.
    setarray .amount,1,5,10,10,10;            // Set the reward amouns here.
    waitingroom "99 Reward",0;        // Waiting Room.
    // ------------------------------------------------------------- \\
    end;
    }
}

@cadz I tried to edit it and didnt run a test

Did a test on the script its updated now.

Edited by Radian
Link to comment
Share on other sites

  • 0
Posted (edited)
13 hours ago, Radian said:
// -- A very simple script that made by me (Radian)
// -- Compatible with rAthena.
// -- I don't mind if you want to optimized this
// -- just please include me on the credits 

prontera,35,270,6	script	LvL 99 Reward	864,{

    if ( .enable_event ) {
    
    if ( getcharid(3) > .aid_end ) {
        mes "[ ^777777Account ID Checker^000000 ]";
        mes "I'm sorry you are late to avail this..";
        close;
    }

    if ( getcharid(3) < .aid_start ) {
        mes "[ ^777777Account ID Checker^000000 ]";
        mes "It's impossible you are below of the id we required to obtained the special event rewards.";
        close;
    }
    
    if ( BaseLevel < .max_base_level || JobLevel < .max_job_level ) {
        mes "[ ^00FF00Race Up to Max^000000 ]";
        mes "We're sorry you are not qualified yet on this event, please come back when you are base level is "+.max_base_level+" and job level is "+.max_job_level+".";
        close;
    }
    
    if ( #Reward == 1 ) {
        mes "[ ^FF0000Baj^000000 ]";
        mes "We apologize that you are not qualified any more to receive or get a special reward from us.";
        close;
    }
        mes "[ ^0000FFCongratulation Note^000000 ]";
        mes "We verified that you are qualified and will receive a reward from us.";
		if(.enable_item_reward) {
            for ( .@i = 0;  .@i < getarraysize(.reward); .@i++ )
            for ( .@i = 0; .@i < getarraysize(.amount); .@i++ )
                getitem .reward[.@i],.amount[.@i];
		}
		if(.enable_cash_reward) {
			#CASHPOINTS += 100;	// Replace to your desired amount.
			dispbottom "You receive 100 Cash points.";
		}
                    #Reward = 1;
    announce "Congratulations! "+strcharinfo(0)+" has claimed his reward for Race to 99 Event This event runs until April 4 2021", bc_all;
        close;        
OnInit:
    // ------------------------------------------------------------ \\
	.enable_event = 1;			// Set 0 = Disable / 1 = Enable (default)
	.enable_item_reward = 1;	// Set 0 = Disable / 1 = Enable (default)
	.enable_cash_reward = 1;	// Set 0 = Disable / 1 = Enable (default)
	.max_base_level    = 99;    // Set the maximum base level here.
	.max_job_level = 70;    	// Set the maximum job level here.
	.aid_start = 2000000;    			// Set the Account ID here where you want to start. [ set this to 0 = disable ]
	.aid_end = 2000100;    			// Set the ending Account ID here. [ set this to 0 = disable ]
	
	setarray .reward,20737,12210,14002,6316,12211;    // Set the rewards here.
    setarray .amount,1,5,10,10,10;            // Set the reward amouns here.
    waitingroom "99 Reward",0;        // Waiting Room.
    // ------------------------------------------------------------- \\
    end;
    }
}

@cadz I tried to edit it and didnt run a test

Did a test on the script its updated now.

hi sir radian thank you so much!

Edited by cadz
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.