Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Server Code Submissions

Reply
 
Thread Tools Display Modes
  #1  
Old 05-22-2011, 06:00 PM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,071
Default COMMITTED: Camershake Command Fix

Quick fix for Secret's Camerashake command, the command was not giving a usage when the appropriate arguments were not given.

Thanks, Akka

Code:
Index: command.cpp
===================================================================
--- command.cpp	(revision 1902)
+++ command.cpp	(working copy)
@@ -11073,8 +11073,7 @@
 {
 	if(c)
 	{
-
-		if(sep->arg[1][0] &&  sep->arg[2][0]);
+		if(sep->arg[1][0] &&  sep->arg[2][0])
 		{
 		ServerPacket *pack = new ServerPacket(ServerOP_CameraShake, sizeof(ServerCameraShake_Struct));
 		memset(pack->pBuffer, 0, sizeof(pack->pBuffer));
@@ -11086,8 +11085,11 @@
 		safe_delete(pack);
 		return;
 		}
+		else
+		{
+		c->Message(0, "Usage -- #camerashake [duration], [intensity [1-10])");
+		}
 	}
-	c->Message(13, "Usage -- #camerashake [duration], [intensity [1-10])");
 }
 
 void command_disarmtrap(Client *c, const Seperator *sep)
Reply With Quote
  #2  
Old 05-23-2011, 01:24 AM
Secrets's Avatar
Secrets
Demi-God
 
Join Date: May 2007
Location: b
Posts: 1,450
Default

Quote:
Originally Posted by Akkadius View Post
Quick fix for Secret's Camerashake command, the command was not giving a usage when the appropriate arguments were not given.

Thanks, Akka

Code:
Index: command.cpp
===================================================================
--- command.cpp	(revision 1902)
+++ command.cpp	(working copy)
@@ -11073,8 +11073,7 @@
 {
 	if(c)
 	{
-
-		if(sep->arg[1][0] &&  sep->arg[2][0]);
+		if(sep->arg[1][0] &&  sep->arg[2][0])
 		{
 		ServerPacket *pack = new ServerPacket(ServerOP_CameraShake, sizeof(ServerCameraShake_Struct));
 		memset(pack->pBuffer, 0, sizeof(pack->pBuffer));
@@ -11086,8 +11085,11 @@
 		safe_delete(pack);
 		return;
 		}
+		else
+		{
+		c->Message(0, "Usage -- #camerashake [duration], [intensity [1-10])");
+		}
 	}
-	c->Message(13, "Usage -- #camerashake [duration], [intensity [1-10])");
 }
 
 void command_disarmtrap(Client *c, const Seperator *sep)
I'll commit this when i'm not drunk, if someone doesn't beat me to it.
Reply With Quote
  #3  
Old 05-23-2011, 04:20 AM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,490
Default

Got it for you drunkard!!

r1911
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 12:21 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3