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)

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-15-2006, 08:37 AM
LostZaphod
Sarnak
 
Join Date: May 2006
Posts: 43
Default Key Ring / Character flag

I have been spending a lot of time in Ssrattemple and in Vex Thal. Does any one have the Emperor raid event in perl scripts?

I noticed that when using a key item, it does not add to the key ring. I have been on many raid events when every one was killed, and I would hate to have to gather all of the items to get back into Vex Thal. Here are some modifications that should be considered. Rather than make a one off solution, I also considered the PoP character flagging. The table could also be used to keep track of character flagging.

There are 2 perl side functions, get_characterflag and set_characterflag. The get_characterflag is used to find out if a character has a flag. There are 2 values passed in, keyid and keydesc. If the key id is not 0 the function searches for the keyid for that character (this would be a door key). If keyid =0 then the description is looked for. This way the function can be used for PoP quests. The set_characterflag works very similar. If they keyid is not 0 a search is done in the items table for that id, if found it is put on the description. If the keyid = 0 then the description must be filled in

There are 2 items that need to be considered, /keys and single quotes. I could not find a good way to deal with single quotes in the key description. If text is passed with a single quote, it will cause the SQL to be invalid returning false. Second item is /key, I could not find any code related to /key. We could do a select keydesc from character_flag where keyid <> 0 and charid=x. This would return the description of the door keys that the character has. When deleting a character the character_flat items would need to be deleted also.

But any ways here is the code

Last edited by LostZaphod; 06-15-2006 at 04:58 PM..
Reply With Quote
 


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 04:20 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