Jump to content

Setting default bank amounts for new players


Recommended Posts

Okay so if youre confused by the title what I am trying to do is to make it so that everytime a new player who has never been on our server before joins in, it puts a defined amount of money into his bank. I only ever want it to happen once per new player. How can I do this? 

Link to comment
Share on other sites

Make sure you have access to your MySQL Database.

I'm assuming you have Souls Single Currency 2.0 for this to work. Run this sql query:

CREATE TRIGGER `bankingIssueFix` AFTER INSERT ON `player_data`
 FOR EACH ROW INSERT INTO banking_data
( PlayerUID, PlayerName, BankSaldo,  LastUpdated)
VALUES
(NEW.PlayerUID, NEW.PlayerName, xxxxx, NOW())

Where the "xxxxx" is, enter the sum you wish for the new player to receive.

SOURCE: 

 

Link to comment
Share on other sites

2 hours ago, Shawn said:

Make sure you have access to your MySQL Database.

I'm assuming you have Souls Single Currency 2.0 for this to work. Run this sql query:


CREATE TRIGGER `bankingIssueFix` AFTER INSERT ON `player_data`
 FOR EACH ROW INSERT INTO banking_data
( PlayerUID, PlayerName, BankSaldo,  LastUpdated)
VALUES
(NEW.PlayerUID, NEW.PlayerName, xxxxx, NOW())

Where the "xxxxx" is, enter the sum you wish for the new player to receive.

SOURCE: 

 

I have done this, and when I spectate new joining players it shows them as having $50,000 which is what I defined, however I use ESSV2 and when players go to select a class and a spawn position it wipes their banks. 

Link to comment
Share on other sites

On 03/05/2016 at 9:27 PM, rentiger1112 said:

I have done this, and when I spectate new joining players it shows them as having $50,000 which is what I defined, however I use ESSV2 and when players go to select a class and a spawn position it wipes their banks. 

 

Because ESSV2 has the option to spawn players with coins and the default is 0

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Discord

×
×
  • Create New...