DragonPrime - LoGD Resource Community
Welcome Guest
  • Good evening, Guest.
    Please log in, or register.
  • May 26, 2019, 08:09:14 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1] 2 3   Go Down
  Print  
Author Topic: 98 converted chow and hunger module  (Read 9809 times)
0 Members and 1 Guest are viewing this topic.
lonnyl
Guest
« on: September 26, 2004, 12:21:05 PM »

Here is the converted 0.9.8 chow and hunger module.... again not tested for translation compatability.... there is also no forest event at this time for it...... will be getting done and uploaded soon.  You have to set your LOGD folder in game settings before activation this module! ex.... /logd/


http://www.pqcomp.com/modules/mydownloads/visit.php?cid=3&lid=38

EDIT
Now with forest event....
« Last Edit: January 30, 2005, 11:33:34 AM by lonnyl » Logged
brookstech
Guest
« Reply #1 on: September 26, 2004, 04:12:18 PM »

 Smiley

Cool, Now I am awaiting the Medal Contest...my players loved that!
Logged
lonnyl
Guest
« Reply #2 on: September 26, 2004, 04:23:17 PM »

Just updated with fix for draco's diner.... if you have the first upload please replace it.
Logged
lonnyl
Guest
« Reply #3 on: September 28, 2004, 06:30:14 AM »

Another Update... now works properly after a forest fight.
Logged
sixf00t4
Mod God
*****
Offline Offline

Posts: 1916



View Profile WWW
« Reply #4 on: September 28, 2004, 07:16:09 AM »

didnt try this new version yet, but i get a badnav after using an item.  doesn't matter where.
Logged

lonnyl
Guest
« Reply #5 on: September 28, 2004, 10:30:18 AM »

You need to go to game settings, and click on the use chow under stats display and set your lotgd folder
Logged
Kendaer
Guest
« Reply #6 on: September 28, 2004, 01:20:26 PM »

Why do you need this Lonny?

There are two options I would suggest for you rather than needing to know the lotgd directory on the server.  Both of them rely on making it a relative path.

a) make a subdirectory under the images directory and put your chow images there.  Include instructions which say how to create this directory.
reference the images in the code as <img src="images/chow/foo.gif"> which makes them relative to the lotgd installation.

b) make a subdirectory under the modules directory (probably better since then you can just unpack the zip archive in the modules directory and put the images files in place).   See the riddles/riddles_install.php for an example of module-specific added files.  Reference the images as <img src="modules/chow/foo.gif'> in the code.

Less configuration = less moving parts = less things to go wrong.
Logged
lonnyl
Guest
« Reply #7 on: September 28, 2004, 01:33:08 PM »

In this particular situation.... as with the potions (not done yet) and the who's here.. I am filtering the url down the the page name.... I know there must be a better way to do it... I just haven't found it yet.
Logged
Kendaer
Guest
« Reply #8 on: September 28, 2004, 02:53:50 PM »

In this particular situation.... as with the potions (not done yet) and the who's here.. I am filtering the url down the the page name.... I know there must be a better way to do it... I just haven't found it yet.

We already do stuff like this for you lonny.. There's not reason to have the folder specified..
Here's the code you can use Smiley

Code:
global $SCRIPT_NAME;
$currentpage = $SCRIPT_NAME;

Heck, if you just used $SCRIPT_NAME instead of $currentpage it's even simpler Smiley

($SCRIPT_NAME is set in lib/php_generic_environment.php which is universally included from common.php so you can gaurentee to be able to use it Smiley)

Hope this helps Smiley

« Last Edit: September 28, 2004, 02:55:39 PM by Kendaer » Logged
lonnyl
Guest
« Reply #9 on: September 28, 2004, 03:52:03 PM »

See..... I knew there was a better way!  Grin

And now updated with no more need to set the lotgd folder.....
« Last Edit: September 28, 2004, 04:50:09 PM by lonnyl » Logged
lonnyl
Guest
« Reply #10 on: September 29, 2004, 07:34:02 AM »

Updated once again so that it doesn't puke if one tries to use this from a module.... it simply at this point does not let one use chow from a running module..... my question to Kendear

Is there a way to deal with this... say storing current running module in runmodule.php and if returned to it, it would call the current running module?  

or is the running module stored somewhere similar to $SCRIPT_NAME?
« Last Edit: September 29, 2004, 07:35:33 AM by lonnyl » Logged
lonnyl
Guest
« Reply #11 on: September 29, 2004, 10:46:45 AM »

And updated once again.... now works with the bladder module if installed.  
Logged
lonnyl
Guest
« Reply #12 on: September 30, 2004, 06:43:43 AM »

Updated once again.... now starving to death works.
Logged
Kendaer
Guest
« Reply #13 on: September 30, 2004, 06:10:44 PM »

Updated once again so that it doesn't puke if one tries to use this from a module.... it simply at this point does not let one use chow from a running module..... my question to Kendear

Is there a way to deal with this... say storing current running module in runmodule.php and if returned to it, it would call the current running module?  

or is the running module stored somewhere similar to $SCRIPT_NAME?

global $mostrecentmodule;
Logged
lonnyl
Guest
« Reply #14 on: October 12, 2004, 12:47:38 PM »

Updated (ver 1.2) now should be translation ready.....
Logged
Pages: [1] 2 3   Go Up
  Print  
 
Jump to:  


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

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