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 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
  #2  
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
  #3  
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
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 04:20 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