summaryrefslogtreecommitdiff
path: root/world/map/npc/functions
diff options
context:
space:
mode:
authorLed Mitz <smoothshifter@tuta.io>2024-04-03 18:01:32 +0000
committerLed Mitz <smoothshifter@tuta.io>2024-04-03 18:01:32 +0000
commita98cf958b0264358c5ea13818458ce8e3a229867 (patch)
tree8343384a7cd98fe9522a08d85b401396fabf2ec0 /world/map/npc/functions
parentb3862b8d824b1470b4a1d844db2b1eab826be4e7 (diff)
downloadserverdata-a98cf958b0264358c5ea13818458ce8e3a229867.tar.gz
serverdata-a98cf958b0264358c5ea13818458ce8e3a229867.tar.bz2
serverdata-a98cf958b0264358c5ea13818458ce8e3a229867.tar.xz
serverdata-a98cf958b0264358c5ea13818458ce8e3a229867.zip
Allow setting stats at start of game - server
This brings back the ability to set stats during character creation. It will need to be tested first to ensure that new characters do not gain an additional 30 stat points and to make sure that current characters gain 3 more. Also, I'll need to make one more MR, probably, when I find out where character points on character creation are set. Will need to change from 48 to 54 in order to achieve 30 points, I think, though I may need to change 48 to 0 if this is set after login. Simple things are rarely simple in practice. GAH! **** Approved-by: Led Mitz <smoothshifter@tuta.io> Reviewed-by: Led Mitz <smoothshifter@tuta.io>
Diffstat (limited to 'world/map/npc/functions')
-rw-r--r--world/map/npc/functions/headstyles.txt14
1 files changed, 7 insertions, 7 deletions
diff --git a/world/map/npc/functions/headstyles.txt b/world/map/npc/functions/headstyles.txt
index f5f2ea82..bada9f4e 100644
--- a/world/map/npc/functions/headstyles.txt
+++ b/world/map/npc/functions/headstyles.txt
@@ -4,8 +4,8 @@
function|script|fixHeadStyles
{
callfunc "getHeadStyles";
- if ((TUT_var < 1 || QL_BEGIN < 1) && StatusPoint < 1 && BaseLevel == 1)
- goto L_RandomHair; // on first login
+ // if ((TUT_var < 1 || QL_BEGIN < 1) && StatusPoint < 1 && BaseLevel == 1)
+ // goto L_RandomHair; // on first login
set @style, getlook(LOOK_HAIR_STYLE); // FIXME: this needs to be a param in the future
set @color, getlook(LOOK_HAIR_COLOR); // FIXME: this needs to be a param in the future
if (@style < 1 || @style > getarraysize(@HairStyles$)) // leftover from previous attempt at classes
@@ -17,11 +17,11 @@ function|script|fixHeadStyles
setlook LOOK_HAIR_COLOR, @color; // FIXME: this needs to be a param in the future
return;
-L_RandomHair:
- resetstatus; // <= important! gives 48 stat points
- setlook LOOK_HAIR_STYLE, rand(1, getarraysize(@HairStyles$));
- setlook LOOK_HAIR_COLOR, rand((15 * (Class - 1)),((15 * (Class - 1)) + (getarraysize(@HairColors$) - 1)));
- return;
+// L_RandomHair:
+ // resetstatus; // <= important! gives 48 stat points
+ // setlook LOOK_HAIR_STYLE, rand(1, getarraysize(@HairStyles$));
+ // setlook LOOK_HAIR_COLOR, rand((15 * (Class - 1)),((15 * (Class - 1)) + (getarraysize(@HairColors$) - 1)));
+ // return;
}
function|script|getHeadStyles