Shadowss / TravianZ-by-Shadow

TRY TO USE https://github.com/Shadowss/TravianZ
http://travian.shadowss.ro
18 stars 31 forks source link

Fix Hero bug start points! #34

Closed gm4st3r closed 10 years ago

gm4st3r commented 10 years ago

Fix this (When you start the hero must have 5 points. Now it has 50 points)

Templates/Build/37_train.tpl

find line 601 and change this:

mysql_query("INSERT INTO ".TB_PREFIX."hero (uid, wref, regeneration, unit, name, level, points, experience, dead, health, attack, defence, attackbonus, defencebonus, trainingtime, autoregen, intraining) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '11', '".addslashes($session->username)."', '0', '50', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u11['time'] / SPEED)*3))."', '50', '1')");

for this:

mysql_query("INSERT INTO ".TB_PREFIX."hero (uid, wref, regeneration, unit, name, level, points, experience, dead, health, attack, defence, attackbonus, defencebonus, trainingtime, autoregen, intraining) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '11', '".addslashes($session->username)."', '0', '5', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u11['time'] / SPEED)*3))."', '50', '1')");

find line 633 and change this:

mysql_query("INSERT INTO ".TB_PREFIX."hero (uid, wref, regeneration, unit, name, level, points, experience, dead, health, attack, defence, attackbonus, defencebonus, trainingtime, autoregen, intraining) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '13', '".addslashes($session->username)."', '0', '50', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u13['time'] / SPEED)*3))."', '50', '1')");

for this:

mysql_query("INSERT INTO ".TB_PREFIX."hero (uid, wref, regeneration, unit, name, level, points, experience, dead, health, attack, defence, attackbonus, defencebonus, trainingtime, autoregen, intraining) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '13', '".addslashes($session->username)."', '0', '5', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u13['time'] / SPEED)*3))."', '50', '1')");

Shadowss commented 10 years ago

fixed thanks