Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[v1.3] Academy of gold coins
#4
@felipe, stop using others scripts, first, this is in romanian: $error = 'Insuficiente materiale prime'; meaning not enough resources.
Second, visit php.net, there's more information than you can learn. Why not doing it on your own ?

It's just a simple database structure, assuming 1 to N relations, of you can just increment $user['coins'] from db if you don't want a separate table.

Knowing the fact that N noblemen need (N*(N+1))/2 coins, you just need to compare the number of minted gold coins with the result from that equation. If there are more coins, just check the resources and the farm space, and train one noble.

Whats so hard... damn!
Reply


Messages In This Thread
Academy of gold coins - by Felipe Medeiros - 27.12.2011, 17:34
RE: Academy of gold coins - by SlimShady95 - 27.12.2011, 17:47
RE: Academy of gold coins - by sinner - 28.12.2011, 01:35



Users browsing this thread: 1 Guest(s)