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 06-29-2015, 09:06 PM
chasem
Fire Beetle
 
Join Date: Apr 2014
Posts: 23
Default Funding Quest

The amount of info in these forums is invaluable. Thank you to everyone who contributes. I have searched for this, but not been able to find what I am looking for.

This seems simple, but can't seem to figure it out: Is there a way to create an NPC that all players on the server can donate plat to and it keep an active record of how much has been donated?

Thank you all.
Reply With Quote
  #2  
Old 06-29-2015, 10:43 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

Donations in total? Or actually keeping track of of individual contributions? There is already a system in place for this. There is a table called qs_player_handin_record and all you have to do is turn on this rule. I am pretty sure the server rule to turn on is QueryServ:PlayerLogHandins

So if you just want people handing this NPC money, that will do it. The NPC will not have any idea how much money has been handed to it. With that rule turned on, you will actually know every transaction on the server as far as money handed to NPC's. If you want something a little more custom you will have to write some Perl/Lua code and do you own table inserts.
Reply With Quote
  #3  
Old 06-30-2015, 08:45 AM
chasem
Fire Beetle
 
Join Date: Apr 2014
Posts: 23
Default

Thanks - That's a great start. Ultimately I am looking at having an NPC collect donations from players and at a certain point, more spells/weapons/ports will be available for the server.

So since the information is there, next step is figuring out a script to maybe keep track so players can see progress. Thanks so much!!
Reply With Quote
  #4  
Old 06-30-2015, 08:50 AM
NatedogEZ's Avatar
NatedogEZ
Developer
 
Join Date: Dec 2012
Posts: 515
Default

What you are asking for sounds very easy to do with quest globals. If you aren't sure how to use them here is a link.

http://wiki.eqemulator.org/p?How_To_Use_Quest_Globals
Reply With Quote
  #5  
Old 06-30-2015, 08:55 AM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

Quote:
Originally Posted by NatedogEZ View Post
What you are asking for sounds very easy to do with quest globals. If you aren't sure how to use them here is a link.

http://wiki.eqemulator.org/p?How_To_Use_Quest_Globals
That was going to be my next suggestion. If you only need a tally of the amount quest globals will be your best best. If you need to keep track of each donator amount, you will need a different route.
Reply With Quote
  #6  
Old 06-30-2015, 10:30 AM
chrsschb's Avatar
chrsschb
Dragon
 
Join Date: Nov 2008
Location: GA
Posts: 904
Default

Edit: Why can't we delete replies.
__________________
Clumsy's World: Resurgence [2019-Present]
Clumsy's World 2.0 [2014-2016]
Clumsy's World [2006-2012]
Reply With Quote
  #7  
Old 06-30-2015, 10:36 AM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,594
Default

chrsschb, it's so people can't delete away bad stuff and so we have a record, haha.
Reply With Quote
  #8  
Old 06-30-2015, 10:39 AM
chrsschb's Avatar
chrsschb
Dragon
 
Join Date: Nov 2008
Location: GA
Posts: 904
Default

Quote:
Originally Posted by Kingly_Krab View Post
chrsschb, it's so people can't delete away bad stuff and so we have a record, haha.
Yeah I know, I always feel like an idiot when I reply to something, realize I read it wrong, then I'm just sitting there with a wasted post haha.

Quote:
Originally Posted by provocating View Post
That was going to be my next suggestion. If you only need a tally of the amount quest globals will be your best best. If you need to keep track of each donator amount, you will need a different route.
Maybe append an incrementing variable to a variable that tracks each donation.

Seems pretty bulky though if there were lots of donations. Simply tracking totals I think would be sufficient.
__________________
Clumsy's World: Resurgence [2019-Present]
Clumsy's World 2.0 [2014-2016]
Clumsy's World [2006-2012]
Reply With Quote
  #9  
Old 06-30-2015, 03:21 PM
ghanja's Avatar
ghanja
Dragon
 
Join Date: Aug 2012
Location: Hershey, PA
Posts: 499
Default

Quote:
Originally Posted by provocating View Post
That was going to be my next suggestion. If you only need a tally of the amount quest globals will be your best best. If you need to keep track of each donator amount, you will need a different route.
Quest globals would be fine to keep track of each character's total, even each "deposit", although at -that- point is when I would consider a whole new (independent) table.
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 01:39 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3