DragonPrime - LoGD Resource Community
Welcome Guest
  • Good evening, Guest.
    Please log in, or register.
  • September 09, 2010, 12:28:18 AM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: [1]   Go Down
  Print  
Author Topic: Gold and DKs  (Read 662 times)
0 Members and 1 Guest are viewing this topic.
Interloper
Guest
« on: June 28, 2004, 08:55:55 PM »


Hey everyone, I'm a total n00b to the fold but I have a couple of things that I was hoping someone could give me a little help with.

I've just installed lotgd 0.9.7 version and everything appears to be in order, so I'm considering adding a few minor modifications before opening the floodgates and letting people play it.

The first modification I'm interested in adding is one that I found on sourceforge to increase the cost of weapons after each DK... The code is here:

// in weapons.php and armors.php

Find (two times at both .php files):

$row = db_fetch_assoc($result);

Add after:
$row[value] = $row[value]+$row[value]*$session[user][dragonkills]/2;
if (is_double($row[value])) {
$row[value] = $row[value] - 0.5;
}

To go along with this I was hoping there would be some way to allow my players to keep the gold they've collected, rather than losing it when they kill the dragon. Even if they only got to keep gold that they'd put in the bank or something would make me a very happy farmboy.

So basically, err... Yeah. What do I edit to make my players keep their gold after a DK (even just the gold in the bank), is this even possible to do without major changes, and are the any forseeable problems that anyone can see with either the weapon cost modification or allowing players to keep their gold.

Sorry for rambling, I hope it all made sense. Any help would be greatly appreciated.

 Cheesy
Logged
Talisman
Administrator
Mod God
*****
Offline Offline

Posts: 5227



View Profile WWW
« Reply #1 on: June 28, 2004, 09:07:09 PM »

Allowing players to keep their gold through a DK would be very off-balancing to your game economy, and increasing the price of weapons/armour would have little or no effect.

Once the players realize that gold stays, they will stay at level 15 and bank a bunch of gold.  Once they have enough gold in the bank, the interest collected will finance the rest of their careers.

It's easy enough to do...but I'd strongly recommend that you don't.
Logged

Play the latest beta version here on DragonPrime
Interloper
Guest
« Reply #2 on: June 29, 2004, 08:37:56 AM »


Thanks for your advice.

I will heed your words.

 Wink
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!
Who's Online
30 Guests, 1 User
Iori
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search