db tool: creatures

This commit is contained in:
Ulf Gebhardt 2014-10-19 04:19:30 +02:00
parent 69bfd67c15
commit 9020f91852
5 changed files with 57 additions and 1 deletions

View File

@ -0,0 +1,13 @@
<?php
namespace DBD;
class DB_CREATURE_TEMPLATE_CREATURE_AI_SCRIPTS extends \SYSTEM\DB\QP {
protected static function query(){
return new \SYSTEM\DB\QQuery(get_class(),
//pg
'',
//mys
'SELECT * FROM creature_ai_scripts WHERE `creature_id` = ?;',
new \DBD\mangos_world()
);}}

View File

@ -0,0 +1,13 @@
<?php
namespace DBD;
class DB_CREATURE_TEMPLATE_CREATURE_EQUIP_TEMPLATE extends \SYSTEM\DB\QP {
protected static function query(){
return new \SYSTEM\DB\QQuery(get_class(),
//pg
'',
//mys
'SELECT * FROM creature_equip_template WHERE `Entry` = ?;',
new \DBD\mangos_world()
);}}

View File

@ -0,0 +1,13 @@
<?php
namespace DBD;
class DB_CREATURE_TEMPLATE_CREATURE_EQUIP_TEMPLATE_RAW extends \SYSTEM\DB\QP {
protected static function query(){
return new \SYSTEM\DB\QQuery(get_class(),
//pg
'',
//mys
'SELECT * FROM creature_equip_template_raw WHERE `Entry` = ?;',
new \DBD\mangos_world()
);}}

View File

@ -0,0 +1,13 @@
<?php
namespace DBD;
class DB_CREATURE_TEMPLATE_CREATURE_MOVEMENT_TEMPLATE extends \SYSTEM\DB\QP {
protected static function query(){
return new \SYSTEM\DB\QQuery(get_class(),
//pg
'',
//mys
'SELECT * FROM creature_movement_template WHERE `Entry` = ?;',
new \DBD\mangos_world()
);}}

View File

@ -11,7 +11,11 @@ class saimod_mojotrollz_db_creature extends \SYSTEM\SAI\SaiModule {
'\DBD\DB_CREATURE_TEMPLATE_CREATURE_ONKILL_REPUTATION' => array('key' => 'Entry', 'caption' => 'Onkill Reputation'),
'\DBD\DB_CREATURE_TEMPLATE_CREATURE_LINKING_TEMPLATE' => array('key' => 'Entry', 'caption' => 'Linking Template'),
'\DBD\DB_CREATURE_TEMPLATE_CREATURE_INVOLVEMENT_RELATION' => array('key' => 'Entry', 'caption' => 'Involvement Relation'),
'\DBD\DB_CREATURE_TEMPLATE_CREATURE_CREATURE' => array('key' => 'Entry', 'caption' => 'Spawns'),));
'\DBD\DB_CREATURE_TEMPLATE_CREATURE_CREATURE' => array('key' => 'Entry', 'caption' => 'Spawns'),
'\DBD\DB_CREATURE_TEMPLATE_CREATURE_EQUIP_TEMPLATE_RAW' => array('key' => 'Entry', 'caption' => 'Equip Template Raw'),
'\DBD\DB_CREATURE_TEMPLATE_CREATURE_EQUIP_TEMPLATE' => array('key' => 'Entry', 'caption' => 'Equip Template'),
'\DBD\DB_CREATURE_TEMPLATE_CREATURE_AI_SCRIPTS' => array('key' => 'Entry', 'caption' => 'AI Scripts'),
'\DBD\DB_CREATURE_TEMPLATE_CREATURE_MOVEMENT_TEMPLATE' => array('key' => 'Entry', 'caption' => 'Movement Template'),));
$result = '<table class="sai_table">';
$base_row = \DBD\DB_CREATURE_TEMPLATE_CREATURE::Q1(array($id));