Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 03-13-2017, 06:00 PM
ghanja's Avatar
ghanja
Dragon
 
Join Date: Aug 2012
Location: Hershey, PA
Posts: 499
Default

Code:
sub UpdateStatus { ## Usage: UpdateStatus($charid, xx) where xx is new status level
	my $dbh = plugin::MySQL_Connect();
	$dbh->do("UPDATE `account` SET `status` = '$_[1]' WHERE `id` = '$_[0]' ");
	$dbh->disconnect();
	$client->UpdateAdmin();
}
Reply With Quote
  #2  
Old 03-13-2017, 06:50 PM
Castious
Fire Beetle
 
Join Date: Jun 2015
Posts: 19
Default

Interesting. Thanks ghanja, so how would that work for a client on like say:

sub ENTERZONE {
}

I'd like to be able to allow clients access to the #flymode command but only in a specific zone and when they zone out have it set their status back to 1 so they can no longer access that #command. Just one example of things I have in mind for this, but I'm having a dumb moment.

Also, $client->SetAccountFlag(flag, value)
I was trying this, but it hasn't been working right for me. I'm missing something I guess with this one.
Reply With Quote
Reply

Thread Tools
Display Modes

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:50 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