DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • July 16, 2018, 07:14:16 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Mounts/Refunds  (Read 2776 times)
0 Members and 1 Guest are viewing this topic.
Freeze
Guest
« on: December 21, 2005, 01:51:46 AM »

Ok, i'm working on a project for mounts [not a module or anything, just re doing the system on my site]

and i was wondering is there a way to give the players who have a mount a refund, without having to delete the mount?
Logged
Dannic
Guest
« Reply #1 on: December 21, 2005, 04:12:59 AM »

Other than selling it back to the stables?
Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #2 on: December 21, 2005, 04:34:51 AM »

I think he wants to change the prices for the mounts...

hmm... For every mount you change run the following sql:

Code:
UPDATE accounts SET gold = gold + XXX, gems = gems + YYY WHERE hashorse = ZZZ

Where XXX is the difference in gold, YYY the difference in gems and ZZZ the mountid...

Logged

Running for more than three years now:
Freeze
Guest
« Reply #3 on: December 21, 2005, 07:14:44 PM »

Actually, no, but thanks, i'll save that too... lol.

I want to refund players for their mounts, without deleted the mount itself.

Currently, the only way to refund is to del the mount, but i dont want to delete it, i just want to give players back thier gold and gems, and take thier mount..

if that makes any sense...
Logged
Elessa
Faerie
Mod God
*****
Offline Offline

Posts: 3598


short, sweet and to the point


View Profile
« Reply #4 on: December 21, 2005, 07:45:11 PM »

ye want to keep the mount available in the stable, but ye want to not hath players with it? ye want to refund those players who currently hath the mount their gold and gems, then take it away?

why do ye not want to delete the mount if that is the case?

why keep it?
Logged

Uuma ma ten rashwe, ta tuluva a lle

Play the latest beta version here on LoGD DragonPrime - Axebridge
Freeze
Guest
« Reply #5 on: December 23, 2005, 12:06:06 AM »

Its a very long story. lol.

And yes, thats correct.
Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #6 on: December 23, 2005, 12:30:43 AM »

Okay, for this you'll need a bit of code...

See attached module...

Just install this and uninstall it afterwards...

The install routine will reset all users' accounts so they don't have any mounts and give them their gold and gems back.

It will not install any hooks or whatever. It will do nothing - even if you leave it installed.
Logged

Running for more than three years now:
Freeze
Guest
« Reply #7 on: December 23, 2005, 12:42:38 AM »

* Lord Sephiroth thanks ChrisX.

Thanks dude, saved me alot of time. lol.
Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #8 on: December 23, 2005, 01:04:08 AM »

Actually you could also run the install code through the SQL/PHP console in the grotto... Wink
Logged

Running for more than three years now:
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Version 1.1.2 is the current supported version and is available for download.

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