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

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

Reply
 
Thread Tools Display Modes
  #1  
Old 01-21-2006, 01:22 PM
Arex
Hill Giant
 
Join Date: Jul 2004
Posts: 196
Default new command #zone_player

new command #zone_player, this command could to be used for all players for get to all basic norrath locations, because many times u need a command #zone, if u char get stucked or if u want go to other continent and u cant see any wizards around (not hard when almost all ppl are playing on servers with 20-30 guys online), then u could use a command #zone_player for go to the next possible locations, and only when u are 75% hp (like #peqzone):

East Antonica --> East commonlands - zoneidnumber=22
South Antonica --> South Ro - zoneidnumber=35
West Antonica --> West Karana - zoneidnumber=12
Faydwer - Gfaydark - zoneidnumber=54
Odus - Toxxulia Forest - zoneidnumber=38
East Kunark --> Emerald Jungle - zoneidnumber=94
West Kunark --> Dreadlands - zoneidnumber=86
East Velious --> Eastern Wastes - zoneidnumber=116
West Velious --> Western Wastes -zoneidnumber=120
Luclin --> Nexus - zoneidnumber=152
East Luclin --> Scarlet Desert - zoneidnumber=175
West Luclin --> Grimling Forest - zoneidnumber=167

if u havent time for implement this new command, i could try to do it, but i cant compile it, because i am using linux, and last emu version is going to be run on linux using wine...
Reply With Quote
  #2  
Old 01-21-2006, 01:45 PM
Doodman's Avatar
Doodman
Developer
 
Join Date: Aug 2003
Posts: 246
Default

EQEmu compiles on both linux and windows.
Reply With Quote
  #3  
Old 01-21-2006, 03:46 PM
sdabbs65
Dragon
 
Join Date: Dec 2003
Location: Earth
Posts: 818
Default

Quote:
Originally Posted by Doodman
EQEmu compiles on both linux and windows.
0.6.4 still has compile errors under Microsoft Visual C++ 6.0
but version 6.0 works fine.
__________________
hosting Eqemu/Runuo/wow Emulators.

www.cheaterz.info
Reply With Quote
  #4  
Old 01-21-2006, 09:29 PM
Arex
Hill Giant
 
Join Date: Jul 2004
Posts: 196
Default

if i give u the files that contain the new command added for me, anybody could compile it for windows? i am sure that it could to be a useful command for many ppl.

i also need to know how to do that command only works when players are 75-100% hp

thx
Reply With Quote
  #5  
Old 01-21-2006, 10:13 PM
Arex
Hill Giant
 
Join Date: Jul 2004
Posts: 196
Default

Code:
void command_zone_player(Client *c, const Seperator *sep)
{
 	uint16 zoneid = 0;
	zoneid = database.GetZoneID(sep->arg[1]);
	
	if(zoneid == 0) 
	{
	c->Message(0, "Unable to locate zone '%s'", sep->arg[1]);
	return;	
	}

	if (sep->IsNumber(1))
	{
		if((atoi(sep->arg[1])==22) || (atoi(sep->arg[1])==35) || (atoi(sep->arg[1])==12) || (atoi(sep->arg[1])==54)
		 || (atoi(sep->arg[1])==38) || (atoi(sep->arg[1])==94) || (atoi(sep->arg[1])==86) || (atoi(sep->arg[1])==116)
		 || (atoi(sep->arg[1])==120) || (atoi(sep->arg[1])==152) || (atoi(sep->arg[1])==175) || (atoi(sep->arg[1])==167))
		{
			zoneid = atoi(sep->arg[1]);
			//zone to safe coords
			c->GoToSafeCoords(zoneid);
			return;
		}
		else 
		{
			c->Message(0, "You only can zone to basic locations: East commonlands,South Ro, West Karana, Gfaydark, Toxxulia Forest, Emerald Jungle, Dreadlands, Eastern Wastes, Western Wastes, Nexus, Scarlet Desert, Grimling Forest");
			return;
			

	} else if (sep->arg[1][0] == 0)
	{
		c->Message(0, "Usage: #zone [zonename]");
		return;
	}
}
Reply With Quote
  #6  
Old 01-21-2006, 10:17 PM
Arex
Hill Giant
 
Join Date: Jul 2004
Posts: 196
Default

anybody could to do a windows compile with it? thx, u also need add any few lines on command.cpp:

command_add("zone_player","[zonename]- Go to specified zone",50,command_zone_player) ||

and command.h after "//commands":

void command_zone_player(Client *c, const Seperator *sep);

I am not sure if i need add any thing more for the new command works..
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 08:00 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