#18401 - 10/04/08 09:22 AM
Creating dungeons using stories/worlds
|
gamefreak888
Rice Krispies
Registered: 09/06/07
Posts: 215
|
Offline
|
|
I like to do the following:
Create 1 'uber' world (300x300) with around 300-400 monsters (60 monster levels, player can grow to level 80).
Create several dungeons (worlds) with a size of 10-50 with unique monsters and save points (towns).
Now I'd like to use the build-in story system to teleport the user from the uber world to a dungeon and then to the uber world again. But this means I'm going to have 10+ stories in one world, how is this possible? I've tried to just add two stories in one world, one located at 1N 0E, another at 0N 1E, but it won't work.
I know this has something to do with the 'currentstory' thing in the userstable, but I'm not going to let the user have 2 current stories at the same time, so how can I make this work?
If it is very difficult or impossible, I'm just going to create my own scripts in explore.php that teleports the user to a world, but I was just wondering if it would be possible with the story script, which would otherwise be useless to me.
Thanks in advance.
Edited by basleijser (10/04/08 10:08 AM)
|
|
Top
|
|
|
#18405 - 10/04/08 12:41 PM
Re: Creating dungeons using stories/worlds
[Re: Fayt]
|
gamefreak888
Rice Krispies
Registered: 09/06/07
Posts: 215
|
Offline
|
|
Ok thanks! I'll wait
|
|
Top
|
|
|
#18411 - 10/05/08 08:58 AM
Re: Creating dungeons using stories/worlds
[Re: Fayt]
|
gamefreak888
Rice Krispies
Registered: 09/06/07
Posts: 215
|
Offline
|
|
I'm sorry but I don't understand you.
So with that script you're moving in the dungeon and in the real world at the same time? Or do you mean that I have to create a latitude2 & longitude2 for world 2?
Isn't this much easier:
Create a script in explore php, like:
if ($userrow["latitude"] == 1 & $userrow["longitude"] == 0 & $userrow["world"] == 1) { UPDATEQUERY -> update users SET world=2,latitude=0,longitude=0 WHERE id=$userrow["id"]
(I know the script above is very bad, but I don't have much time right now ^^)
And then you create a 2nd world filled with monsters and 'save points' (instead of towns).
Finally: you've got to add the following code in explore.php:
if ($userrow["latitude"] == 1 & $userrow["longitude"] == 0 & $userrow["world"] == 2) { UPDATEQUERY -> update users SET world=1,latitude=0,longitude=0 WHERE id=$userrow["id"]
That'll work right?
|
|
Top
|
|
|
#18414 - 10/05/08 09:29 AM
Re: Creating dungeons using stories/worlds
[Re: gamefreak888]
|
Fayt
Crunchberries
 
Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA
|
Offline
|
|
Error #1.
if ($userrow["latitude"] == 1 &
& will cause errors, it has to be &&
Error #2. If you use that code, it will move your primary player in the normal world.
Error: #3. You can't create a second world and use the SAME EXACT CODE it will overlap it's self and keep you in primary.
So what you have to do is two things, either follow my coding for a new world/dungeon.
OR
You can add a world field in your database in each table like monsters, items, towns, etc. Put a default of 1. Then then you visit a new world, it is updated as 2.
So say you have Bobs Shack as your 1st town in world 1 (beginning town). It would be world 1 in the database. Then the 1st town you want in the second world would be like Town Of Farts and the database field for that town will be a 2. So when you are in world 1, everything in world 2 is not shown, and the opposite.
I have this on my game and it works perfect, so no one can tell me it doesn't work.
_________________________
MasterFayt - Amara 5 - Manas - Banar
|
|
Top
|
|
|
#18415 - 10/05/08 10:10 AM
Re: Creating dungeons using stories/worlds
[Re: Fayt]
|
gamefreak888
Rice Krispies
Registered: 09/06/07
Posts: 215
|
Offline
|
|
Are you talking about Dragon Knight? These are the Scourge forums right?
|
|
Top
|
|
|
#18418 - 10/05/08 10:53 AM
Re: Creating dungeons using stories/worlds
[Re: Fayt]
|
gamefreak888
Rice Krispies
Registered: 09/06/07
Posts: 215
|
Offline
|
|
But if you create another world in Scourge and teleport the user to it there's no problem at all right? I mean, perhaps the latitude and longitude are the same, but as long as you keep that && world=1 code in it nothing will happen when you arrive at certain locations with special events in world 1.
And I know that it has to be && instead of & but I was in a hurry
|
|
Top
|
|
|
#18420 - 10/05/08 12:18 PM
Re: Creating dungeons using stories/worlds
[Re: Fayt]
|
gamefreak888
Rice Krispies
Registered: 09/06/07
Posts: 215
|
Offline
|
|
Yeah. Well, you have to use PHPMyAdmin for it... Stock DS has 5 worlds.
By the way: congratulations: one more post and you'll have 1000 posts on these forums!
Edited by basleijser (10/05/08 12:19 PM)
|
|
Top
|
|
|
#18423 - 10/05/08 02:06 PM
Re: Creating dungeons using stories/worlds
[Re: Fayt]
|
gamefreak888
Rice Krispies
Registered: 09/06/07
Posts: 215
|
Offline
|
|
Without you I don't think I would still be on these forums, they would be too empty
|
|
Top
|
|
|
|
|