how to add unique gepard ip so that after he/she won the race to max level, he/she cannot join in a different character
freya,218,220,6 script Max Level 4_LGTSCIENCE,{
set .@gm_level, 99; // GM level required to set the reward
set .@maxbase, 175;
set .@maxjob, 60;
set .@defaultreward, 39997;
setarray .@rewardablejobs[0], Job_Rune_Knight_T, Job_Genetic_T, Job_Guillotine_Cross_T, Job_Minstrel_T, Job_Mechanic_T, Job_Royal_Guard_T, Job_Wanderer_T, Job_Ranger_T, Job_Sura_T, Job_Arch_Bishop_T, Job_Shadow_Chaser_T, Job_Sorcerer_T, Job_Warlock_T, Job_Kagerou, Job_Oboro;
Begin:
mes "[ ^FF7700Race to Max Level^000000 ]";
mes "Hello, " + ((getgmlevel() >= .@gm_level) ? "master! What do you want to do today?" : "are you here for your reward?");
next;
switch(select(((getgmlevel() >= .@gm_level) ? "Set Reward:Restart Race" : ":") + ":YES Please!:What is the Reward?:Who was rewarded?:Cancel")) {
case 1:
goto SetReward;
case 2:
goto RestartRace;
case 3:
goto GetReward;
case 4:
goto ExplainRace;
case 5:
goto ShowRewarded;
default:
end;
}
SetReward:
mes "[ ^FF7700Race to Max Level^000000 ]";
if ($reward == 0)
set $reward, .@defaultreward;
mes "The reward is " + getitemname($reward) + " (ID: " + $reward + ").";
mes "Do you want to change it?";
next;
if (select("Yes:No") == 1) {
mes "[ ^FF7700Race to Max Level^000000 ]";
mes "Please enter the new reward item ID.";
input .@rewardid;
next;
mes "[ ^FF7700Race to Max Level^000000 ]";
mes "Set " + getitemname(.@rewardid) + " as the reward?";
if(select("Yes:No") == 1) {
set $reward, .@rewardid;
}
}
goto Begin;
RestartRace:
mes "[ ^FF7700Race to Max Level^000000 ]";
mes "Are you sure you want to restart the race?";
next;
if (select("Yes:No") == 1) {
for (.@i = 0; .@i < getarraysize(.@rewardablejobs); .@i++) {
set $rewarded$[.@rewardablejobs[.@i]], "";
}
announce "The Race to Max Level has begun! Claim a reward once you reach " + .@maxbase + " base and job " + .@maxjob + " !!", bc_all;
}
goto Begin;
GetReward:
mes "Let's see... " + strcharinfo(0) + ", huh?";
set .@competitioner, 0;
for (.@i = 0; .@i < getarraysize(.@rewardablejobs); .@i++) {
if (Class == .@rewardablejobs[.@i]) {
set .@competitioner, 1;
if (BaseLevel < .@maxbase || JobLevel < .@maxjob) {
mes "I'm sorry, but you still need to level a bit more.";
} else if ($rewarded$[Class] == strcharinfo(0)) {
mes "You have already claimed your reward.";
} else if ($rewarded$[Class] != "") {
mes "Too late!";
mes "The reward for " + jobname(Class) + " was already claimed by " + $rewarded$[Class] + ".";
} else goto GiveReward;
}
}
if (.@competitioner == 0)
mes "You need to change your job.";
close;
GiveReward:
set $rewarded$[Class], strcharinfo(0);
next;
mes "[ ^FF7700Race to Max Level^000000 ]";
mes "Congratulations! You were the first " + jobname(Class) + " to reach " + .@maxbase + " base and " + .@maxjob + " class!";
getitem $reward, 1;
announce strcharinfo(0) + " ~ " + jobname(Class) + " ~ Has Reached Max. Level and Received " + getitemname($reward) + "!", bc_all;
close;
ExplainRace:
mes "[ ^FF7700Race to Max Level^000000 ]";
mes "Yes! When you reach the maximum level for your class, talk to me and you'll be rewarded with a special item.";
next;
goto Begin;
ShowRewarded:
mes "[ ^FF7700Race to Max Level^000000 ]";
for (.@i = 0; .@i < getarraysize(.@rewardablejobs); .@i++) {
mes jobname(.@rewardablejobs[.@i]) + ": " + (($rewarded$[.@rewardablejobs[.@i]] != "") ? $rewarded$[.@rewardablejobs[.@i]] : "^ff0000Nobody^000000");
}
next;
goto Begin;
OnInit:
while (1) {
showscript " Race to 175 Winners! ";
sleep 1000;
}
end;
}
Question
Enoch
how to add unique gepard ip so that after he/she won the race to max level, he/she cannot join in a different character
Use codebox
Link to comment
Share on other sites
7 answers 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.