Warning: preg_replace_callback(): Requires argument 2, '$func['entity_fix']('\2')', to be a valid callback in /nfs/c01/h06/mnt/10927/domains/dragonprime.net/html/Sources/Load.php(225) : runtime-created function on line 3

Warning: preg_replace_callback(): Requires argument 2, '$func['entity_fix']('\2')', to be a valid callback in /nfs/c01/h06/mnt/10927/domains/dragonprime.net/html/Sources/Load.php(225) : runtime-created function on line 3
Terronville
DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • September 21, 2019, 05:01:32 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Terronville  (Read 4190 times)
0 Members and 1 Guest are viewing this topic.
Craug
Guest
« on: May 21, 2004, 11:15:13 PM »

This simple little forest special is the result of some silliness in the lotgd.net forums. It's been awhile since I did any PHP, so this was a good warm up for me to get back into it. Smiley

http://dragonprime.cawsquad.net/users/Craug/terronville.txt

Comments, suggestions, scoldings welcome.
« Last Edit: May 22, 2004, 09:36:40 AM by Craug » Logged
Excalibur
Member
Mod God
*****
Offline Offline

Posts: 573


I'm a newbie, plz forgive me!


View Profile WWW
« Reply #1 on: May 22, 2004, 04:34:10 AM »

Line 113:
Code:
output("`$Well that was odd. You return to the forest. ");
I suppose the $Well should read Well instead.

Secondly what is ._terronville.php file for ? If I try to open it is empty and with notepad says text truncated at first binary zero.

Rgds 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.
Talisman
Administrator
Mod God
*****
Offline Offline

Posts: 5484



View Profile WWW
« Reply #2 on: May 22, 2004, 06:03:45 AM »

If you want the light red text, change line 113 to:

Code:
output("`\$Well that was odd. You return to the forest. ");


Thanks Craug
Logged

Play the latest beta version here on DragonPrime
Craug
Guest
« Reply #3 on: May 22, 2004, 09:39:26 AM »

Heh. I didn't even think about escaping the $ to get red. Thanks! The ._terronville.php was an unintentional file, maybe due to the way I was zipping it. Since it's just a single file, I fixed 'Well' and reuploaded it as terronville.txt.
Logged
lonnyl
Guest
« Reply #4 on: July 10, 2004, 06:05:11 AM »

I had some fun with this at the time I installed it and thought I would share my changes....

thought it would be fun to make this a mod that let you meet other players......

so to replace the single name for the app......
Code:
find
$tname = "Terron";

and replace it with
if ($HTTP_GET_VARS[op] == ""){
$sql = "SELECT name FROM accounts WHERE alive=1";
$result = db_query($sql);
$go=e_rand(1,db_num_rows($result));
for ($i=0;$i<$go;$i++){
    $row = db_fetch_assoc($result);
   $tname = $row[name];
   $session[user][pqtemp]=$row[name];
}
if ($tname==$session[user][name]){
   $row = db_fetch_assoc($result);
   $tname = $row[name];
   $session[user][pqtemp]=$row[name];
}
}else{
   $tname=$session[user][pqtemp];
   $session[user][pqtemp]="";
}
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
27 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search