Server Help

Bot Questions - help with creds

Anonymous - Sat Oct 08, 2005 4:52 pm
Post subject: help with creds
for the CREDS and BUY bot by sos, how do you rest the creds without using !creset? I want to manually do them are the info stored some where or what?
Purge - Sat Oct 08, 2005 6:02 pm
Post subject:
Do !ctake on all the player's creds.
BDwinsAlt - Sun Nov 13, 2005 12:48 am
Post subject:
Use the one where it takes points, that way you can score-reset the zone and it's all good...

Or: if there is a .dat file you can delete all the entries in it. Make it a blank file. It may be called creds.dat
D1st0rt - Mon Nov 14, 2005 1:22 pm
Post subject:
Why don't you want to use !creset, it should have the same effect as deleting all of the entries in whatever file is used for storage.
Purge - Mon Nov 14, 2005 3:33 pm
Post subject:
If you !creset, it'll remove everyone's creds, not just the player that he wants.
Anonymous - Mon Nov 14, 2005 4:11 pm
Post subject: Re: help with creds
Anonymous wrote:
for the CREDS and BUY bot by sos, how do you rest the creds without using !creset? I want to manually do them are the info stored some where or what?

I'm thinking that the data is stored in the program it's self not on a .ini or anything. So the way I can think of editing the amount of creds every body has is by using the comands. If you want to be able to edit the variables manually just edit the SRC with the variables reading and writing onto a .ini.
D1st0rt - Tue Nov 15, 2005 12:03 am
Post subject:
I'm still not exactly sure what you are trying to do. Yes, each player's credit amounts are stored in the program, but they are saved to and loaded from a data file in between sessions. If you want to set everyone's credit amount to 0, use !creset. If you want to set everyone's credit amount to a non-zero number n, use !creset n and then !cgive for each player you want to have n credits.

You could technically also go into the file and change the number of credits everyone has, but everything is stored as binary data so you would first have to figure out what address the credits are stored at for each player.

If you're talking about changing the number of credits they get per kill or goal or whatever, that's all in credits.ini

Hope this helped towards whatever you're trying to accomplish
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group