DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • July 24, 2016, 07:36:56 AM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: [1] 2 3 ... 7   Go Down
  Print  
Author Topic: Quest system  (Read 22897 times)
0 Members and 1 Guest are viewing this topic.
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« on: November 23, 2004, 10:11:06 AM »

Download: http://www.lotgd.de/downloads/questpack.zip

To install these modules copy quests.php to your lib directory.
The other two files need to be placed in the modules directory.

Then activate first questbasics.php which will install the database
fields and tables required to run the quests.

The quest_littlegirl.php is a basic quest, where the user meets a
little girl that has lost her favourite toy. Petra, the tattoo artist,
may know about the whereabouts, but she will need the blossoms of
a rare flower, which can be found in the forest. After you bring the
blossom to Petra, she gives you the toy and you can return it to the girl.
After completing the quest you are rewarded with gold, gems, experience
and so called "questpoints".

I will code a hut, where some mysterious person(s) may turn these points
into experience, gold, gems or any other reward, that will be coded.
The total will be similar to the hunter's lodge, but I think it should contain
some rewards for good gameplay and not spending money.

If you want to install this mod on your server I only ask for a few things:
1) Keep any copyright information intact
2) If you code another quest, send it to my email-address: christian.rutsch@gmx.de

Have fun!

EDIT: For most of you, setting "req_min_hw" and "req_max_hw" to values different from "0" will cause the quest to being prevented from starting...
« Last Edit: February 09, 2005, 09:19:57 PM by XChrisX » Logged

Running for more than three years now:
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #1 on: November 24, 2004, 11:58:15 AM »

So, I just updated the questpack.zip (dl link stays the same...)

some files have changed.

Now it includes a module, which shows the latest accomplishments of a user in his bio (using the questlog) as well as the number of succesfully completed quests.

The questlog will show up from the prefs for the player himself (herself...) or from the bio, if the player already completed at least one quest.

If a player has a look into another player's questlog they can only see completed quests, if someone looked into his own questlog they can also se the current running quest and what steps they already finished.

I chose to not show this last part for other players as it could spoil some quests for other players.

There's now a mysterious hut in the village, which is supposed to work like the hunter's lodge (similar modulehooks).

I still had no time to translate the file into english... if anyone is capable of enough german I will not hinder you...  Tongue
Logged

Running for more than three years now:
Ariadoss
Member
Captain of the Guard
***
Offline Offline

Posts: 139


HogwartsLive.com


View Profile WWW
« Reply #2 on: November 27, 2004, 02:15:41 PM »

I've noticed that there are three (I think thats it anyways) quest modules.  Ther is Quests by Josh Elwell (Sephiroth), Questmaster by GenmaC, and now this one?

What's the major differences between the three?  (I havn't installed any of them on my testing sever) Couldn't the three of you guys work together on one really good questing module?  Wink
Logged

Dannic
Guest
« Reply #3 on: November 27, 2004, 08:22:10 PM »

what is this module that I keep getting an error on.  keeps telling me it can't find the module.

wayofthehero

its on line 82 of the quests.php file.
Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #4 on: November 28, 2004, 12:26:53 AM »

You have to comment out these lines refering to "wayofthehero"...

I will upload an updated version...

It's a special module from our server, where a player can decide to start again as farmie and gets a personal weapon / armor as reward. These are upgraded everytime he is "reborn"...

The actual difference between questmaster and this module is, that in the questmaster module you go to the questmaster's hut, asks for a quest, go out and kill a monster and come back.

This module only provides the basics for checking if the player completes some basic requirements for starting a quest (min dk, min level, another quest completed, being a superuser...) and it provides some basic functions that help writing your own quests...

There are function for starting a quest, which will do all the necessary stuff to prevent users from starting each quest more than once, or more than one quest at a time... Then you have an function for ending the quest, which will automatically free the user from his quest and give the reward (including the output...).
Then it will handle questlog entries, used in questbook.php, where other players can see in their bio which quests have been completed and so on...

And there's one sample quest (unfortunately I still didn't have the time to translate it...) where you can see, how you can write a new quest...

PS: ZIP-file has been updated.
Logged

Running for more than three years now:
Ariadoss
Member
Captain of the Guard
***
Offline Offline

Posts: 139


HogwartsLive.com


View Profile WWW
« Reply #5 on: November 28, 2004, 01:54:01 AM »

okay thanks, I'll think I'll stick with your module. Smiley
Logged

jwh1o1
Guest
« Reply #6 on: November 28, 2004, 09:47:19 AM »

every time i put quests.php in my mod folder and go to install it in the game it says missing function  any suggestions?
Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #7 on: November 28, 2004, 10:10:25 AM »

quests.php does NOT go to the mod folder but to the lib folder... questbasics, questbook and quest-littlegirl go to the mod folder..

The current version should contain the correct directories....
« Last Edit: November 28, 2004, 10:10:53 AM by XChrisX » Logged

Running for more than three years now:
jwh1o1
Guest
« Reply #8 on: November 28, 2004, 10:26:31 AM »

Fatal error: Call to undefined function: requirements_met() in /www/a/adventurers/htdocs/forums/LOGD/modules/quest_littlegirl.php on line 52

thats what i get when i install quests little girl.php
Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #9 on: November 28, 2004, 10:46:25 AM »

make sure, that quests.php is in your lib folder, and questbasics are installed and activated before you install the quest itself...

perhaps you should download the most recent version of the questpack... I updated this today... and it works perfectly on my server (internet as well as home...)
Logged

Running for more than three years now:
jwh1o1
Guest
« Reply #10 on: November 28, 2004, 01:37:09 PM »

ok i have it all up and working thank u for your help     and the mysterious hut    what language is that?   Bentigte Heldenwege zum Freischalten der    sorry for the incovience
Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #11 on: November 28, 2004, 10:09:42 PM »

It's still in German... But I'm sure I'll be able to translate it this year  Tongue
Logged

Running for more than three years now:
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #12 on: November 29, 2004, 11:06:50 AM »

I just updated the questpack...

Questpoints are now DK-preserved........
Logged

Running for more than three years now:
Dopple
Guest
« Reply #13 on: November 30, 2004, 07:41:58 PM »

The zipfile is a little odd... it looks like it has all the versions, in differently-named directories.  It's a bit difficult to figure out which version is the most current to install.

I've got a version of this with an attempt at an english translation, but I'm not sure how accurate it is.  It's generally consistent, but I only ever learned enough german to get the general idea while reading.. so it's possibly a bit of a hack job.  If anyone with a better knowledge wanted to fix any glaring mistakes, I'd be happy to send it...
Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #14 on: November 30, 2004, 10:01:38 PM »

The zipfile is a little odd... it looks like it has all the versions, in differently-named directories.  It's a bit difficult to figure out which version is the most current to install.

I fixed that... it basically contained the same files in both folders...

damn "copy & paste"  Cheesy

Now there only one folder structure...

If you have a translation, send it to me and I will have a brief view on it and then update the ZIP again with your files.
Logged

Running for more than three years now:
Pages: [1] 2 3 ... 7   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Welcome to DragonPrime - The LoGD Resource Community!

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Who's Online
40 Guests, 0 Users
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search