DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • August 25, 2019, 07:38:32 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Display Dragon kills--based on display gold in bank by Moonlight  (Read 4701 times)
0 Members and 1 Guest are viewing this topic.
SpiritOfFire
Guest
« on: January 22, 2005, 10:01:18 AM »

Version 0.1

Grin Yeah!! My first--um--watchamacallit!

Pretty much self explanatory...I just changed the name and some vars from Moonlight's to get this...I thought it might be helpful....

http://dragonprime.net/users/SpiritOfFire/dragonkills.zip
Logged
Sichae
iMod God
SVN Users
Mod God
*
Offline Offline

Posts: 3458


If ya didn't get it by now... you're hopeless...


View Profile WWW
« Reply #1 on: January 22, 2005, 10:13:30 AM »

Dragonkills are already displayed in one's bio... and all that I have spoken to, do not even keep track sometimes...

I guess it may have some use... as well, you should make it a pref:
Code:
"Dragonkill Display Settings,title",
"user_showdks"=>"Do you wish for DKs to be shown,bool|0",
Then, in the charstats:
Code:
if (get_module_pref("user_showdks") == 1){
      $title = translate_inline("Personal Info");
      $stat = translate_inline("DragonKills");
      $new = $session['user']['dragonkills'];
      setcharstat($title,$stat,$new);
}
« Last Edit: January 22, 2005, 10:29:37 AM by Sichae » Logged

If you didn't understand anything in the above post, don't try to attempt anything suggested.

SpiritOfFire
Guest
« Reply #2 on: January 22, 2005, 10:17:54 AM »

 Embarrassed Oops.  I looked to see if it had...guess I missed that one.

Thanks...will do...

DONE! I also fixed the run function at the end.
« Last Edit: January 22, 2005, 10:32:08 AM by SpiritOfFire » Logged
SpiritOfFire
Guest
« Reply #3 on: January 22, 2005, 10:45:41 AM »

Added option for admin to allow/disallow it.

Same link.

...not that I see why any admin would want to disable something so trivial, but you never know  Wink
Logged
Talisman
Administrator
Mod God
*****
Offline Offline

Posts: 5484



View Profile WWW
« Reply #4 on: January 22, 2005, 10:49:15 AM »

If you mean allow/disallow the display of the DK numbers, all the admin needs to do with this particular module is deactivate it.  
Logged

Play the latest beta version here on DragonPrime
SpiritOfFire
Guest
« Reply #5 on: January 22, 2005, 11:02:10 AM »

Yes...but...

...then it's not as fun for me.  Oh well.  A little superfluous.  I'll try and remember that next time.
Logged
Lurch
Guest
« Reply #6 on: January 22, 2005, 12:15:37 PM »

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRI NG, expecting ')' in dragonkills.php on line 10 Sad
Logged
Sichae
iMod God
SVN Users
Mod God
*
Offline Offline

Posts: 3458


If ya didn't get it by now... you're hopeless...


View Profile WWW
« Reply #7 on: January 22, 2005, 12:21:46 PM »

He forgot a comma after the download link.

Alter the file, and it should be all right.
Logged

If you didn't understand anything in the above post, don't try to attempt anything suggested.

Lurch
Guest
« Reply #8 on: January 22, 2005, 12:25:27 PM »

Doh, why didn't I spot that Smiley Thanks Sichae.. just got up... here it's a very early sunday morning Smiley
Logged
SpiritOfFire
Guest
« Reply #9 on: January 22, 2005, 12:38:45 PM »

Sorry about that....

...FIXED!!
Logged
Tela
Guest
« Reply #10 on: March 19, 2008, 01:50:18 AM »

Fixed version is attached. See This Thread for details. Basically, it was just missing a return argument for the dohook function.

Fixed by Rohen.

Also, apologies for the extra thread there. I swear I couldn't find this one. ><

Guess I should add: Download link of the currently buggy version
« Last Edit: March 19, 2008, 01:51:49 AM by Tela » Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Play LoGD on Dragonprime

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