Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Development

Archive::Development Archive area for Development's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 03-09-2002, 04:42 PM
DaRacne Shaitan
Fire Beetle
 
Join Date: Mar 2002
Posts: 21
Default Updated #size code

Well, this isn't anything big, but I got sick of people thinking they're "bad" or funny because they can keep changing the GM's size =P So I just wrote the code so they can only change the size of themselfs and mobs, and anyone who is a lower level (hopefully you trust whoever you give a higher level status to as it is).

Code:
		else if (strcasecmp(sep.arg[0], "#size") == 0 && (admin >= 20))	{
			if (!sep.IsNumber(1))
				Message(0, "Usage: #size [0 - 255]");
			else {
				float newsize = atof(sep.arg[1]);
				if (newsize > 255)
					Message(0, "Error: #size: Size can not be greater than 255.");
				else if (newsize < 0)
					Message(0, "Error: #size: Size can not be less than 0.");
				else {
					if (target && target->CastToClient()->Admin() < this->Admin() || target->CastToClient()->GetID() == this->GetID())
						target->ChangeSize(newsize);
					else if (target && target->CastToClient()->Admin() >= this->Admin())
						Message(0, "Error: #size: Your will is not sufficent to change the target's size.");
					else
						this->ChangeSize(newsize);
				}
			}
		}
__________________
-DaRacne Shaitan
Reply With Quote
  #2  
Old 03-09-2002, 05:47 PM
mByte
Hill Giant
 
Join Date: Feb 2002
Posts: 206
Default

yea on my server you can only change yourself or NPC's
but you need GMstatus or higher
__________________
mByte
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 05:51 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3