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 01-16-2002, 07:21 AM
Nefarious
Fire Beetle
 
Join Date: Jan 2002
Posts: 18
Default New Commands #1 <The Heading Command>

These are some commands i have made:

#heading

Description: Gives the user a feedback with they're heading in a number format and the cardinal direction.

Code:

else if (strcasecmp(sep.arg[0], "#heading") == 0 )
{
int cHeading = heading;
char card[11];

if ( cHeading &lt; 0 )

cHeading = cHeading + 260;

if ((cHeading >= 0 &amp;&amp; cHeading &lt;= 20) || (cHeading &lt;= 260 &amp;&amp; cHeading >= 240))
strcpy(card, "North");

else if (cHeading > 20 &amp;&amp; cHeading &lt;= 40)
strcpy(card, "North West");
else if (cHeading > 40 &amp;&amp; cHeading &lt;= 80)
strcpy(card, "West");
else if (cHeading > 80 &amp;&amp; cHeading &lt;= 100)
strcpy(card, "South West");
else if (cHeading > 100 &amp;&amp; cHeading &lt;= 150)
strcpy(card, "South");
else if (cHeading > 150 &amp;&amp; cHeading &lt;= 170)
strcpy(card, "South East");
else if (cHeading > 170 &amp;&amp; cHeading &lt;= 210)
strcpy(card, "East");
else if (cHeading > 210 &amp;&amp; cHeading &lt; 240)
strcpy(card, "North East");
else if (cHeading > 260 || cHeading &lt; 0)
strcpy(card, "N/A");

Message(1, " Your current heading is: %d", cHeading);
Message(1, " Your current cardinal heading is: %s", card);
}


--------------------------------------------------

Check New Commands 2 for next one :p
__________________
&lt;!||Nefarious||!>
"Just because I'm smart, doesn't mean i can't act stupid"
Reply With Quote
  #2  
Old 01-20-2002, 10:38 AM
Yodason
Hill Giant
 
Join Date: Jan 2002
Posts: 205
Default this is in #loc

this is in #loc in 0.1.9
Reply With Quote
  #3  
Old 01-20-2002, 10:47 AM
Nefarious
Fire Beetle
 
Join Date: Jan 2002
Posts: 18
Default

Not the Cardinal, and i posted before 1.9 came out
__________________
&lt;!||Nefarious||!>
"Just because I'm smart, doesn't mean i can't act stupid"
Reply With Quote
  #4  
Old 01-20-2002, 01:18 PM
Yodason
Hill Giant
 
Join Date: Jan 2002
Posts: 205
Default

I know I am just saying something like it is in this version.
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 01:17 AM.


 

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