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 07-25-2008, 08:34 PM
Striat
Sarnak
 
Join Date: Aug 2006
Posts: 60
Default

Since my post got screwed up and I cannot edit, here goes.

deity is normally an aspect of faction. So, I wouldn't say it is the same thing. You could always make a faction called cazic thule or something (this one does already exist) and make it work practically the same though.

And on the last thing,

quest::setglobal("kingdomfaction","FactionA",7,"F" )

kingdomfaction is the global's name. FactionA is the value. 7 corresponds to who the variable will affect. You could use any number 1-7 from the table in the link mentioned above. However, 7 means the global variable kingdomfaction is set to FactionA for all players and all npcs in all zones. And again, F is the time variable. I normally use F for forever, but you can use other things such as "Y5" for 5 years if you really want to.

So, what exactly does the 7 mean?

I made an npc named Inny in hateplaneb. I made an npc named cazzy in fearplane. I gave them the exact same script:
Code:
if($text=~/hail/i){
  quest::say("Hi $name.  kingdomfaction is set to $qglobals{kingdomfaction}");
}
When Striat hailed Inny in hateplaneb, he sets kingdomfaction is set to FactionA. Then, Rondo hailed Cazzy in fearplane. Again, kingdomfaction is set to FactionA.

Next, I used 5 instead of 7. This is npcs-all, players-this player only, zone-all zones. I completed the initial quest with Striat. I hail Cazzy, I get the same response as above. Same response with Izzy.

Then, I use Rondo. I hail the npcs and he gets a blank value because the value is only defined for Striat. Hope that clears that aspect up a little.
Reply With Quote
  #2  
Old 07-26-2008, 06:08 PM
Neiv
Hill Giant
 
Join Date: May 2008
Location: Colorado
Posts: 238
Default

This may be a bit beyond my current ability. I'm not sure I understand the precise relationship between the player.pl (does this reside in the zone folder btw, or somewhere else?) the king's script, the quest::setglobal("kingdomfaction","FactionA",7,"F" ) statement (is this part of the king's script?), and the quest::say in your most recent note (is this for the player to get the buff or is it to initiate the kingdom faction?).
Reply With Quote
  #3  
Old 08-01-2008, 08:36 PM
Striat
Sarnak
 
Join Date: Aug 2006
Posts: 60
Default

Quote:
Originally Posted by Neiv View Post
This may be a bit beyond my current ability. I'm not sure I understand the precise relationship between the player.pl (does this reside in the zone folder btw, or somewhere else?)
You'd put it in templates folder. It is the fairly new player quest system. Look it up in the wiki under quests section.

Quote:
Originally Posted by Neiv View Post
the king's script,
This would just be the npc that triggers current faction setting

Quote:
Originally Posted by Neiv View Post
the quest::setglobal("kingdomfaction","FactionA",7,"F" ) statement (is this part of the king's script?),
Yes


Quote:
Originally Posted by Neiv View Post
and the quest::say in your most recent note (is this for the player to get the buff or is it to initiate the kingdom faction?).
You can ignore that;p It's just for checking what the global value is set to. It doesn't really need to be in a script for the script to function
Reply With Quote
  #4  
Old 08-03-2008, 10:35 PM
Neiv
Hill Giant
 
Join Date: May 2008
Location: Colorado
Posts: 238
Default

Striat, I haven't yet tried your solution but will shortly. Thanks for responding. Didn't want you to think I was ignoring; just trying to get other quests to work at the same time.
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 09:17 AM.


 

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