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-27-2002, 06:48 AM
CodyNF
Fire Beetle
 
Join Date: Jan 2002
Posts: 2
Default Need help with my #lock command.

I'm adding a #lock command so you can lock your worldserver without using telnet. Here is the code, it should work fine, the thing I need help with is sending a packet to tell the world server to lock. In the world server its stored in net.world_locked. So I suppose I would need to send a packet with "net.world_locked = true/false" , but I'm not good with packets. Can anyone help me out?

/* else if ((strcasecmp(sep.arg[0], "#lock") == 0 && admin >= 200) {
if (sep.arg[1][0] == '1') {
net.world_locked = true;
client->Message(0, "World locked.");
}

else if (sep.arg[1][0] == '0') {
net.world_locked = false;
client->Message(0, "World unlocked.");
}
else
Message(0, "Usage: #lock [1/0]");

}*/
Reply With Quote
  #2  
Old 01-27-2002, 11:22 PM
DeletedUser
Fire Beetle
 
Join Date: Sep 2002
Posts: 0
Default

The problem is that code segment runs in zone.exe, but the "net.world_locked" variable is only in world.exe. You need to use the TCP serverpackets to have zone.exe tell world.exe to change the variable, there's no way to do it directly.
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 10:43 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