Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::General Support

Support::General Support Post all topics here having to do with errors while trying to connect to an EQEMu server but not about the setup/running of the Server itself.

Reply
 
Thread Tools Display Modes
  #1  
Old 10-02-2012, 12:13 PM
Maze_EQ
Demi-God
 
Join Date: Mar 2012
Posts: 1,103
Default Account rewards via /claim

http://www.eqemulator.org/forums/sho...ccount+rewards


Viewed here, and yes it is possible to make the claims appear by manually entering them.


Is there any function to making this work via perl, or any other automated means.

It just seems illogical to manually update this every time you want to add someone to a reward.
__________________
"No, thanks, man. I don't want you fucking up my life, too."

Skype:
Comerian1
Reply With Quote
  #2  
Old 10-02-2012, 02:59 PM
image
Demi-God
 
Join Date: Jan 2002
Posts: 1,290
Default

Client::SendRewards (client.cpp) handles all the loading from the DB and pushing it to the client through OP_VetRewardsAvaliable. As-is we load a DB ID for each claim from the database. This is passed between client and server so the DB ID's need to be unique.

query ran:
SELECT reward_id, amount FROM account_rewards WHERE account_id=%i ORDER by reward_id;

you could check for existing and insert new entries

SQL in perl:

http://eqemulator.org/forums/showthread.php?t=35216
__________________
www.eq2emu.com
EQ2Emu Developer
Former EQEMu Developer / GuildWars / Zek Seasons Servers
Member of the "I hate devn00b" club.
Reply With Quote
  #3  
Old 10-03-2012, 09:05 AM
Maze_EQ
Demi-God
 
Join Date: Mar 2012
Posts: 1,103
Default

Thank you Image.

This is EXACTLY what I needed. Appreciate your help!
__________________
"No, thanks, man. I don't want you fucking up my life, too."

Skype:
Comerian1
Reply With Quote
  #4  
Old 03-10-2015, 03:38 PM
Jejukin
Fire Beetle
 
Join Date: Mar 2015
Location: East coast USA
Posts: 4
Default

Realize I'm replying three years later and maybe no one will see this, but I've just set up a working private server and I'm interested in making /claim work for all new accounts.

I suspect that some of the code above relates to this endeavor, but it's completely over my head.

If anyone happens to still be active on this board and willing to explain it, that'd be very, very cool. In the mean time I will tinker in hopes of spontaneous enlightenment.
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 12:01 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3