PDA

View Full Version : Miscellaneous: Shrink Spell


Lord C
09-11-2015, 03:31 PM
I admit I am not sure what is classic, but it is the greatest travesty in p99 that gnomes are unable to shrink.

I found this thread, it doesn't seem conclusive enough for me: http://www.project1999.com/forums/showthread.php?t=32178&highlight=shrink+gnome

I am not asking for much, just 10% smaller would be awesome. Or even less, I don't want to break the game or cause exploits.

I took a look at the eqemu git and found this in Server/mob.cpp line 2240:
https://github.com/EQEmu/Server/blob/753f53be1bb9e92559aca1a39c64e442076c22f7/zone/mob.cpp
void Mob::ChangeSize(float in_size = 0, bool bNoRestriction) {
// Size Code
if (!bNoRestriction)
{
if (this->IsClient() || this->petid != 0)
if (in_size < 3.0)
in_size = 3.0;


if (this->IsClient() || this->petid != 0)
if (in_size > 15.0)
in_size = 15.0;
}


if (in_size < 1.0)
in_size = 1.0;

if (in_size > 255.0)
in_size = 255.0;
//End of Size Code
this->size = in_size;
SendAppearancePacket(AT_Size, (uint32) in_size);
}

I propose something like the following change to implement a new gnome shrink minimum:

void Mob::ChangeSize(float in_size = 0, bool bNoRestriction) {
// Size Code
if (!bNoRestriction)
{
if (this->IsClient() || this->petid != 0)
if (in_size < 3.0 && this->GetRace() != GNOME)
in_size = 3.0;
else if (in_size < 2.8 && this->GetRace() == GNOME)
in_size = 2.8;


if (this->IsClient() || this->petid != 0)
if (in_size > 15.0)
in_size = 15.0;
}


if (in_size < 1.0)
in_size = 1.0;

if (in_size > 255.0)
in_size = 255.0;
//End of Size Code
this->size = in_size;
SendAppearancePacket(AT_Size, (uint32) in_size);
}

This is my first time looking at eqemu source and I do not have a setup to test this change.

If you are involved with p99 and you have any power, I implore you to at least test this out. This would be the best thing to happen to anything... EVER. I will do any coding jobs no one else wants if this happens. Though I am but humble casual scum, I can only pray my voice is heard. Please address this injustice.

Sincerely,
Lord C

Lord C
11-18-2015, 06:43 PM
In honor of the close kinship between gnomes and leprechauns, a brief limerick:

There once was a gnome named Lord C
With a dream of becoming more wee
He drank a potion to shrink
But you'd be wrong to think
That it worked, he is stuck, at size 3

Sunderfury
09-26-2019, 09:48 AM
While providing code is A+ effort, resolving due to lack of evidence