31
General SMFShop Discussion / Re: Problem with my SMF Shop
« on: March 07, 2007, 09:53:35 am »
try reinstalling the shop
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
$this->skill[1] = new skill; //Required for making new skills.
function trainMenu() {
global $txt, $scripturl;
$date = date('z');
if ($date < 10) {
$date = '00'.$date;
}
elseif ($date < 100) {
$date = '0'.$date;
}
$date = date('y').$date.date('H');
if ($this->training == 1) {
if ($date > ($this->training_date($this->trainingend))){
$middlestring = $txt['pets_course_finish2'];
$command = $txt['pets_train_pet'];
$returnstring = "<form method='post' action='".$scripturl."?action=shop;do=pets;type=train;pet=".$this->id."'> ";
$returnstring .= $middlestring;
$returnstring .= " <input type='submit' value='{$command}'></form>";
}
else{
$middlestring = sprintf($txt['pets_course_taking'], $this->training_date($this->trainingend));
$command = $txt['pets_train_pet'];
$returnstring = "<form method='post' action='".$scripturl."?action=shop;do=pets;type=train;pet=".$this->id."'> ";
$returnstring .= $middlestring;
}
}
else {
$middlestring = $txt['pets_train_cost'].$this->calcTrainCost();
$command = $txt['pets_train'];
$returnstring = "<form method='post' action='".$scripturl."?action=shop;do=pets;type=train;pet=".$this->id."'> ";
$returnstring .= $middlestring;
$returnstring .= " <input type='submit' value='{$command}'></form>";
}
return $returnstring;
}
$txt['pets_course_finish2'] = 'Your pet has completed its course!';
You mean like a combat system? That would be totally awesome... because it means I wouldn't have to do it. XD!