display modelviewer button for spells with transform, mount or shapeshift

parsed SpellShapeshiftForm.dbc to db and added Horde displayIds manually
use table for modelIds and spells speciffic to this form
This commit is contained in:
Sarjuuk
2013-06-28 21:47:08 +02:00
parent bbfc4f5820
commit 4c974f87c5
10 changed files with 122 additions and 25 deletions

View File

@@ -84,6 +84,17 @@ class CreatureList extends BaseType
return $x;
}
public function getRandomModelId()
{
$data = [];
for ($i = 1; $i < 5; $i++)
if ($_ = $this->curTpl['modelid'.$i])
$data[] = $_;
return !$data ? 0 : $data[array_rand($data)];
}
public function getListviewData() { }
public function addGlobalsToJScript(&$refs) { }
public function addRewardsToJScript(&$refs) { }