EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Perl Quest Lexicon (https://www.eqemulator.org/forums/showthread.php?t=18099)

mwmdragon 03-14-2005 08:31 PM

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();
}
}

mwmdragon 03-14-2005 08:32 PM

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

mwmdragon 03-14-2005 08:32 PM

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

mwmdragon 03-14-2005 08:33 PM

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(

mwmdragon 03-14-2005 08:36 PM

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

fathernitwit 03-16-2005 04:29 AM

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);

Cisyouc 03-16-2005 07:59 AM

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..

mwmdragon 03-16-2005 09:14 AM

pdf
 
Yhe pdf was in the last post after i finnished the lexicons commands.

Fathernotwit - If you can send me a list of all the new commands and a brief bit of info on the use I would love to complete the lexicon.

Cisyouc 03-26-2005 01:19 AM

Locked.
Please see http://www.eqemulator.net/forums/showthread.php?t=18208.


All times are GMT -4. The time now is 06:02 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.