DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • June 18, 2013, 01:55:56 PM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: [1]   Go Down
  Print  
Author Topic: Forced Navs  (Read 250 times)
0 Members and 1 Guest are viewing this topic.
The Doctor
Mod God
*****
Offline Offline

Posts: 1100


Doctor.. Who?


View Profile WWW
« on: July 14, 2012, 02:33:30 AM »

Is there a module one can download (or a core edit one can put in) that can allow only certain players (for example, Megausers) to override the forced nav for every page?

For example, if I need to translate something in the section where a player fights the Green Dragon (or variations thereof).. instead of challenging each of my masters, then having to fight the Green Dragon (or variations thereof), I could simply go to the URL that directs to where one fights the GD.

Is this possible? xD
Logged


Time Lords Online - A Doctor Who RPG! Open Now!

~ My Modules: PM me if you would like me to code something! ~
KaosKaizer
Mod God
*****
Offline Offline

Posts: 1000


Endlessly I listen in the master game.


View Profile
« Reply #1 on: July 17, 2012, 04:15:42 PM »

It is possible, but to skip straight to the dragon without leveling would be a bad decision. However, this can easily be fixed by adding a level up code before directing to the dragon fight.

I'll see what I can do for you. I won't make it override navs, but I will put a superuser-only nav to skip straight to the dragon.

:: EDIT ::
Done. Discussion and File Submission.
« Last Edit: July 17, 2012, 07:40:32 PM by KaosKaizer » Logged

My Mods
Like to read? "Like" my page. Smiley
I am not going to be as active as I might like, but I may occasionally update one of my mods.
The Doctor
Mod God
*****
Offline Offline

Posts: 1100


Doctor.. Who?


View Profile WWW
« Reply #2 on: July 17, 2012, 07:45:15 PM »

It is possible, but to skip straight to the dragon without leveling would be a bad decision. However, this can easily be fixed by adding a level up code before directing to the dragon fight.

I'll see what I can do for you. I won't make it override navs, but I will put a superuser-only nav to skip straight to the dragon.

:: EDIT ::
Done. Discussion and File Submission.

It was actually just an example- the real want was to get to the shades without having to die. xD But, thanks! It'll be handy. :3
Logged


Time Lords Online - A Doctor Who RPG! Open Now!

~ My Modules: PM me if you would like me to code something! ~
KaosKaizer
Mod God
*****
Offline Offline

Posts: 1000


Endlessly I listen in the master game.


View Profile
« Reply #3 on: July 17, 2012, 07:48:32 PM »

Oh. Well, I don't think there is a way to get there without dying. I'm not sure, but I actually think there's a check to see if you're alive or not.

:: EDIT ::
Still, this was a great module for me to come back with. Smiley
Logged

My Mods
Like to read? "Like" my page. Smiley
I am not going to be as active as I might like, but I may occasionally update one of my mods.
Stephen Kise
Codemeister
****
Offline Offline

Posts: 372



View Profile WWW
« Reply #4 on: July 17, 2012, 08:11:35 PM »

It is possible, but to skip straight to the dragon without leveling would be a bad decision. However, this can easily be fixed by adding a level up code before directing to the dragon fight.

I'll see what I can do for you. I won't make it override navs, but I will put a superuser-only nav to skip straight to the dragon.

:: EDIT ::
Done. Discussion and File Submission.

It was actually just an example- the real want was to get to the shades without having to die. xD But, thanks! It'll be handy. :3

An example to journey into the shades may look like..
Code:
<?php
function withourlives_run(){
global 
$session;
$op httpget('op');
switch (
$op){
case 
"journeytodeath":
$session['user']['alive']=0;
$session['user']['hitpoints']=0;
output("Dramatic event");
addnav("Carry on","shades.php");
break;
}
}
?>
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Please take the time to read the FAQ and browse the DragonPedia

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