DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • November 12, 2018, 10:44:09 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Keep gold after dragonkill  (Read 6733 times)
0 Members and 1 Guest are viewing this topic.
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« on: December 06, 2005, 07:17:36 AM »

This has been written, because it has been asked for.

I strongly suggest you ignore this module, as its usage is HIGHLY unbalancing!

Download: Here.

Functionality: Allows to set an amount of gold (either hand or bank or both) which can be kept after dk.

It hasn't been tested, so there might be parse errors due to misspelling. I'm not sure... Wink
« Last Edit: May 22, 2007, 11:38:22 AM by Elessa » Logged

Running for more than three years now:
sixf00t4
Mod God
*****
Offline Offline

Posts: 1916



View Profile WWW
« Reply #1 on: December 06, 2005, 07:19:29 AM »

heh, take that extra quote out of line 11...(so far  Tongue )
Logged

XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #2 on: December 06, 2005, 07:21:17 AM »

And I already thought that this syntax highlighting looked a bit strange... Wink

FIXED.
« Last Edit: December 06, 2005, 07:23:10 AM by XChrisX » Logged

Running for more than three years now:
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #3 on: December 06, 2005, 09:51:32 AM »

Updated to work better (at all....)
Logged

Running for more than three years now:
Freeze
Guest
« Reply #4 on: January 02, 2006, 09:17:16 PM »

I belive this is a bug..

When you dk, you dont get the prize gold. Not sure about the gems though..

I've tried this with both 'Keep gold on hand' off and on.

For a short period of time, i just dont want gold in bank to go away.

« Last Edit: January 02, 2006, 09:19:44 PM by Abraxas » Logged
Syb2
Militia
**
Offline Offline

Posts: 13



View Profile WWW
« Reply #5 on: June 10, 2006, 07:46:52 PM »

I belive this is a bug..

When you dk, you dont get the prize gold. Not sure about the gems though..

I've tried this with both 'Keep gold on hand' off and on.

For a short period of time, i just dont want gold in bank to go away.



I also have tried it on and off, went so far as to remove it and with it removed players get DK rewards.
Now with it on, logs state that they DID recieve the reward though I know they have not. tested it myself and though I got nothing, logs show I did.
 I also would like to have bank gold stay in bank but also have the players actaully recieve the reward at DK.  Tongue
Is there a fix for this?
Logged
Elessa
Faerie
Mod God
*****
Offline Offline

Posts: 3598


short, sweet and to the point


View Profile
« Reply #6 on: May 22, 2007, 11:40:17 AM »

* Elessa uploads the missing file to the downloads area

the file for keepgold.php can be downloaded here.

if there is a new version than v 1.0, xchrisx needs to update the download.  Wink
Logged

Uuma ma ten rashwe, ta tuluva a lle

Play the latest beta version here on LoGD DragonPrime - Axebridge
Iori
Mod God
*****
Offline Offline

Posts: 832


View Profile WWW
« Reply #7 on: May 22, 2007, 04:46:35 PM »

I belive this is a bug..

When you dk, you dont get the prize gold. Not sure about the gems though..

I've tried this with both 'Keep gold on hand' off and on.

For a short period of time, i just dont want gold in bank to go away.



Line 42:
         
Code:
$session['user']['gold'] = get_module_pref("gold");
change to:
         
Code:
$session['user']['gold'] += get_module_pref("gold");
to get the default DK gold rewards (and any other gold rewards due to modules such as clan stipend)  to add gold properly.
Logged

Aeolus
Mod God
*****
Offline Offline

Posts: 1901


You're welcome.


View Profile WWW
« Reply #8 on: February 24, 2013, 06:07:27 AM »

A Staffer of mine noticed that if a user has a debt before a DK, this module keeps that debt. To anyone else that uses this module and requires a fix:

Find Line 43:
Code:
$session['user']['goldinbank'] = get_module_pref("bank");

Replace With:
Code:
$session['user']['goldinbank'] = (get_module_pref("bank") > 0 ? get_module_pref("bank") : 0);
Logged

rjwboys
Militia
**
Offline Offline

Posts: 70


View Profile
« Reply #9 on: October 10, 2014, 12:37:26 PM »

i had an issue when installing this and i found out the first line had
<?
and it should of been
<?php
Logged
MarcTheSlayer
Mod God
*****
Offline Offline

Posts: 1746


View Profile
« Reply #10 on: October 10, 2014, 03:21:00 PM »

Yeah, most servers have php configured to only allow <?php
Logged

Check My Modules for the latest versions.
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Welcome to DragonPrime - The LoGD Resource Community!

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