PDA

View Full Version : HOWTO: Make Quests using Cofruben's Quest Editor


Virus11
06-07-2004, 09:39 AM
Guide Requirements:
- Computer
- 1+ Hands
- Brain
- Sleeping Pills

Hello all,this is my first try making this quest editor,so probally is not so good,but I think that it can help.There should be a lot of bugs,but if people likes it,I will update it,giving more features.
Download location: http://www.technoalchemy.com/eqemu/CQE.zip
extract it,put all files except cqe.xe into system32 folder.
u need to have vb runtimes,can be downloaded here
http://www.microsoft.com/downloads/details.aspx?FamilyID=7b9ba261-7a9c-43e7-9117-f673077ffb3c&DisplayLang=en

Enjoy!

The above quote should take care of all downloading steps. Now, the editor. When you load you will have alot of confusing things. First thing you have to do to start is think, "What do I want my NPC to do?" For right now, we want our NPC to say something, so we are going to hit in the box located on the screenshot below, EVENT_SAY.

Screenshot too big, click here to view (http://virus.cosmichub.com/images/tutorial1/01.jpg)

Now what we want to do is add functions, so we need our if statement, so underneath sub EVENT_SAY type if ($text=~/hail/i) {.
To get other if statements, look through the variables section.

Now you are ready to add your quest function. Look in the functions column to add one (top column). Now my quest looks like
sub EVENT_SAY
{
if ($text=~/hail/i) { quest::say("Hail, young warrior!");
but I can't stop here, if I would like to add more actions to this quest, I would just choose another function, but if I want to end this and go to another section, I would just add a }, so if thats it, it should look like sub EVENT_SAY
{
if ($text=~/hail/i) { quest::say("Hail, young warrior!");[
}


Now, if we wanted to have a battle take place, the code would be
sub EVENT_ATTACK
{
if ($ulevel == 1) { quest::say("Stupid n00bs, DIE!");
quest::attack("$name");
}See, I clicked EVENT_ATTACK under events, then I selected level for my if statement (variables section) and made the value 1, then I chose say and put it Stupid n00bs, DIE! and then I selected attack and set it to $name, which is the user that goes near it.

ALWAYS USE } AT THE END OF A QUEST AND AT THE END OF A COMMAND!!!!!!

If you are still unclear on how to use this Quest Editor, or any quests in general, feel free to contact me or post it in this thread.[/b][/url]

x-scythe
06-07-2004, 03:49 PM
might wanna add fully enclose the quest actions in { }

example:

sub EVENT_SAY
{
if($text=~/Hail/i){quest::say("Well met $name.");}
}


the whole "meat" under EVENT_SAY is enclosed in { } and quest actions are also enclosed in { }. however if there are multiple quest actions after an if statement you can enclose them all in one pair of { }.
like so:

sub EVENT_ITEM
{
if($itemcount{xx} == 1){quest::say("Well done! You have retrieved my knife!");
quest::summonitem("xx");}
}

notice how in the above both quest actions are in the same set of { } AND the entire "meat" is enclosed it a set of { }.

PS: great guide tho!
PSS: meat is a funny word eh?

Virus11
06-08-2004, 07:16 AM
No no, thats just a snippet of the quest, the last } is part of the snippet, there is no ending } in the examples.

x-scythe
06-08-2004, 07:31 AM
ohhh hehe my bad...didnt realize that.

cofruben
06-09-2004, 07:29 AM
nice,remember you can get more info about functions and variables at http://www.eqemulator.net/forums/viewtopic.php?t=12020

stclairguy
06-23-2004, 06:08 PM
I'm getting a run-time error message when i run CQE.exe. IT says "Microsoft (ODBC Driver Manager) Data Source name not found or no default driver specified." Any idea how to fix this?

infragoblin
07-11-2004, 06:43 PM
Goto mysql.com and download the ODBC driver, kinda wierd that the the mysql server nor the control center didnt include this...

cofruben
07-15-2004, 06:13 AM
did it work?