DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • April 19, 2019, 01:37:33 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Secret Laboratory  (Read 5251 times)
0 Members and 1 Guest are viewing this topic.
lonnyl
Guest
« on: February 22, 2005, 06:03:40 AM »

A Secret Lab hidden in the forest. When players stumble accross it they have the option to mix up a potion from 6 different color chemicals and drink it. They just need to be careful and not blow themselves up! This is a nice graphical module.



http://www.pqcomp.com/modules/mydownloads/visit.php?cid=3&lid=85
Logged
Lightbringer
Member
Codemeister
****
Offline Offline

Posts: 267


Life's a lich and then you don't die...damn unlife


View Profile
« Reply #1 on: February 22, 2005, 06:06:53 AM »

OOOOOH

Looks damn nice...will definitely take a look

Assuming that everything but the php go in the images folder?
« Last Edit: February 22, 2005, 06:09:23 AM by Lightbringer » Logged

________________________ _____________________

Lightbringer
PHP/SQL/VB.NET/C#/AJAX Developer
Kendaer
Guest
« Reply #2 on: February 22, 2005, 03:37:57 PM »

A general rule of etiquette.

If a module requires images or something like that (ie, external data), you should create a subdirectory under modules named by the module name and place that data there.

Then you can reference it in a url etc, AND it's nicely associated with the module so when the module gets removed so does that stuff.

For instance, if your module Bar had an image foo.gif, you should distribute
bar.php and bar/foo.gif

both bar.php and the bar directory should live under modules.

In your code, you should reference foo.gif as modules/bar/foo.gif

While we cannot stop you from sticking stuff in images/ or whatever, this system will make things cleaner in the long-run Smiley
Logged
Talisman
Administrator
Mod God
*****
Offline Offline

Posts: 5483



View Profile WWW
« Reply #3 on: February 22, 2005, 09:27:49 PM »

Putting them in their own folder also avoids the potential for multiple files trying to exist under the same name   Wink
Logged

Play the latest beta version here on DragonPrime
robert
Old Dog
Mod God
*****
Offline Offline

Posts: 1047


LoGD Buff!


View Profile WWW
« Reply #4 on: February 23, 2005, 12:59:34 AM »

 Cool another cool mod brought to you by lonny!

I agree, having a seperate folder will also make uninstall easier also.

And as Talisman pointed out, there may exist other images with the same name - I have come across this problem and solved it with a seperate folder.
Logged

lonnyl
Guest
« Reply #5 on: February 23, 2005, 05:28:19 AM »

well... I certainly can put them in their own folder...  As images in the past has seemed to be the standard that's what I stuck with..... I did however start naming them secretlab_imagename (i also used sl_imagename in this one) to help identify the module they belong to.  

I am glad to see that we have no major problems reported as of yet....

And I actually wanted to do more with the images, but had a concern with bandwidth and dialup speeds for users, so I really toned things down as far as the images are concerned.  

Anyway..... hope you all enjoy this one...
I got the idea from a bonus game in Reel Deal Slots - Nickel Alley.  And there are a couple more bonus games in there that may spawn  some new modules.....  Grin
Logged
Excalibur
Member
Mod God
*****
Offline Offline

Posts: 573


I'm a newbie, plz forgive me!


View Profile WWW
« Reply #6 on: June 03, 2005, 03:41:43 PM »

Line 116:
Code:
$session['bufflist']['secretlabstrong1'] = array("name"=>"`4Chemical Stregth","rounds"=>100,"wearoff"=>"`4Your chemical strength fades.","atkmod"=>1.25,"activate"=>"offense");
should be:
Code:
apply_buff('secretlabstrong1',array("name"=>"`4Chemical Stregth","rounds"=>100,"wearoff"=>"`4Your chemical strength fades.","atkmod"=>1.25,"activate"=>"offense"));

Similar to this one, the other buff should be changed (lines 119, 129, 132, 148 & 151) for the same reason as for Lonny's Castle Basement.
Code:
Logged

Spock: Random chance seems to have operated in our favor.
McCoy: In plain, non-Vulcan English, we've been lucky.
Spock: I believe I said that, Doctor.
Excalibur
Member
Mod God
*****
Offline Offline

Posts: 573


I'm a newbie, plz forgive me!


View Profile WWW
« Reply #7 on: June 04, 2005, 06:46:39 AM »

Few more corrections to make it translatable via translate_by_namespace facility.

in lib/secretlab.php each occurrance of the function secretlab_bigtext, like this one (line 71):
Code:
           secretlab_bigtext("`n`b`c`^You swallow the contents of the bottle!`c`b");
should be changed to:
Code:
           $text = translate_inline("`n`b`c`^You swallow the contents of the bottle!`c`b");
            secretlab_bigtext($text);

Line 49 of lib/secretlab_func.php could be:
Code:
   output_notl($text);
as all the text were already translated with translate_inline in main script.


« Last Edit: June 04, 2005, 06:47:00 AM by Excalibur » Logged

Spock: Random chance seems to have operated in our favor.
McCoy: In plain, non-Vulcan English, we've been lucky.
Spock: I believe I said that, Doctor.
lonnyl
Guest
« Reply #8 on: June 04, 2005, 07:37:33 AM »

Excals fixes are in the newester version.... please run module updates...
Logged
Pages: [1]   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
101 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search