|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Archive::Bugs Archive area for Bugs's posts that were moved here after an inactivity period of 90 days. |
12-21-2003, 03:13 PM
|
Demi-God
|
|
Join Date: Jan 2002
Location: Tourist town USA
Posts: 1,671
|
|
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.
|
12-21-2003, 03:18 PM
|
|
Demi-God
|
|
Join Date: Mar 2003
Location: USA
Posts: 1,067
|
|
There is. The command is faction(<id>,<amount>) or in perl quest::faction(<id>,<amount>).
__________________
Maybe I should try making one of these servers...
|
12-22-2003, 04:28 AM
|
|
Hill Giant
|
|
Join Date: May 2003
Posts: 176
|
|
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).
|
12-22-2003, 10:19 AM
|
Hill Giant
|
|
Join Date: Nov 2003
Posts: 168
|
|
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.
|
12-22-2003, 10:25 AM
|
Hill Giant
|
|
Join Date: Nov 2003
Posts: 168
|
|
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.
|
|
|
|
12-22-2003, 02:24 PM
|
Demi-God
|
|
Join Date: Jan 2002
Location: Tourist town USA
Posts: 1,671
|
|
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.
|
|
|
|
12-22-2003, 03:16 PM
|
Hill Giant
|
|
Join Date: Nov 2003
Posts: 168
|
|
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/;+/;
|
12-22-2003, 05:03 PM
|
|
Hill Giant
|
|
Join Date: May 2003
Posts: 176
|
|
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.
|
12-22-2003, 05:14 PM
|
Demi-God
|
|
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
|
|
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.
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 04:25 PM.
|
|
|
|
|
|
|
|
|
|
|
|
|