se7enet purgatorio

Page 1 of 3 123>
Topic Options
Rate This Topic
#17432 - 06/12/08 07:46 AM stupid question about gold in DK
CriticaL
Malt-o-Meal


Registered: 06/07/08
Posts: 8

Offline
hi . sorry for this verry stupid question .. but .. how i can change the gold limit?
Top
#17433 - 06/12/08 07:59 AM Re: stupid question about gold in DK [Re: CriticaL]
AnmanIndustries
Cookie Crisp
*****

Registered: 03/21/05
Posts: 2876
Loc: Planet Stupid, AKA Earth

Offline
The gold limit for what?
_________________________
If you want me to punch you in the nuts go to:
http://www.AnmanIndustries.com

I'll do it for free too. Enjoy.

Top
#17434 - 06/12/08 08:36 AM Re: stupid question about gold in DK [Re: AnmanIndustries]
CriticaL
Malt-o-Meal


Registered: 06/07/08
Posts: 8

Offline
for Dragon Knight.
now is 16,777,215 i want to increase it up to 30,000,000 .


Edited by CriticaL (06/12/08 08:37 AM)

Top
#17436 - 06/12/08 08:44 AM Re: stupid question about gold in DK [Re: CriticaL]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
Go into your database and into your Users table. Edit the gold field, and change it to BigInt 50

That should take care of the problem.
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#17437 - 06/12/08 09:04 AM Re: stupid question about gold in DK [Re: Fayt]
CriticaL
Malt-o-Meal


Registered: 06/07/08
Posts: 8

Offline
Thanx \:\)
Top
#17441 - 06/12/08 05:07 PM Re: stupid question about gold in DK [Re: CriticaL]
AnmanIndustries
Cookie Crisp
*****

Registered: 03/21/05
Posts: 2876
Loc: Planet Stupid, AKA Earth

Offline
Are you sure that is it? Dont you need to modify the code somewhere else? Or is that just for experience.
_________________________
If you want me to punch you in the nuts go to:
http://www.AnmanIndustries.com

I'll do it for free too. Enjoy.

Top
#17443 - 06/13/08 08:46 AM Re: stupid question about gold in DK [Re: AnmanIndustries]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
Well from what he said, it sounds like his limiter has reached maximum. So that means its in the database. So yes I just owned Anman.
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#17445 - 06/14/08 10:29 PM Re: stupid question about gold in DK [Re: Fayt]
AnmanIndustries
Cookie Crisp
*****

Registered: 03/21/05
Posts: 2876
Loc: Planet Stupid, AKA Earth

Offline
Owned me? Im not really fussed about that sort of stuff. But really, how long have I been doing this over you?

In fight.php,

Look for this:

if ($userrow["gold"] + $gold < 16777215)

And then change the last number to suit your maximum gold.

Follies, you need to learn to be arrogant when you KNOW you are right.
_________________________
If you want me to punch you in the nuts go to:
http://www.AnmanIndustries.com

I'll do it for free too. Enjoy.

Top
#17446 - 06/14/08 11:16 PM Re: stupid question about gold in DK [Re: AnmanIndustries]
Jamin Administrator
Cookie Crisp
****

Registered: 02/25/05
Posts: 2649
Loc: Texas

Offline
Does mysql wrap the column back to zero if you try to overload it or something? I thought it just left it at the maximum amount for the column type... I wonder why I put that check in there in the first place. Since I can't imagine why it's really necessary, given that I'm pretty damn sure mysql would have just ignored the higher value anyway.

---Jamin
_________________________
Diablo 3 Lead Designer Jay Wilson:
“The development of a Blizzard game is sometimes a long affair. This is how long it took us to be ready.”

Top
#17451 - 06/15/08 04:50 AM Re: stupid question about gold in DK [Re: Jamin]
AnmanIndustries
Cookie Crisp
*****

Registered: 03/21/05
Posts: 2876
Loc: Planet Stupid, AKA Earth

Offline
I ignores the higher value and just maxes the field. Doesnt wrap to zero.

The check in there is just for user feed back. If you reach max gold or experience it tells the user, YOU HAVE REACHed THE MAXIMUM AMOUNT OF GOLD or something.
_________________________
If you want me to punch you in the nuts go to:
http://www.AnmanIndustries.com

I'll do it for free too. Enjoy.

Top
#17453 - 06/15/08 08:42 AM Re: stupid question about gold in DK [Re: AnmanIndustries]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
If you used smallint (3) and bigint (50) which one do you think is going to be bigger?
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#17454 - 06/15/08 01:42 PM Re: stupid question about gold in DK [Re: Fayt]
CriticaL
Malt-o-Meal


Registered: 06/07/08
Posts: 8

Offline
now i use bigint 255 and i have a 10,000,000,000,000 gold in my char
Top
#17455 - 06/15/08 02:55 PM Re: stupid question about gold in DK [Re: CriticaL]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
Ok then your good
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#17461 - 06/15/08 09:51 PM Re: stupid question about gold in DK [Re: Fayt]
AnmanIndustries
Cookie Crisp
*****

Registered: 03/21/05
Posts: 2876
Loc: Planet Stupid, AKA Earth

Offline
Oh wait, the check also reduces the amount of gold you make from battle if its over that set number.
_________________________
If you want me to punch you in the nuts go to:
http://www.AnmanIndustries.com

I'll do it for free too. Enjoy.

Top
#17463 - 06/15/08 10:09 PM Re: stupid question about gold in DK [Re: AnmanIndustries]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
You are correct
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
Page 1 of 3 123>


Hop to:

se7enet

Barack Obama Logo