DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • November 20, 2018, 09:57:21 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Krayter accessible from only one village  (Read 462 times)
0 Members and 1 Guest are viewing this topic.
Eldarn
Militia
**
Offline Offline

Posts: 6


View Profile WWW
« on: August 11, 2018, 03:43:13 PM »

Hello guys, how are you?

My question is simple, how would I make it for Krayter, to be accessible from only one village, not all of them, as it is now?

I tried this:
Code:
case "village":
global $playermount;
if ($session['user']['dragonkills'] >= get_module_setting("dks")){
if ($session['user']['location']==$city){
tlschema($args['schemas']['gatenav']);
addnav($args['gatenav']);
tlschema();
addnav(array("Back to %su",get_module_pref("lastcity")),"runmodule.php?module=krayter&op=travel&travel=from");
}elseif ($session['user']['location'] == get_module_setting("krayterloc")){{
tlschema($args['schemas']['tavernnav']);
addnav($args['tavernnav']);
tlschema();
addnav(array("%s",get_module_setting("name")),"runmodule.php?module=krayter&op=travel&travel=to");
}
}
break;

But it turns out I suck at these things.

Any help would be great.

Thank you and have a nice day.
Eldarn
« Last Edit: August 11, 2018, 11:46:40 PM by Eldarn » Logged
Eldarn
Militia
**
Offline Offline

Posts: 6


View Profile WWW
« Reply #1 on: August 12, 2018, 12:10:27 AM »

It works!

Thank you very much sir, with the changes, you made, it works just fine.



Here is the whole module. As its not my work, I can`t tell you why thing are the way they are. But I wanted to use it for a different reason than it was supposed to be. So I needed it to be accessible from only one place.
« Last Edit: August 12, 2018, 12:16:37 AM by Eldarn » Logged
TGTarheel
Codemeister
****
Offline Offline

Posts: 478


View Profile
« Reply #2 on: August 12, 2018, 12:18:15 AM »

Glad that worked and I was able to help.  Basically, just your extra open curly I took out for you.

Code:
}elseif ($session['user']['location'] == get_module_setting("krayterloc")){ //you had and extra open-curly here I took out for you.


I removed the original post where I answered you because things got too weird in the post.  

But I am a Miss, not Sir.

And now this post is much better, concise.
« Last Edit: August 12, 2018, 12:25:29 AM by TGTarheel » Logged
Eldarn
Militia
**
Offline Offline

Posts: 6


View Profile WWW
« Reply #3 on: August 12, 2018, 12:25:27 AM »

I am very sorry madam, I will commit seppuku, as an apology.

Anyways, thank you again.
Logged
TGTarheel
Codemeister
****
Offline Offline

Posts: 478


View Profile
« Reply #4 on: August 12, 2018, 12:25:57 AM »

I am very sorry madam, I will commit seppuku, as an apology.

Anyways, thank you again.

np, happy I could help.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Version 1.1.2 is the current supported version and is available for download.

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