summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-05-27 16:42:14 -0300
committerJesusaves <cpntb1@ymail.com>2020-06-17 00:46:30 +0000
commit4a9525555b5166bfa72947e1c7fc6ce64040b1d6 (patch)
tree616302a4e93c834aa2a4ab772e85239aaed0efd5
parent73b5c43957937db29334e4a57cfb1bde68381d90 (diff)
downloadserverdata-4a9525555b5166bfa72947e1c7fc6ce64040b1d6.tar.gz
serverdata-4a9525555b5166bfa72947e1c7fc6ce64040b1d6.tar.bz2
serverdata-4a9525555b5166bfa72947e1c7fc6ce64040b1d6.tar.xz
serverdata-4a9525555b5166bfa72947e1c7fc6ce64040b1d6.zip
Players coming from TMW Legacy will now be prompted to select their race.
There's a commented code which I'll need @gumiko to uncomment it for me.
-rw-r--r--npc/000-0/sailors.txt14
-rw-r--r--npc/functions/barber.txt32
2 files changed, 46 insertions, 0 deletions
diff --git a/npc/000-0/sailors.txt b/npc/000-0/sailors.txt
index 6a9d476b..1e2fe739 100644
--- a/npc/000-0/sailors.txt
+++ b/npc/000-0/sailors.txt
@@ -53,6 +53,20 @@ OnTouch:
asklanguage(LANG_ON_SEA);
+ // TODO: This is gumi's code, I have no idea if it works or not
+ // Besides, is it lv 90, 95, 99, 100, or...?
+ // I believe Micksha said level 90 was plenty, but.
+ /*** FIXME ***
+ if ((LEGACY[1] & 0x7FFFFF00) >> 8) > 90)
+ REBIRTH=1;
+ *** FIXME ***/
+
+ // Players coming from TMW Legacy didn't got a chance to do this yet.
+ // So allow them now.
+ if (LEGACY) {
+ BarberChangeRace();
+ }
+
setcamnpc;
mes "";
mesn;
diff --git a/npc/functions/barber.txt b/npc/functions/barber.txt
index b88c4399..123723fa 100644
--- a/npc/functions/barber.txt
+++ b/npc/functions/barber.txt
@@ -3,6 +3,7 @@
// omatt
// Reid
// Travolta
+// Jesusalva
// Description:
// Function for supporting barber NPC.
@@ -123,3 +124,34 @@ function script BarberChangeGender {
Gender = @menuret;
return;
}
+
+// THIS FUNCTION SHOULD BE USED ONLY AT REBIRTH
+// Unless current game development design changes!
+function script BarberChangeRace {
+
+ mes l("What's your race?");
+ menuint(
+ get_race(GETRACE_FULL, KaizeiViro), KaizeiViro,
+ get_race(GETRACE_FULL, ArgaesViro), ArgaesViro,
+ get_race(GETRACE_FULL, TonoriViro), TonoriViro,
+ get_race(GETRACE_FULL, CaveUkar), CaveUkar,
+ get_race(GETRACE_FULL, MountainUkar), MountainUkar,
+ get_race(GETRACE_FULL, SeaTritan), SeaTritan,
+ get_race(GETRACE_FULL, LakeTritan), LakeTritan,
+ rif(REBIRTH, get_race(GETRACE_FULL, LightRaijin)), LightRaijin,
+ rif(REBIRTH, get_race(GETRACE_FULL, DarkRaijin)), DarkRaijin,
+ rif(REBIRTH, get_race(GETRACE_FULL, FireKralog)), FireKralog,
+ rif(REBIRTH, get_race(GETRACE_FULL, FrostKralog)), FrostKralog;
+
+ mes "";
+ // Something went *terribly* wrong
+ if (@menuret >= LightRaijin && !REBIRTH) {
+ channelmes("#irc", "Illegal operation at BarberChangeRace, sysadmin help required.");
+ consolemes(CONSOLEMES_ERROR, "Account %d tried to change race to %d but rebirth is not set. Race not changed.", getcharid(3), @menuret);
+ return;
+ }
+
+ // Change race and we're done
+ Class = @menuret;
+ return;
+}