• 0
Quesooo

H > Reward given npc

Question

Hi how to include all 3rd job specially the doram job on this script?
This npc works perfectly for 3rd job just want to know how to include the summoner class.

here is the script.

 

// -- 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,140,177,4	script	Max Lvl Reward Giver	4_F_NARIN,{

	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 "[ ^FF0000FATAL ERROR^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;
		close;
		
	OnInit:
	// ------------------------------------------------------------
	.enable_event = 1;		// Set 0 = Disable / 1 = Enable Default.
	.max_base_level = 175;	// Set the maximum base level here.
	.max_job_level = 60;	// 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 = 9999999;	// Set the ending Account ID here. [ set this to 0 = disable ]
	setarray .reward,7720,26090,16682,13607;	// Set the rewards here.
	setarray .amount,100,1,1,3;			// Set the reward amouns here.
	waitingroom "Race to the Max",0;		// Waiting Room.
	// ------------------------------------------------------------- \\
	end;
	}
}

 

Thank you in advance.

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0
On 6/11/2019 at 1:43 PM, Quesooo said:

Hi how to include all 3rd job specially the doram job on this script?
This npc works perfectly for 3rd job just want to know how to include the summoner class.

here is the script.

 

// -- 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,140,177,4	script	Max Lvl Reward Giver	4_F_NARIN,{

	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 "[ ^FF0000FATAL ERROR^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;
		close;
		
	OnInit:
	// ------------------------------------------------------------
	.enable_event = 1;		// Set 0 = Disable / 1 = Enable Default.
	.max_base_level = 175;	// Set the maximum base level here.
	.max_job_level = 60;	// 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 = 9999999;	// Set the ending Account ID here. [ set this to 0 = disable ]
	setarray .reward,7720,26090,16682,13607;	// Set the rewards here.
	setarray .amount,100,1,1,3;			// Set the reward amouns here.
	waitingroom "Race to the Max",0;		// Waiting Room.
	// ------------------------------------------------------------- \\
	end;
	}
}

 

Thank you in advance.

Your doram max job level is 50?
if yes just change to this

 

// -- 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,140,177,4	script	Max Lvl Reward Giver	4_F_NARIN,{

	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( Class == 4218 ){
		if ( BaseLevel < .max_base_level || JobLevel < .max_job_level_summon ) {
			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;
		}
	}else{
		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 "[ ^FF0000FATAL ERROR^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;
		close;
		
	OnInit:
	// ------------------------------------------------------------
	.enable_event = 1;		// Set 0 = Disable / 1 = Enable Default.
	.max_base_level = 175;	// Set the maximum base level here.
	.max_job_level = 60;	// Set the maximum job level here.
	.max_job_level_summon = 50;	// 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 = 9999999;	// Set the ending Account ID here. [ set this to 0 = disable ]
	setarray .reward,7720,26090,16682,13607;	// Set the rewards here.
	setarray .amount,100,1,1,3;			// Set the reward amouns here.
	waitingroom "Race to the Max",0;		// Waiting Room.
	// ------------------------------------------------------------- \\
	end;
	}
}

 

  • Like 1

Share this post


Link to post
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.

Loading...