LCKB
Cash at start for a new char - Printable Version

+- LCKB (https://lckb.dev/forum)
+-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109)
+--- Forum: Guides & Help Section (https://lckb.dev/forum/forumdisplay.php?fid=193)
+---- Forum: Help & Support (https://lckb.dev/forum/forumdisplay.php?fid=157)
+----- Forum: General Support (https://lckb.dev/forum/forumdisplay.php?fid=203)
+------ Forum: Solved topics (https://lckb.dev/forum/forumdisplay.php?fid=159)
+------ Thread: Cash at start for a new char (/showthread.php?tid=4626)



- fantasymerlin - 01-31-2016


Hello,

 

how can I set a event that gives a new registered user for example 5000 cash at start?

 

Events I can make in mysql but I don´t have a code for this function.

 

Thank you very much




- pwesty - 01-31-2016

If it's ep4 you can write the code for it to add the cash into while creating the new char ^^




- fantasymerlin - 01-31-2016


Do you mean into the source code?

 

No this I don´t want. I want it as a manualy and variable event where I can change the value and the time period when the cash should be come.

 

I do this with a start money about 5kk and this works fine. Only a new char get the money about 5kk at lvl 1 and if this has 100 gold. And so I want this with cash too.




- peter3301 - 02-01-2016

New User == Account or Character?
Account you need to edit the table (is the easiest way without knowledge) Rightklick on bg_user (_auth database) scroll down to cash and set the Default to your value.




- pwesty - 02-01-2016



New User == Account or Character?

Account you need to edit the table (is the easiest way without knowledge) Rightklick on bg_user (_auth database) scroll down to cash and set the Default to your value.

Yea, go into bg_user hit ctrl+d "goes into design mode" and edit the value of cash, to 5000 or whatever you please ^^..




- fantasymerlin - 02-01-2016


Thank You very much.

 

This works for me.




- ZaTii - 02-01-2016

Hi there.

As your topic has been answered, and from this topic you can solve your problem or already have I am going to move this topic into our Solved section database.

Thankyou,

-LCKB Staff