Allods Developers Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Ultra simple guides for 4.0: 002: modifying gold

This series of guides is for people who are not confident with advanced techniques yet and just want to modify some basic elements of the game. Although I'm sure many members of the community will know these by heart, I feel new members might appreciate simple guides like these.

WARNING ! DO THIS MODIFICATION WHEN YOUR CHARACTER IS DISCONNECTED ! YOU DON'T NEED TO EXIT YOUR CLIENT, YOU JUST NEED TO DISCONNECT / LOG OUT. IF YOU DO THIS MODIFICATION IN THE CHARACTER SELECTION OR IN THE MAIN TITLE OF THE CLIENT THAT IS GOOD, BUT IT WILL NOT WORK IF YOUR CHARACTER IS ONLINE !

This time we are not going to go in the avatar table. Indeed, while in older version like 1.0 the gold was stored in the avatar table, since the introduction of the reincarnation mechanic, the avatars are joined into a soul which has an id. It's why the money is shared across your reincarnations and the progenitor (original character).

Let's go to the soul table !

1757844197898.png

The soul

The soul works like this: let's say you have an empty server and in it you have 3 characters, the ids are auto incremented so we can imagine that your first character had an id of 1, the second an id of 2, the third an id of 3. When this character is created, it creates a soul with an id that is the same as its avatar, which is 3. When you want to find the soul in the soul table, you should look for the id 3. A soul is created each time you create a character (in the main menu) but when you create an incarnation, the soul id stays the same and it just create a new avatar without creating a soul.

Inside the soul table,, scroll a bit to the right, you should be able to see a money field, which is the one you want to edit. Don't concern yourself with the money_grow fields, I can't say for sure but they are probably mechanisms to inform if a player is cheating (woah there young man you gained 100 000 gold after playing for 2 hours ?).

Just like the experience it's simply a number (called an integer in programming) that you can change at will. remember that it tracks from the copper, if you set 1 you have a copper. If you set a hundred you will have a silver, if you set 1 00 00 you will have a gold (don't put the spaces) so if you need 100 000 gold you will have to put this value

1000000000

as an example, currently i have 5917 gold

1757847805481.png

this translates to the money field being like this in the database
1757847879461.png
 

Attachments

  • 1757844165107.png
    1757844165107.png
    8.4 KB · Views: 0
  • 1757847849408.png
    1757847849408.png
    3.1 KB · Views: 0
Back
Top