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

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

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 03-14-2005, 08:31 PM
mwmdragon's Avatar
mwmdragon
Discordant
 
Join Date: Apr 2003
Location: Winnipeg, Manitoba Canada
Posts: 270
Default quest::save

quest::save

Explanation: Saves the players data to the database.

Full Command: quest::save( )

Example:

# After hailing the NPC the players data is saved.

sub EVENT_SAY
{
if($text=~/hail/i)
{
quest::save();
}
}
__________________
Thanks
MWMDRAGON

NeverQuest
http://neverquest.gotdns.com
Emucade
http://dragonsden.emuunlim.com
  #2  
Old 03-14-2005, 08:32 PM
mwmdragon's Avatar
mwmdragon
Discordant
 
Join Date: Apr 2003
Location: Winnipeg, Manitoba Canada
Posts: 270
Default quest::setglobal

quest::setglobal

Explanation: Allows you to create or modify an existing global variable for the mob you are using the command on.

Full Command: quest::setglobal(varname,value,options,duration)

Varname = The name of the global variable. It
__________________
Thanks
MWMDRAGON

NeverQuest
http://neverquest.gotdns.com
Emucade
http://dragonsden.emuunlim.com
  #3  
Old 03-14-2005, 08:32 PM
mwmdragon's Avatar
mwmdragon
Discordant
 
Join Date: Apr 2003
Location: Winnipeg, Manitoba Canada
Posts: 270
Default quest::targlobal

quest::targlobal

Explanation: This is a quick way to attack a bunch of information in a global variable to a mob.

Full Command: quest::targlobal(varname,value,duration,npcid,char id,zoneid)

Varname = The name of the global variable. It
__________________
Thanks
MWMDRAGON

NeverQuest
http://neverquest.gotdns.com
Emucade
http://dragonsden.emuunlim.com
  #4  
Old 03-14-2005, 08:33 PM
mwmdragon's Avatar
mwmdragon
Discordant
 
Join Date: Apr 2003
Location: Winnipeg, Manitoba Canada
Posts: 270
Default quest::delglobal

quest::delglobal

Explanation: Deletes a global variable.

Full Command: quest::delglobal(varname)

Varname = The name of the variable to be deleted.

Example:

# After hailing the NPC the global variable megaquest is deleted.

sub EVENT_SAY
{
if($text=~/hail/i)
{
quest::delglobal(
__________________
Thanks
MWMDRAGON

NeverQuest
http://neverquest.gotdns.com
Emucade
http://dragonsden.emuunlim.com
  #5  
Old 03-14-2005, 08:36 PM
mwmdragon's Avatar
mwmdragon
Discordant
 
Join Date: Apr 2003
Location: Winnipeg, Manitoba Canada
Posts: 270
Default Thats all the commands

Thats all the commands.

I know some data may be incorrect or not complete and I would love to correct it or even put in better examples. If you can help with this just send me the change in a PM, make sure you mark what it is for, and I'll fix it as soon as I get them PM.

I hope this helps a few people out.

As I promised Here it is in PDF Format
http://mwmdragon.homeftp.net/trade/f...estLexicon.pdf
__________________
Thanks
MWMDRAGON

NeverQuest
http://neverquest.gotdns.com
Emucade
http://dragonsden.emuunlim.com

Last edited by mwmdragon; 03-15-2005 at 05:01 AM..
  #6  
Old 03-16-2005, 04:29 AM
fathernitwit
Developer
 
Join Date: Jul 2004
Posts: 773
Default

for completeness, I recommend that you add a list of valid event subs and variables which can be used in each of them. Most of it should be documented here:
http://www.projecteq.net/phpBB2/viewtopic.php?t=149

as well as some of the newer functions which actually need explaining like proximity stuff. your also missing signal stuff and some others. Also I havent had a chance to update that tutorial for the new spawn condition stuff, but it exposes three new quest functions:
void spawn_condition(const char *zone_short, uint16 condition_id, short new_value);
short get_spawn_condition(const char *zone_short, uint16 condition_id);
void toggle_spawn_event(int event_id, bool enable, bool reset_base);
  #7  
Old 03-16-2005, 07:59 AM
Cisyouc
Demi-God
 
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
Default

The only problem I see with this thread is every function has its own reply so its kind of hard to follow. Id be happy to sticky a link of the PDF however..
__________________
namespace retval { template <class T> class ReturnValueGen { private: T x; public: ReturnValueGen() { x = 0; }; T& Generator() { return x; }; }; } int main() { retval::ReturnValueGen<int> retvalue; return retvalue.Generator(); }
C++ is wonderful.
Closed Thread

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 01:52 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