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 10-28-2004, 04:59 PM
fathernitwit
Developer
 
Join Date: Jul 2004
Posts: 773
Default Complete perl function list

Hey,

I had to make this list for some work im doing on perl, and I figured you guys could use it.

Code:
	int ChooseRandom(int, int, int....);

	void echo(const char *str);
	void say(const char *str);
	void me(const char *str);
	void summonitem(int32 itemid, uint8 charges = 0);
	void write(const char *file, const char *str);
	void spawn2(int npc_type, int grid, int unused, float x, float y, float z, float heading);
	void setstat(int stat, int value);
	void castspell(int spell_id, int target_id);
	void selfcast(int spell_id);
	void addloot(int item_id, int charges = 0);
	void Zone(const char *zone_name);
	void settimer(const char *timer_name, int seconds);
	void stoptimer(const char *timer_name);
	void emote(const char *str);
	void shout(const char *str);
	void shout2(const char *str);
	void depop(int npc_type = 0);
	void settarget(const char *type, int target_id);
	void follow(int entity_id);
	void sfollow();
	void cumflag();
	void flagnpc(int32 flag_num, int8 flag_value);
	void flagcheck(int32 flag_to_check, int32 flag_to_set);
	void changedeity(int diety_id);
	void exp(int amt);
	void level(int newlevel);
	void traindisc(int discipline_tome_item_id);
	void safemove();
	void rain(int weather);
	void snow(int weather);
	void surname(const char *name);
	void permaclass(int class_id);
	void permarace(int race_id);
	void permagender(int gender_id);
	void scribespells();
	void givecash(int copper, int silver, int gold, int platinum);
	void pvp(const char *mode);
	void movepc(int zone_id, float x, float y, float z);
	void gmmove(float x, float y, float z);
	void movegrp(int zoneid, float x, float y, float z);
	void doanim(int anim_id);
	void addskill(int skill_id, int value);
	void setlanguage(int skill_id, int value);
	void setskill(int skill_id, int value);
	void setallskill(int value);
	void attack(const char *client_name);
	void save();
	void faction(int faction_id, int faction_value);
	void setsky(uint8 new_sky);
	void setguild(int32 new_guild_id, int8 new_rank);
	void settime(int8 new_hour, int8 new_min);
	void itemlink(int item_id);
	void signal(int npc_id);
	void setglobal(const char *varname, const char *newvalue, int options, const char *duration);
	void targlobal(const char *varname, const char *value, const char *duration, int npcid, int charid, int zoneid);
	void delglobal(const char *varname);
	void ding();
	void rebind(int zoneid, float x, float y, float z);
	void start(int wp);
	void stop();
	void pause(int duration);
	void moveto(float x, float y, float z);
	void resume();
	void addldonpoints(sint32 points, int32 theme);
	void setnexthpevent(int at);
	void respawn(int npc_type, int grid);

Last edited by fathernitwit; 01-14-2005 at 06:58 PM..
Reply With Quote
  #2  
Old 11-10-2004, 08:29 AM
Z.Wylde
Sarnak
 
Join Date: Feb 2004
Location: Sailing Across the Ocean
Posts: 46
Default

where do you type this stuff in? in game? in cmd? sorry i'm a noob, and have no clue
Reply With Quote
  #3  
Old 11-10-2004, 09:14 AM
RangerDown
Demi-God
 
Join Date: Mar 2004
Posts: 1,066
Default

If you're going to code perl quests, and have the prerequisite quest scripting know-how (which is beyond the scope of this thread), then those are the perl functions you can use under that new perl system Father is making.

If you don't do perl quests, then you may disregard this entire thread :P
__________________
<idleRPG> Rogean ate a plate of discounted, day-old sushi. This terrible calamity has slowed them 0 days, 15:13:51 from level 48.
Reply With Quote
  #4  
Old 11-10-2004, 01:28 PM
Darkened
Sarnak
 
Join Date: Sep 2004
Posts: 49
Default

i've searched high and low , but where is a thread detailing the new quest system? i'm making a quest pack for EQEmu (all official quests from live) and i don't want to write them in the old format if theres a new format.
Reply With Quote
  #5  
Old 11-10-2004, 01:49 PM
fathernitwit
Developer
 
Join Date: Jul 2004
Posts: 773
Default

The format is exactly the same; the only thing that's changed is the format behind it.

If you're working on a quest pack, you might want to drop by #npcmovdb on irc, perhaps you'd like to join the official peq team
Reply With Quote
  #6  
Old 11-10-2004, 03:02 PM
Darkened
Sarnak
 
Join Date: Sep 2004
Posts: 49
Default

sure , i'm interested in joining if thats acceptable by the staff

i'm in the irc chan now , also Cofruben or zordon can usually get ahold of me if i'm not in irc, as i'm involved in other projects with them as well.
Reply With Quote
  #7  
Old 05-08-2007, 06:06 AM
mamba666
Sarnak
 
Join Date: Apr 2003
Posts: 41
Default

void changedeity(int diety_id);

Which is it Diety or Deity?


Is it possible to do something like

sub EVENT_SAY
{
if(($text=~/hail/i) && ($deity_id==1))
{
quest::say("Hello fellow Norrathian.");
}
}


I just want to be able to do some quests based on the characters deity.

I think that the deity implementation on live is so sparse. There are a couple of tradeskills and very few deity oriented quests. It is sad to see this go to waste.
Reply With Quote
  #8  
Old 10-23-2007, 02:30 PM
gernblan
Discordant
 
Join Date: Aug 2006
Posts: 394
Default

Just wondering if this is still up to date .. I mean, if someone knows offhand? I'd have to do research and stuff and am wondering if anyone just KNOWS

Thank you.
__________________
--
Keelyeh
Owner, ServerOp and Developer
Jest 4 Server
Linux (Jest3 runs on Fedora, our Dev servers usually run on Ubuntu and/or Gentoo), OC-12 Connection = Hella Fast
Reply With Quote
  #9  
Old 10-23-2007, 02:42 PM
gernblan
Discordant
 
Join Date: Aug 2006
Posts: 394
Default

Quote:
Originally Posted by mamba666 View Post
void changedeity(int diety_id);

Which is it Diety or Deity?


Is it possible to do something like

sub EVENT_SAY
{
if(($text=~/hail/i) && ($deity_id==1))
{
quest::say("Hello fellow Norrathian.");
}
}

.

Read those as a guide... not truly literal.

An example of how to "read" them...

Let's do yours:

void changedeity(int diety_id);

Ok...

First, scrap void. Change that to quest::

So...

quest::changedeity();

Now what?

Inside the parens are the TYPES of values you give the function.

So for follow it wants the deity_id which is of type integer (the list of values and Deitys they represent are probably on the wiki somewhere). So in the parens just give it the value you want.

So now it becomes:

quest::changedeity(4);

That changes the player to Deity #4 (whatever that is...).

Make sense?

The others, just work them out the same way. The definitions inside the parens simply tell you what the function WANTS in terms of the data type and stuff. The rest of it can be figured out in context to what the function actually is supposed to do.
__________________
--
Keelyeh
Owner, ServerOp and Developer
Jest 4 Server
Linux (Jest3 runs on Fedora, our Dev servers usually run on Ubuntu and/or Gentoo), OC-12 Connection = Hella Fast
Reply With Quote
  #10  
Old 04-29-2009, 07:24 AM
KingMort
Banned
 
Join Date: Sep 2006
Posts: 841
Default

Could some one update this ?
Reply With Quote
  #11  
Old 04-29-2009, 09:05 AM
drakelord
Hill Giant
 
Join Date: Nov 2002
Location: NC, USA
Posts: 182
Default

That would be nice. In fact, I'd say the entire perl lexicon needs an update, as there are a lot of new EVENT types and such that have been added along with plugins and the like.
__________________
Hmm.
Reply With Quote
  #12  
Old 04-29-2009, 09:07 AM
cavedude's Avatar
cavedude
The PEQ Dude
 
Join Date: Apr 2003
Location: -
Posts: 1,988
Default

Use the wiki, it is kept up to date. http://www.eqemulator.net/wiki/wikka...=QuestTutorial
Reply With Quote
  #13  
Old 04-29-2009, 09:42 AM
drakelord
Hill Giant
 
Join Date: Nov 2002
Location: NC, USA
Posts: 182
Default

Hoshi~ Thanks cavedude. Most of the stuff on the wiki hasn't been edited in a while, so I assumed the wrong thing.
__________________
Hmm.
Reply With Quote
Reply

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 12:36 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