Complete perl function list
Hey,
I had to make this list for some work im doing on perl, and I figured you guys could use it. Code:
int ChooseRandom(int, int, int....); |
where do you type this stuff in? in game? in cmd? sorry i'm a noob, and have no clue
|
If you're going to code perl quests, and have the prerequisite quest scripting know-how (which is beyond the scope of this thread), then those are the perl functions you can use under that new perl system Father is making.
If you don't do perl quests, then you may disregard this entire thread :P |
i've searched high and low , but where is a thread detailing the new quest system? i'm making a quest pack for EQEmu (all official quests from live) and i don't want to write them in the old format if theres a new format.
|
The format is exactly the same; the only thing that's changed is the format behind it.
If you're working on a quest pack, you might want to drop by #npcmovdb on irc, perhaps you'd like to join the official peq team |
sure , i'm interested in joining if thats acceptable by the staff :D
i'm in the irc chan now , also Cofruben or zordon can usually get ahold of me if i'm not in irc, as i'm involved in other projects with them as well. |
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. |
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. |
Quote:
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. |
Could some one update this ?
|
That would be nice. In fact, I'd say the entire perl lexicon needs an update, as there are a lot of new EVENT types and such that have been added along with plugins and the like.
|
Use the wiki, it is kept up to date. http://www.eqemulator.net/wiki/wikka...=QuestTutorial
|
Hoshi~ Thanks cavedude. Most of the stuff on the wiki hasn't been edited in a while, so I assumed the wrong thing.
|
All times are GMT -4. The time now is 12:10 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.