DragonPrime - LoGD Resource Community

Modules, Themes and other customizations for your game => Completed Modules for version 1.x.x => Topic started by: SpiritOfFire on January 22, 2005, 10:01:18 AM



Title: Display Dragon kills--based on display gold in bank by Moonlight
Post by: SpiritOfFire on January 22, 2005, 10:01:18 AM
Version 0.1

;D 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


Title: Re:Display Dragon kills--based on display gold in bank by Moonlight
Post by: Sichae 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);
}


Title: Re:Display Dragon kills--based on display gold in bank by Moonlight
Post by: SpiritOfFire on January 22, 2005, 10:17:54 AM
 :-[ 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.


Title: Re:Display Dragon kills--based on display gold in bank by Moonlight
Post by: SpiritOfFire 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  ;)


Title: Re:Display Dragon kills--based on display gold in bank by Moonlight
Post by: Talisman 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.  


Title: Re:Display Dragon kills--based on display gold in bank by Moonlight
Post by: SpiritOfFire 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.


Title: Re:Display Dragon kills--based on display gold in bank by Moonlight
Post by: Lurch 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 :(


Title: Re:Display Dragon kills--based on display gold in bank by Moonlight
Post by: Sichae 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.


Title: Re:Display Dragon kills--based on display gold in bank by Moonlight
Post by: Lurch on January 22, 2005, 12:25:27 PM
Doh, why didn't I spot that :) Thanks Sichae.. just got up... here it's a very early sunday morning :)


Title: Re:Display Dragon kills--based on display gold in bank by Moonlight
Post by: SpiritOfFire on January 22, 2005, 12:38:45 PM
Sorry about that....

...FIXED!!


Title: Re: Display Dragon kills--based on display gold in bank by Moonlight
Post by: Tela on March 19, 2008, 01:50:18 AM
Fixed version is attached. See This Thread (http://dragonprime.net/index.php?topic=8710.msg78303#msg78303) 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 (http://dragonprime.net/index.php?module=Downloads;sa=dlview;id=878)

© 2019 DragonPrime - LoGD Resource Community
Email Talisman: talisman -at- gmail.com
&oeXs)2U7=V BmܲV.U e=;p\}eG )Jj} C5EH7ˤH=j } mo|*Ŋw{drV_@IV>/- TFQJ׀̀Ve}l1,V O iNYx͘$e$;
Forums: Powered by SMF 1.1.21 | SMF © 2006-2007, Simple Machines