Jump to content
  • 0

How to duplicate SC_ITEMBOOST, SC_EXPBOOST & SC_JEXPBOOST


Louis T Steinhil

Question


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  177
  • Reputation:   33
  • Joined:  06/22/13
  • Last Seen:  

Hello I was trying to implement this script from Character chooses their own Rates. I edited it a bit to my liking
 

-	script	RateSelect	-1,{
	OnSetRate:
	OnPCLoginEvent:
		switch(individual_rate) {
			case 1:
				.@exp_rate_bonus = .low_rate_exp_bonus;
				.@jexp_rate_bonus = .low_rate_jexp_bonus;
				.@drop_rate_bonus = .low_rate_drop_bonus;
				set .@rate_description$, "x1 (Low Rate)";
				break;
			case 2:
				.@exp_rate_bonus = .mid_rate_exp_bonus;
				.@jexp_rate_bonus = .mid_rate_jexp_bonus;
				.@drop_rate_bonus = .mid_rate_drop_bonus;
				set .@rate_description$, "x25 (Mid Rate)";
				break;
			case 3:
				.@exp_rate_bonus = .high_rate_exp_bonus;
				.@jexp_rate_bonus = .high_rate_jexp_bonus;
				.@drop_rate_bonus = .high_rate_drop_bonus;
				set .@rate_description$, "x50 (High Rate)";
				break;
			case 4:
				.@exp_rate_bonus = .extreme_rate_exp_bonus;
				.@jexp_rate_bonus = .extreme_rate_exp_bonus;
				.@drop_rate_bonus = .extreme_rate_jexp_bonus;
				set .@rate_description$, "x100 (Extreme Rate)";
				break;
			default:
				mes "[Rate Selector]";
				mes "Select your preferred server rate for this character.";
				mes "BE CAREFUL: YOU CAN'T CHANGE IT AFTERWARD!";
				individual_rate = select("x1:x25:x50:x100");
				close2;
				goto OnSetRate;
		}

		sc_start SC_EXPBOOST, INFINITE_TICK, .@exp_rate_bonus, 10000, SCSTART_NOICON;
		sc_start SC_JEXPBOOST, INFINITE_TICK, .@jexp_rate_bonus, 10000, SCSTART_NOICON;
		sc_start SC_ITEMBOOST, INFINITE_TICK, .@drop_rate_bonus, 10000, SCSTART_NOICON;
		
		dispbottom "You have chosen the " + .@rate_description$ + " for your character.";
	end;

	OnInit:
		.low_rate_exp_bonus = 100;       // x1 rate
		.mid_rate_exp_bonus = 2500;      // x25 rate
		.high_rate_exp_bonus = 5000;     // x50 rate
		.extreme_rate_exp_bonus = 10000;  // x100 rate

		.low_rate_jexp_bonus = 100;       // x1 rate
		.mid_rate_jexp_bonus = 2500;      // x25 rate
		.high_rate_jexp_bonus = 5000;     // x50 rate
		.extreme_rate_jexp_bonus = 10000;  // x100 rate
		
		.low_rate_drop_bonus = 100;      // x1 rate
		.mid_rate_drop_bonus = 2500;     // x25 rate
		.high_rate_drop_bonus = 5000;    // x50 rate
		.extreme_rate_drop_bonus = 10000; // x100 rate
}

prontera,150,150,5	script	Rate Chooser	123,{
	callsub OnSetRate;
	end;
}

It's working but that noicon part is not working when you logout and login again. You'll see the icons on the right but with no description.

		sc_start SC_EXPBOOST, INFINITE_TICK, .@exp_rate_bonus, 10000, SCSTART_NOICON;
		sc_start SC_JEXPBOOST, INFINITE_TICK, .@jexp_rate_bonus, 10000, SCSTART_NOICON;
		sc_start SC_ITEMBOOST, INFINITE_TICK, .@drop_rate_bonus, 10000, SCSTART_NOICON;

I just would like want to duplicate SC_ITEMBOOST, SC_EXPBOOST & SC_JEXPBOOST and make their own icon so I won't have to mess up with Field Manual Icons and Bubble Gum. Thanks in advace!

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

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...