Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Bugs

Archive::Bugs Archive area for Bugs's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 12-21-2003, 03:13 PM
Lurker_005
Demi-God
 
Join Date: Jan 2002
Location: Tourist town USA
Posts: 1,671
Default No faction assignment in quests

I was looking thru the quest parsers and could not find anything for assign faction changes from quests. For some reason I thought there was, and I put them in the quests I converted from Ethernalquest data.
__________________
Please read the forum rules and look at reacent messages before posting.
Reply With Quote
  #2  
Old 12-21-2003, 03:18 PM
Scorpious2k's Avatar
Scorpious2k
Demi-God
 
Join Date: Mar 2003
Location: USA
Posts: 1,067
Default

There is. The command is faction(<id>,<amount>) or in perl quest::faction(<id>,<amount>).
__________________
Maybe I should try making one of these servers...
Reply With Quote
  #3  
Old 12-22-2003, 04:28 AM
mollymillions's Avatar
mollymillions
Hill Giant
 
Join Date: May 2003
Posts: 176
Default

I find that a sub will be ignored if it contains a faction command.

eg. quest::faction("10112","1");

Zone.exe does not give any errors (0.5.3-DR1).
Reply With Quote
  #4  
Old 12-22-2003, 10:19 AM
Eglin
Hill Giant
 
Join Date: Nov 2003
Posts: 168
Default

The perl parser only officially supports the commands outlined in the new quest syntax sticky... I posted somewhere about how to add new commands, and gave the faction code as an example. The official release hasn't been updated, since I don't have cvs access.
Reply With Quote
  #5  
Old 12-22-2003, 10:25 AM
Eglin
Hill Giant
 
Join Date: Nov 2003
Posts: 168
Default

Do a forum search for quest::faction... I posted somewhere on how to add it. The perl parser only officially supports the syntax given in the new quest format sticky (the best docs avaliable at the time). I've stopped updating the source, though, since I don't have cvs access and the alternative is too damn frustrating.
Reply With Quote
  #6  
Old 12-22-2003, 02:24 PM
Lurker_005
Demi-God
 
Join Date: Jan 2002
Location: Tourist town USA
Posts: 1,671
Default

Quote:
Originally Posted by Scorpious2k
There is. The command is faction(<id>,<amount>) or in perl quest::faction(<id>,<amount>).
That is what I expected, but couldn't find a referance to quest::faction in the code. but granted I couldn't find a referance for the old qst faction command even though I used it when I coverted the ethernalquest quests months ago.

Quote:
Originally Posted by eglin
Yes, eqemu supports the notion of faction. You can use the $faction in quests to get faction standing. You can use the undocumented faction function in the native parser, or you can add a line like Code:
"sub faction{push(@cmd_queue,{func=>'faction',args=>joi n(',',@_)});}"
to the bottom of embparser.cpp and recompile to use it in your Perl quests. If I'm interpreting Wes's code correctly, then the appropriate syntax for the function is "faction(faction id, amount)"
hah! knew I didn't find it in the perl parser That and you didn't support it in your qst-to-pl perl script. Quick note on that perl conversion script, it seems to add an I at the ends of "if($text=~/name/i);" type statments and had ;; instead of ; at the end of everything was that intentional?

Ok, I request that someone get that line merged in to the CVS source.
__________________
Please read the forum rules and look at reacent messages before posting.
Reply With Quote
  #7  
Old 12-22-2003, 03:16 PM
Eglin
Hill Giant
 
Join Date: Nov 2003
Posts: 168
Default

Quote:
Originally Posted by Lurker_005
Quick note on that perl conversion script, it seems to add an I at the ends of "if($text=~/name/i);" type statments and had ;; instead of ; at the end of everything was that intentional?
Yeah. Easier to unconditionally slap on a ; than to check to see if one already exists. Perl doesn't care about ;;, so neither do I. If it really bothers you, just s/;+/;
Reply With Quote
  #8  
Old 12-22-2003, 05:03 PM
mollymillions's Avatar
mollymillions
Hill Giant
 
Join Date: May 2003
Posts: 176
Default

Can i formally request the enhancement from the DevTeam. i.e. Add

Code:
 "sub faction{push(@cmd_queue,{func=>'faction',args=>join(',',@_)});}"
to embparser.cpp

Thanks.
Reply With Quote
  #9  
Old 12-22-2003, 05:14 PM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

I'll make sure it's available in 0.5.3
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
Reply With Quote
Reply


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:25 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