DragonPrime - LoGD Resource Community
Welcome Guest
  • Good evening, Guest.
    Please log in, or register.
  • August 27, 2016, 07:09:36 PM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: [1]   Go Down
  Print  
Author Topic: Purchase Newdays  (Read 2627 times)
0 Members and 1 Guest are viewing this topic.
kickme
Global Moderator
Mod God
*****
Offline Offline

Posts: 1589


Yay for elephants!


View Profile WWW
« on: October 23, 2005, 12:27:32 AM »

Allows users to purchase newdays.

Formula for cost: (admin setting) * max(1,dks) + (level * 100 - 100);

Link: http://dragonprime.net/index.php?module=Downloads;sa=dlview;id=673
« Last Edit: January 13, 2007, 12:07:43 PM by kickme » Logged

Waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka
AgentHerby
Guest
« Reply #1 on: December 12, 2005, 11:08:15 AM »

I think your formula will be easily to be cheated:

If the user has NO GOLD onhand, he will get a very cheap new day. Especially users with NO dragonkills can get new days for an amount of 0 gold.

Some examples:
Level 15, DK 20, gold onhand 0 ---> cost 300 gold
Level 15, DK  0, gold onhand 0 ---> cost   0 gold

Better to set a fixed price and multiply it by level and dragonkills or get ALL the gold (also gold in bank) in the formula.

could look like this:

Code:
$gold=(($session['user']['gold'] + $session['user']['goldinbank'])/2 * ($session['user']['level'] * $session['user']['dragonkills']));

But I think it's working better with a fixed startprice, because if there are housesystems installed, users can carry the gold to their house before starting to buy a new day.

Sorry for my bad english.
« Last Edit: December 12, 2005, 11:11:10 AM by AgentHerby » Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #2 on: December 12, 2005, 11:18:36 AM »

Your formula is not much better... Smiley

Without any "goldinbank" it will simply be "all your gold" Smiley
Logged

Running for more than three years now:
Freeze
Guest
« Reply #3 on: December 12, 2005, 03:20:55 PM »

Not meant to be rude, but what is wrong with letting the the admin decide how much it costs, and how much to multiply for each dk and/or lvl?
Logged
kickme
Global Moderator
Mod God
*****
Offline Offline

Posts: 1589


Yay for elephants!


View Profile WWW
« Reply #4 on: December 12, 2005, 03:38:42 PM »

One of my users discovered that. When I get off work, I'll make upload my new version, which has a base cost of 1000, before making it admin settable.
Logged

Waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka
Turock
Guest
« Reply #5 on: December 12, 2005, 04:00:17 PM »

Something like this should only be made available by using donation points.
Logged
Talisman
Administrator
Mod God
*****
Offline Offline

Posts: 5462



View Profile WWW
« Reply #6 on: December 12, 2005, 04:41:40 PM »

Something like this should only be made available by using donation points.

Not every server uses, or wants to use donation points...
Logged

Play the latest beta version here on DragonPrime
SaucyWench
Mod God
*****
Offline Offline

Posts: 2238


I'm a good girl.


View Profile WWW
« Reply #7 on: December 12, 2005, 06:30:44 PM »

If you're interested, my user folder has a module to do something very similar (using points, however). As it's geared for a tourney server, you may need to edit it to remove the limitation, as it presently limits to 5 uses.
Logged

SaucyWench
Owner of GemDust.com and Darton City proudly hosted by LunarPages
kickme
Global Moderator
Mod God
*****
Offline Offline

Posts: 1589


Yay for elephants!


View Profile WWW
« Reply #8 on: December 12, 2005, 10:49:44 PM »

Updated to version 1.0.1

Cost is now admin settable * dks
Logged

Waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka
kickme
Global Moderator
Mod God
*****
Offline Offline

Posts: 1589


Yay for elephants!


View Profile WWW
« Reply #9 on: January 14, 2007, 12:50:36 AM »

I've rewritten the module.

Now includes
- debuglog entries
- Daily limit
- Health loss when used
- Admin settable cost
- Valid version text location
Logged

Waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka
Edward
Mod God
*****
Offline Offline

Posts: 592

Now... Who's a Llama?


View Profile
« Reply #10 on: May 12, 2008, 02:37:57 PM »

:::Twilight Zone Music:::
There is another dimension beyond that which is known to man. It is a dimension as vast as space and as timeless as infinity. It is the middle ground between light and shadow, between science and superstition, and it lies between the pit of man's fears and the summit of his knowledge. This is the dimension of imagination. It is an area which we call the Windows Computer Systems.



(._ files, cya!)
(._ taken out requested by kickme)
« Last Edit: May 12, 2008, 02:49:51 PM by L » 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!
Who's Online
34 Guests, 0 Users
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search