Closed gm4st3r closed 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')");
uid
wref
regeneration
unit
name
level
points
experience
dead
health
attack
defence
attackbonus
defencebonus
trainingtime
autoregen
intraining
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')");
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')");
fixed thanks
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')");