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-2006, 01:00 PM
Angelox
AX Classic Developer
 
Join Date: May 2006
Location: filler
Posts: 2,049
Default

Here's a problem I have; I would like to use variables across npc's. Another words - if npcid 1 raises a flag,a different npcid 2 can change or lower it.
I spent two days on just this problem, and none of the quest::* helped either. I don't think it can be done, if anyone does happen to know a way, please post.
Reply With Quote
  #2  
Old 07-26-2006, 04:27 AM
bobbydole
Fire Beetle
 
Join Date: Jul 2006
Posts: 26
Default

I've never used it but can you use
Code:
==========
Setglobal:
==========
[old quest format]
setglobal([varname],[value],[options],[duration]);

[perl format]
quest::setglobal([varname],[value],[options],[duration]); (perl format)

The setglobal command allows you to create or modify an existing global variable for the mob you are using the command on.

==========
targlobal:
==========
[old quest format]
targlobal([varname],[value],[duration],[npcid],[charid],[zoneid]);

[perl format]
quest::targlobal([varname],[value],[duration],[npcid],[charid],[zoneid]);

This is a way to "stick" a global variable to a mob. A quick and easy way to give information to a mob or communicate.

==========
delglobal:
==========
[old quest format]
delglobal([varname]);

[perl format]
quest::delglobal([varname]);

This command is used to delete global variables when they are no longer needed. You can only delete global variables that belong to the mob the variable is for.
read more about it here:
http://www.projecteq.net/phpBB2/viewtopic.php?t=149
Reply With Quote
  #3  
Old 07-26-2006, 05:54 AM
Angelox
AX Classic Developer
 
Join Date: May 2006
Location: filler
Posts: 2,049
Default

Quote:
Originally Posted by bobbydole
I've never used it but can you use

read more about it here:
http://www.projecteq.net/phpBB2/viewtopic.php?t=149
Thanks for your help, I've already tried all this with negative results ;

quest::setglobal is npc specific - If I try make two variables of the same name with different npc's, the database will add the two enties separatly and for the individual npc ids who made them.

quest::targlobal might have been intended to change another NPC's variable value, but all it does is crash the zone. If I use it on the same NPC that made the variable, it will work ok.

quest::delglobal seems to work ok, but useless to me, since the latter two can not apply

I have more success with "global quests" switched off and the regular Perl variables.

It appears these commands are more intented for the many quests in EQ, that require dealing with one npc at a time.

It would be helpful to be able to set a "global" variable that could be use by any npc in the game.
Reply With Quote
  #4  
Old 07-26-2006, 06:54 AM
ylosh
Sarnak
 
Join Date: Jan 2006
Posts: 39
Default

that's exactly what quest::setglobal() does with the different option sets.

Code:
           +--------+---------+---------+----------+
           |  value |  npcid  |  player |   zone   |
           +--------+---------+---------+----------+
           |   0    |  this   |   this  |   this   |
           |   1    |  all    |   this  |   this   |
           |   2    |  this   |   all   |   this   |
           |   3    |  all    |   all   |   this   |
           |   4    |  this   |   this  |   all    |
           |   5    |  all    |   this  |   all    | 
           |   6    |  this   |   all   |   all    |
           |   7    |  all    |   all   |   all    |
           +--------+---------+---------+----------+
Reply With Quote
  #5  
Old 07-26-2006, 07:37 AM
Angelox
AX Classic Developer
 
Join Date: May 2006
Location: filler
Posts: 2,049
Default

I see now, haven't tried it in that way - I'll try again, thanks
Reply With Quote
  #6  
Old 10-15-2006, 01:18 PM
Angelox
AX Classic Developer
 
Join Date: May 2006
Location: filler
Posts: 2,049
Default

I'm working on the .pl's for the "Fabulous Four" in this zone, I already have them chatting and doing a few things - I still have to figure out how to get Mr Sigan to kill roamers that pass through the camp. In fact, when EQ was young, all four of them would kill roamers. If anyone knows how to do this, please post.
If anyone wonders how I get info for these PLs, I still have an account with EQ, which I use for stuff like this. I also go to allakhazam and see what I can find there. I think this method is almost 100% accurate.
You can get the quests at my web page.
Reply With Quote
  #7  
Old 10-15-2006, 01:20 PM
mattmeck
Guest
 
Posts: n/a
Default

You can have him kill the mobs by using factions, just make them KOS to him.
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 03:47 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