iopietro / Travianz-Legacy

Join our Discord Server: https://discordapp.com/invite/9fbJKP9 | New repo: https://github.com/iopietro/Travianz
GNU General Public License v3.0
160 stars 94 forks source link

i want to change some logic #587

Closed ejamshidiasl closed 5 years ago

ejamshidiasl commented 5 years ago

hello i want to change these things: which files and where i must edit?

1)add hero to player when register (to hero and units table) is there function or i must do with query? 2)increase resource field level when player register (from php not sql)

iopietro commented 5 years ago

You have to put your code between https://github.com/iopietro/Travianz/blob/8edd6a8d11cbff673282587a412fa987aaaaf571/GameEngine/Account.php#L148 and https://github.com/iopietro/Travianz/blob/8edd6a8d11cbff673282587a412fa987aaaaf571/GameEngine/Account.php#L149

You have to perform a query to insert the hero and update the resource fields

ejamshidiasl commented 5 years ago

ok i will test it