diff --git a/mojotrollz/sai/autoload.inc.php b/mojotrollz/sai/autoload.inc.php index b8c0d98..090b3ba 100644 --- a/mojotrollz/sai/autoload.inc.php +++ b/mojotrollz/sai/autoload.inc.php @@ -1,16 +1,9 @@ query('SELECT * FROM creature_template LIMIT 100;'); - - $result = ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - '; - while($row = $res->next()){ - $result .= ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - '; - } - $result .= '
entryKillCredit1KillCredit2modelid_1modelid_2namesubnamegossip_menu_idminlevelmaxlevelminhealthmaxhealthminmanamaxmanaarmorfaction_Afaction_Hnpcflagspeed_walkspeed_runscalerankmindmgmaxdmgdmgschoolattackpowerdmg_multiplierbaseattacktimerangeattacktimeunit_classunit_flagsdynamicflagsfamilytrainer_typetrainer_spelltrainer_classtrainer_raceminrangedmgmaxrangedmgrangedattackpowertypetype_flagslootidpickpocketlootskinlootresistance1resistance2resistance3resistance4resistance5resistance6PetSpellDataIdmingoldmaxgoldAINameMovementTypeInhabitTypeCivilianRacialLeaderRegenHealthequipment_idtrainer_idvendor_idmechanic_immune_maskflags_extraScriptName
'.$row['entry'].''.$row['KillCredit1'].''.$row['KillCredit2'].''.$row['modelid_1'].''.$row['modelid_2'].''.$row['name'].''.$row['subname'].''.$row['gossip_menu_id'].''.$row['minlevel'].''.$row['maxlevel'].''.$row['minhealth'].''.$row['maxhealth'].''.$row['minmana'].''.$row['maxmana'].''.$row['armor'].''.$row['faction_A'].''.$row['faction_H'].''.$row['npcflag'].''.$row['speed_walk'].''.$row['speed_run'].''.$row['scale'].''.$row['rank'].''.$row['mindmg'].''.$row['maxdmg'].''.$row['dmgschool'].''.$row['attackpower'].''.$row['dmg_multiplier'].''.$row['baseattacktime'].''.$row['rangeattacktime'].''.$row['unit_class'].''.$row['unit_flags'].''.$row['dynamicflags'].''.$row['family'].''.$row['trainer_type'].''.$row['trainer_spell'].''.$row['trainer_class'].''.$row['trainer_race'].''.$row['minrangedmg'].''.$row['maxrangedmg'].''.$row['rangedattackpower'].''.$row['type'].''.$row['type_flags'].''.$row['lootid'].''.$row['pickpocketloot'].''.$row['skinloot'].''.$row['resistance1'].''.$row['resistance2'].''.$row['resistance3'].''.$row['resistance4'].''.$row['resistance5'].''.$row['resistance6'].''.$row['PetSpellDataId'].''.$row['mingold'].''.$row['maxgold'].''.$row['AIName'].''.$row['MovementType'].''.$row['InhabitType'].''.$row['Civilian'].''.$row['RacialLeader'].''.$row['RegenHealth'].''.$row['equipment_id'].''.$row['trainer_id'].''.$row['vendor_id'].''.$row['mechanic_immune_mask'].''.$row['flags_extra'].''.$row['ScriptName'].'
'; - return $result;} - public static function html_li_menu(){return '
  • DB:Commands
  • ';} - public static function right_public(){return false;} - public static function right_right(){return \SYSTEM\SECURITY\Security::check(\SYSTEM\SECURITY\RIGHTS::SYS_SAI);} - public static function sai_mod_saimod_mojotrollz_db_command_flag_js(){return \SYSTEM\LOG\JsonResult::toString(array());} - public static function sai_mod_saimod_mojotrollz_db_command_flag_css(){} - -} \ No newline at end of file diff --git a/mojotrollz/sai/saimod_mojotrollz_db_event/saimod_mojotrollz_db_event.php b/mojotrollz/sai/saimod_mojotrollz_db_event/saimod_mojotrollz_db_event.php deleted file mode 100644 index 6d0a548..0000000 --- a/mojotrollz/sai/saimod_mojotrollz_db_event/saimod_mojotrollz_db_event.php +++ /dev/null @@ -1,153 +0,0 @@ -query('SELECT * FROM creature_template LIMIT 100;'); - - $result = ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - '; - while($row = $res->next()){ - $result .= ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - '; - } - $result .= '
    entryKillCredit1KillCredit2modelid_1modelid_2namesubnamegossip_menu_idminlevelmaxlevelminhealthmaxhealthminmanamaxmanaarmorfaction_Afaction_Hnpcflagspeed_walkspeed_runscalerankmindmgmaxdmgdmgschoolattackpowerdmg_multiplierbaseattacktimerangeattacktimeunit_classunit_flagsdynamicflagsfamilytrainer_typetrainer_spelltrainer_classtrainer_raceminrangedmgmaxrangedmgrangedattackpowertypetype_flagslootidpickpocketlootskinlootresistance1resistance2resistance3resistance4resistance5resistance6PetSpellDataIdmingoldmaxgoldAINameMovementTypeInhabitTypeCivilianRacialLeaderRegenHealthequipment_idtrainer_idvendor_idmechanic_immune_maskflags_extraScriptName
    '.$row['entry'].''.$row['KillCredit1'].''.$row['KillCredit2'].''.$row['modelid_1'].''.$row['modelid_2'].''.$row['name'].''.$row['subname'].''.$row['gossip_menu_id'].''.$row['minlevel'].''.$row['maxlevel'].''.$row['minhealth'].''.$row['maxhealth'].''.$row['minmana'].''.$row['maxmana'].''.$row['armor'].''.$row['faction_A'].''.$row['faction_H'].''.$row['npcflag'].''.$row['speed_walk'].''.$row['speed_run'].''.$row['scale'].''.$row['rank'].''.$row['mindmg'].''.$row['maxdmg'].''.$row['dmgschool'].''.$row['attackpower'].''.$row['dmg_multiplier'].''.$row['baseattacktime'].''.$row['rangeattacktime'].''.$row['unit_class'].''.$row['unit_flags'].''.$row['dynamicflags'].''.$row['family'].''.$row['trainer_type'].''.$row['trainer_spell'].''.$row['trainer_class'].''.$row['trainer_race'].''.$row['minrangedmg'].''.$row['maxrangedmg'].''.$row['rangedattackpower'].''.$row['type'].''.$row['type_flags'].''.$row['lootid'].''.$row['pickpocketloot'].''.$row['skinloot'].''.$row['resistance1'].''.$row['resistance2'].''.$row['resistance3'].''.$row['resistance4'].''.$row['resistance5'].''.$row['resistance6'].''.$row['PetSpellDataId'].''.$row['mingold'].''.$row['maxgold'].''.$row['AIName'].''.$row['MovementType'].''.$row['InhabitType'].''.$row['Civilian'].''.$row['RacialLeader'].''.$row['RegenHealth'].''.$row['equipment_id'].''.$row['trainer_id'].''.$row['vendor_id'].''.$row['mechanic_immune_mask'].''.$row['flags_extra'].''.$row['ScriptName'].'
    '; - return $result;} - public static function html_li_menu(){return '
  • DB:Event
  • ';} - public static function right_public(){return false;} - public static function right_right(){return \SYSTEM\SECURITY\Security::check(\SYSTEM\SECURITY\RIGHTS::SYS_SAI);} - public static function sai_mod_saimod_mojotrollz_db_event_flag_js(){return \SYSTEM\LOG\JsonResult::toString(array());} - public static function sai_mod_saimod_mojotrollz_db_event_flag_css(){} - -} \ No newline at end of file diff --git a/mojotrollz/sai/saimod_mojotrollz_db_gossip/saimod_mojotrollz_db_gossip.php b/mojotrollz/sai/saimod_mojotrollz_db_gossip/saimod_mojotrollz_db_gossip.php deleted file mode 100644 index c18158c..0000000 --- a/mojotrollz/sai/saimod_mojotrollz_db_gossip/saimod_mojotrollz_db_gossip.php +++ /dev/null @@ -1,153 +0,0 @@ -query('SELECT * FROM creature_template LIMIT 100;'); - - $result = ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - '; - while($row = $res->next()){ - $result .= ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - '; - } - $result .= '
    entryKillCredit1KillCredit2modelid_1modelid_2namesubnamegossip_menu_idminlevelmaxlevelminhealthmaxhealthminmanamaxmanaarmorfaction_Afaction_Hnpcflagspeed_walkspeed_runscalerankmindmgmaxdmgdmgschoolattackpowerdmg_multiplierbaseattacktimerangeattacktimeunit_classunit_flagsdynamicflagsfamilytrainer_typetrainer_spelltrainer_classtrainer_raceminrangedmgmaxrangedmgrangedattackpowertypetype_flagslootidpickpocketlootskinlootresistance1resistance2resistance3resistance4resistance5resistance6PetSpellDataIdmingoldmaxgoldAINameMovementTypeInhabitTypeCivilianRacialLeaderRegenHealthequipment_idtrainer_idvendor_idmechanic_immune_maskflags_extraScriptName
    '.$row['entry'].''.$row['KillCredit1'].''.$row['KillCredit2'].''.$row['modelid_1'].''.$row['modelid_2'].''.$row['name'].''.$row['subname'].''.$row['gossip_menu_id'].''.$row['minlevel'].''.$row['maxlevel'].''.$row['minhealth'].''.$row['maxhealth'].''.$row['minmana'].''.$row['maxmana'].''.$row['armor'].''.$row['faction_A'].''.$row['faction_H'].''.$row['npcflag'].''.$row['speed_walk'].''.$row['speed_run'].''.$row['scale'].''.$row['rank'].''.$row['mindmg'].''.$row['maxdmg'].''.$row['dmgschool'].''.$row['attackpower'].''.$row['dmg_multiplier'].''.$row['baseattacktime'].''.$row['rangeattacktime'].''.$row['unit_class'].''.$row['unit_flags'].''.$row['dynamicflags'].''.$row['family'].''.$row['trainer_type'].''.$row['trainer_spell'].''.$row['trainer_class'].''.$row['trainer_race'].''.$row['minrangedmg'].''.$row['maxrangedmg'].''.$row['rangedattackpower'].''.$row['type'].''.$row['type_flags'].''.$row['lootid'].''.$row['pickpocketloot'].''.$row['skinloot'].''.$row['resistance1'].''.$row['resistance2'].''.$row['resistance3'].''.$row['resistance4'].''.$row['resistance5'].''.$row['resistance6'].''.$row['PetSpellDataId'].''.$row['mingold'].''.$row['maxgold'].''.$row['AIName'].''.$row['MovementType'].''.$row['InhabitType'].''.$row['Civilian'].''.$row['RacialLeader'].''.$row['RegenHealth'].''.$row['equipment_id'].''.$row['trainer_id'].''.$row['vendor_id'].''.$row['mechanic_immune_mask'].''.$row['flags_extra'].''.$row['ScriptName'].'
    '; - return $result;} - public static function html_li_menu(){return '
  • DB:Gossip
  • ';} - public static function right_public(){return false;} - public static function right_right(){return \SYSTEM\SECURITY\Security::check(\SYSTEM\SECURITY\RIGHTS::SYS_SAI);} - public static function sai_mod_saimod_mojotrollz_db_gossip_flag_js(){return \SYSTEM\LOG\JsonResult::toString(array());} - public static function sai_mod_saimod_mojotrollz_db_gossip_flag_css(){} - -} \ No newline at end of file diff --git a/mojotrollz/sai/saimod_mojotrollz_db_loot/saimod_mojotrollz_db_loot.php b/mojotrollz/sai/saimod_mojotrollz_db_loot/saimod_mojotrollz_db_loot.php deleted file mode 100644 index a1917c5..0000000 --- a/mojotrollz/sai/saimod_mojotrollz_db_loot/saimod_mojotrollz_db_loot.php +++ /dev/null @@ -1,153 +0,0 @@ -query('SELECT * FROM creature_template LIMIT 100;'); - - $result = ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - '; - while($row = $res->next()){ - $result .= ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - '; - } - $result .= '
    entryKillCredit1KillCredit2modelid_1modelid_2namesubnamegossip_menu_idminlevelmaxlevelminhealthmaxhealthminmanamaxmanaarmorfaction_Afaction_Hnpcflagspeed_walkspeed_runscalerankmindmgmaxdmgdmgschoolattackpowerdmg_multiplierbaseattacktimerangeattacktimeunit_classunit_flagsdynamicflagsfamilytrainer_typetrainer_spelltrainer_classtrainer_raceminrangedmgmaxrangedmgrangedattackpowertypetype_flagslootidpickpocketlootskinlootresistance1resistance2resistance3resistance4resistance5resistance6PetSpellDataIdmingoldmaxgoldAINameMovementTypeInhabitTypeCivilianRacialLeaderRegenHealthequipment_idtrainer_idvendor_idmechanic_immune_maskflags_extraScriptName
    '.$row['entry'].''.$row['KillCredit1'].''.$row['KillCredit2'].''.$row['modelid_1'].''.$row['modelid_2'].''.$row['name'].''.$row['subname'].''.$row['gossip_menu_id'].''.$row['minlevel'].''.$row['maxlevel'].''.$row['minhealth'].''.$row['maxhealth'].''.$row['minmana'].''.$row['maxmana'].''.$row['armor'].''.$row['faction_A'].''.$row['faction_H'].''.$row['npcflag'].''.$row['speed_walk'].''.$row['speed_run'].''.$row['scale'].''.$row['rank'].''.$row['mindmg'].''.$row['maxdmg'].''.$row['dmgschool'].''.$row['attackpower'].''.$row['dmg_multiplier'].''.$row['baseattacktime'].''.$row['rangeattacktime'].''.$row['unit_class'].''.$row['unit_flags'].''.$row['dynamicflags'].''.$row['family'].''.$row['trainer_type'].''.$row['trainer_spell'].''.$row['trainer_class'].''.$row['trainer_race'].''.$row['minrangedmg'].''.$row['maxrangedmg'].''.$row['rangedattackpower'].''.$row['type'].''.$row['type_flags'].''.$row['lootid'].''.$row['pickpocketloot'].''.$row['skinloot'].''.$row['resistance1'].''.$row['resistance2'].''.$row['resistance3'].''.$row['resistance4'].''.$row['resistance5'].''.$row['resistance6'].''.$row['PetSpellDataId'].''.$row['mingold'].''.$row['maxgold'].''.$row['AIName'].''.$row['MovementType'].''.$row['InhabitType'].''.$row['Civilian'].''.$row['RacialLeader'].''.$row['RegenHealth'].''.$row['equipment_id'].''.$row['trainer_id'].''.$row['vendor_id'].''.$row['mechanic_immune_mask'].''.$row['flags_extra'].''.$row['ScriptName'].'
    '; - return $result;} - public static function html_li_menu(){return '
  • DB:Loot
  • ';} - public static function right_public(){return false;} - public static function right_right(){return \SYSTEM\SECURITY\Security::check(\SYSTEM\SECURITY\RIGHTS::SYS_SAI);} - public static function sai_mod_saimod_mojotrollz_db_loot_flag_js(){return \SYSTEM\LOG\JsonResult::toString(array());} - public static function sai_mod_saimod_mojotrollz_db_loot_flag_css(){} - -} \ No newline at end of file diff --git a/mojotrollz/sai/saimod_mojotrollz_db_npc/saimod_mojotrollz_db_npc.php b/mojotrollz/sai/saimod_mojotrollz_db_npc/saimod_mojotrollz_db_npc.php deleted file mode 100644 index 1a440ef..0000000 --- a/mojotrollz/sai/saimod_mojotrollz_db_npc/saimod_mojotrollz_db_npc.php +++ /dev/null @@ -1,153 +0,0 @@ -query('SELECT * FROM creature_template LIMIT 100;'); - - $result = ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - '; - while($row = $res->next()){ - $result .= ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - '; - } - $result .= '
    entryKillCredit1KillCredit2modelid_1modelid_2namesubnamegossip_menu_idminlevelmaxlevelminhealthmaxhealthminmanamaxmanaarmorfaction_Afaction_Hnpcflagspeed_walkspeed_runscalerankmindmgmaxdmgdmgschoolattackpowerdmg_multiplierbaseattacktimerangeattacktimeunit_classunit_flagsdynamicflagsfamilytrainer_typetrainer_spelltrainer_classtrainer_raceminrangedmgmaxrangedmgrangedattackpowertypetype_flagslootidpickpocketlootskinlootresistance1resistance2resistance3resistance4resistance5resistance6PetSpellDataIdmingoldmaxgoldAINameMovementTypeInhabitTypeCivilianRacialLeaderRegenHealthequipment_idtrainer_idvendor_idmechanic_immune_maskflags_extraScriptName
    '.$row['entry'].''.$row['KillCredit1'].''.$row['KillCredit2'].''.$row['modelid_1'].''.$row['modelid_2'].''.$row['name'].''.$row['subname'].''.$row['gossip_menu_id'].''.$row['minlevel'].''.$row['maxlevel'].''.$row['minhealth'].''.$row['maxhealth'].''.$row['minmana'].''.$row['maxmana'].''.$row['armor'].''.$row['faction_A'].''.$row['faction_H'].''.$row['npcflag'].''.$row['speed_walk'].''.$row['speed_run'].''.$row['scale'].''.$row['rank'].''.$row['mindmg'].''.$row['maxdmg'].''.$row['dmgschool'].''.$row['attackpower'].''.$row['dmg_multiplier'].''.$row['baseattacktime'].''.$row['rangeattacktime'].''.$row['unit_class'].''.$row['unit_flags'].''.$row['dynamicflags'].''.$row['family'].''.$row['trainer_type'].''.$row['trainer_spell'].''.$row['trainer_class'].''.$row['trainer_race'].''.$row['minrangedmg'].''.$row['maxrangedmg'].''.$row['rangedattackpower'].''.$row['type'].''.$row['type_flags'].''.$row['lootid'].''.$row['pickpocketloot'].''.$row['skinloot'].''.$row['resistance1'].''.$row['resistance2'].''.$row['resistance3'].''.$row['resistance4'].''.$row['resistance5'].''.$row['resistance6'].''.$row['PetSpellDataId'].''.$row['mingold'].''.$row['maxgold'].''.$row['AIName'].''.$row['MovementType'].''.$row['InhabitType'].''.$row['Civilian'].''.$row['RacialLeader'].''.$row['RegenHealth'].''.$row['equipment_id'].''.$row['trainer_id'].''.$row['vendor_id'].''.$row['mechanic_immune_mask'].''.$row['flags_extra'].''.$row['ScriptName'].'
    '; - return $result;} - public static function html_li_menu(){return '
  • DB:NPCs
  • ';} - public static function right_public(){return false;} - public static function right_right(){return \SYSTEM\SECURITY\Security::check(\SYSTEM\SECURITY\RIGHTS::SYS_SAI);} - public static function sai_mod_saimod_mojotrollz_db_npc_flag_js(){return \SYSTEM\LOG\JsonResult::toString(array());} - public static function sai_mod_saimod_mojotrollz_db_npc_flag_css(){} - -} \ No newline at end of file diff --git a/mojotrollz/sai/saimod_mojotrollz_db_object/saimod_mojotrollz_db_object.php b/mojotrollz/sai/saimod_mojotrollz_db_object/saimod_mojotrollz_db_object.php index 696c8a4..134f8b3 100644 --- a/mojotrollz/sai/saimod_mojotrollz_db_object/saimod_mojotrollz_db_object.php +++ b/mojotrollz/sai/saimod_mojotrollz_db_object/saimod_mojotrollz_db_object.php @@ -2,145 +2,15 @@ class saimod_mojotrollz_db_object extends \SYSTEM\SAI\SaiModule { public static function sai_mod_saimod_mojotrollz_db_object(){ $con = new \SYSTEM\DB\Connection(new \DBD\mangos_world()); - $res = $con->query('SELECT * FROM creature_template LIMIT 100;'); + $res = $con->query('SELECT * FROM gameobject_template LIMIT 100;'); $result = ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - '; while($row = $res->next()){ $result .= ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - '; + '; } $result .= '
    entryKillCredit1KillCredit2modelid_1modelid_2namesubnamegossip_menu_idminlevelmaxlevelminhealthmaxhealthminmanamaxmanaarmorfaction_Afaction_Hnpcflagspeed_walkspeed_runscalerankmindmgmaxdmgdmgschoolattackpowerdmg_multiplierbaseattacktimerangeattacktimeunit_classunit_flagsdynamicflagsfamilytrainer_typetrainer_spelltrainer_classtrainer_raceminrangedmgmaxrangedmgrangedattackpowertypetype_flagslootidpickpocketlootskinlootresistance1resistance2resistance3resistance4resistance5resistance6PetSpellDataIdmingoldmaxgoldAINameMovementTypeInhabitTypeCivilianRacialLeaderRegenHealthequipment_idtrainer_idvendor_idmechanic_immune_maskflags_extraScriptName
    '.$row['entry'].''.$row['KillCredit1'].''.$row['KillCredit2'].''.$row['modelid_1'].''.$row['modelid_2'].''.$row['name'].''.$row['subname'].''.$row['gossip_menu_id'].''.$row['minlevel'].''.$row['maxlevel'].''.$row['minhealth'].''.$row['maxhealth'].''.$row['minmana'].''.$row['maxmana'].''.$row['armor'].''.$row['faction_A'].''.$row['faction_H'].''.$row['npcflag'].''.$row['speed_walk'].''.$row['speed_run'].''.$row['scale'].''.$row['rank'].''.$row['mindmg'].''.$row['maxdmg'].''.$row['dmgschool'].''.$row['attackpower'].''.$row['dmg_multiplier'].''.$row['baseattacktime'].''.$row['rangeattacktime'].''.$row['unit_class'].''.$row['unit_flags'].''.$row['dynamicflags'].''.$row['family'].''.$row['trainer_type'].''.$row['trainer_spell'].''.$row['trainer_class'].''.$row['trainer_race'].''.$row['minrangedmg'].''.$row['maxrangedmg'].''.$row['rangedattackpower'].''.$row['type'].''.$row['type_flags'].''.$row['lootid'].''.$row['pickpocketloot'].''.$row['skinloot'].''.$row['resistance1'].''.$row['resistance2'].''.$row['resistance3'].''.$row['resistance4'].''.$row['resistance5'].''.$row['resistance6'].''.$row['PetSpellDataId'].''.$row['mingold'].''.$row['maxgold'].''.$row['AIName'].''.$row['MovementType'].''.$row['InhabitType'].''.$row['Civilian'].''.$row['RacialLeader'].''.$row['RegenHealth'].''.$row['equipment_id'].''.$row['trainer_id'].''.$row['vendor_id'].''.$row['mechanic_immune_mask'].''.$row['flags_extra'].''.$row['ScriptName'].'
    '; return $result;} diff --git a/mojotrollz/sai/saimod_mojotrollz_db_player/saimod_mojotrollz_db_player.php b/mojotrollz/sai/saimod_mojotrollz_db_player/saimod_mojotrollz_db_player.php index 91aaf42..222e2f0 100644 --- a/mojotrollz/sai/saimod_mojotrollz_db_player/saimod_mojotrollz_db_player.php +++ b/mojotrollz/sai/saimod_mojotrollz_db_player/saimod_mojotrollz_db_player.php @@ -1,145 +1,15 @@ query('SELECT * FROM creature_template LIMIT 100;'); + $con = new \SYSTEM\DB\Connection(new \DBD\mangos_chars()); + $res = $con->query('SELECT * FROM characters LIMIT 100;'); $result = ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + '; while($row = $res->next()){ $result .= ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - '; } $result .= '
    entryKillCredit1KillCredit2modelid_1modelid_2namesubnamegossip_menu_idminlevelmaxlevelminhealthmaxhealthminmanamaxmanaarmorfaction_Afaction_Hnpcflagspeed_walkspeed_runscalerankmindmgmaxdmgdmgschoolattackpowerdmg_multiplierbaseattacktimerangeattacktimeunit_classunit_flagsdynamicflagsfamilytrainer_typetrainer_spelltrainer_classtrainer_raceminrangedmgmaxrangedmgrangedattackpowertypetype_flagslootidpickpocketlootskinlootresistance1resistance2resistance3resistance4resistance5resistance6PetSpellDataIdmingoldmaxgoldAINameMovementTypeInhabitTypeCivilianRacialLeaderRegenHealthequipment_idtrainer_idvendor_idmechanic_immune_maskflags_extraScriptNameName
    '.$row['entry'].''.$row['KillCredit1'].''.$row['KillCredit2'].''.$row['modelid_1'].''.$row['modelid_2'].' '.$row['name'].''.$row['subname'].''.$row['gossip_menu_id'].''.$row['minlevel'].''.$row['maxlevel'].''.$row['minhealth'].''.$row['maxhealth'].''.$row['minmana'].''.$row['maxmana'].''.$row['armor'].''.$row['faction_A'].''.$row['faction_H'].''.$row['npcflag'].''.$row['speed_walk'].''.$row['speed_run'].''.$row['scale'].''.$row['rank'].''.$row['mindmg'].''.$row['maxdmg'].''.$row['dmgschool'].''.$row['attackpower'].''.$row['dmg_multiplier'].''.$row['baseattacktime'].''.$row['rangeattacktime'].''.$row['unit_class'].''.$row['unit_flags'].''.$row['dynamicflags'].''.$row['family'].''.$row['trainer_type'].''.$row['trainer_spell'].''.$row['trainer_class'].''.$row['trainer_race'].''.$row['minrangedmg'].''.$row['maxrangedmg'].''.$row['rangedattackpower'].''.$row['type'].''.$row['type_flags'].''.$row['lootid'].''.$row['pickpocketloot'].''.$row['skinloot'].''.$row['resistance1'].''.$row['resistance2'].''.$row['resistance3'].''.$row['resistance4'].''.$row['resistance5'].''.$row['resistance6'].''.$row['PetSpellDataId'].''.$row['mingold'].''.$row['maxgold'].''.$row['AIName'].''.$row['MovementType'].''.$row['InhabitType'].''.$row['Civilian'].''.$row['RacialLeader'].''.$row['RegenHealth'].''.$row['equipment_id'].''.$row['trainer_id'].''.$row['vendor_id'].''.$row['mechanic_immune_mask'].''.$row['flags_extra'].''.$row['ScriptName'].'
    '; diff --git a/mojotrollz/sai/saimod_mojotrollz_db_pool/saimod_mojotrollz_db_pool.php b/mojotrollz/sai/saimod_mojotrollz_db_pool/saimod_mojotrollz_db_pool.php deleted file mode 100644 index 9832941..0000000 --- a/mojotrollz/sai/saimod_mojotrollz_db_pool/saimod_mojotrollz_db_pool.php +++ /dev/null @@ -1,153 +0,0 @@ -query('SELECT * FROM creature_template LIMIT 100;'); - - $result = ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - '; - while($row = $res->next()){ - $result .= ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - '; - } - $result .= '
    entryKillCredit1KillCredit2modelid_1modelid_2namesubnamegossip_menu_idminlevelmaxlevelminhealthmaxhealthminmanamaxmanaarmorfaction_Afaction_Hnpcflagspeed_walkspeed_runscalerankmindmgmaxdmgdmgschoolattackpowerdmg_multiplierbaseattacktimerangeattacktimeunit_classunit_flagsdynamicflagsfamilytrainer_typetrainer_spelltrainer_classtrainer_raceminrangedmgmaxrangedmgrangedattackpowertypetype_flagslootidpickpocketlootskinlootresistance1resistance2resistance3resistance4resistance5resistance6PetSpellDataIdmingoldmaxgoldAINameMovementTypeInhabitTypeCivilianRacialLeaderRegenHealthequipment_idtrainer_idvendor_idmechanic_immune_maskflags_extraScriptName
    '.$row['entry'].''.$row['KillCredit1'].''.$row['KillCredit2'].''.$row['modelid_1'].''.$row['modelid_2'].''.$row['name'].''.$row['subname'].''.$row['gossip_menu_id'].''.$row['minlevel'].''.$row['maxlevel'].''.$row['minhealth'].''.$row['maxhealth'].''.$row['minmana'].''.$row['maxmana'].''.$row['armor'].''.$row['faction_A'].''.$row['faction_H'].''.$row['npcflag'].''.$row['speed_walk'].''.$row['speed_run'].''.$row['scale'].''.$row['rank'].''.$row['mindmg'].''.$row['maxdmg'].''.$row['dmgschool'].''.$row['attackpower'].''.$row['dmg_multiplier'].''.$row['baseattacktime'].''.$row['rangeattacktime'].''.$row['unit_class'].''.$row['unit_flags'].''.$row['dynamicflags'].''.$row['family'].''.$row['trainer_type'].''.$row['trainer_spell'].''.$row['trainer_class'].''.$row['trainer_race'].''.$row['minrangedmg'].''.$row['maxrangedmg'].''.$row['rangedattackpower'].''.$row['type'].''.$row['type_flags'].''.$row['lootid'].''.$row['pickpocketloot'].''.$row['skinloot'].''.$row['resistance1'].''.$row['resistance2'].''.$row['resistance3'].''.$row['resistance4'].''.$row['resistance5'].''.$row['resistance6'].''.$row['PetSpellDataId'].''.$row['mingold'].''.$row['maxgold'].''.$row['AIName'].''.$row['MovementType'].''.$row['InhabitType'].''.$row['Civilian'].''.$row['RacialLeader'].''.$row['RegenHealth'].''.$row['equipment_id'].''.$row['trainer_id'].''.$row['vendor_id'].''.$row['mechanic_immune_mask'].''.$row['flags_extra'].''.$row['ScriptName'].'
    '; - return $result;} - public static function html_li_menu(){return '
  • DB:Pools
  • ';} - public static function right_public(){return false;} - public static function right_right(){return \SYSTEM\SECURITY\Security::check(\SYSTEM\SECURITY\RIGHTS::SYS_SAI);} - public static function sai_mod_saimod_mojotrollz_db_pool_flag_js(){return \SYSTEM\LOG\JsonResult::toString(array());} - public static function sai_mod_saimod_mojotrollz_db_pool_flag_css(){} - -} \ No newline at end of file diff --git a/mojotrollz/sai/saimod_mojotrollz_db_quest/saimod_mojotrollz_db_quest.php b/mojotrollz/sai/saimod_mojotrollz_db_quest/saimod_mojotrollz_db_quest.php new file mode 100644 index 0000000..279412f --- /dev/null +++ b/mojotrollz/sai/saimod_mojotrollz_db_quest/saimod_mojotrollz_db_quest.php @@ -0,0 +1,23 @@ +query('SELECT * FROM quest_template LIMIT 100;'); + + $result = ' + + '; + while($row = $res->next()){ + $result .= ' + + '; + } + $result .= '
    entry
    '.$row['entry'].'
    '; + return $result;} + public static function html_li_menu(){return '
  • DB:Quests
  • ';} + public static function right_public(){return false;} + public static function right_right(){return \SYSTEM\SECURITY\Security::check(\SYSTEM\SECURITY\RIGHTS::SYS_SAI);} + public static function sai_mod_saimod_mojotrollz_db_object_flag_js(){return \SYSTEM\LOG\JsonResult::toString(array());} + public static function sai_mod_saimod_mojotrollz_db_object_flag_css(){} + +} \ No newline at end of file diff --git a/mojotrollz/sai/saimod_mojotrollz_db_reputation/saimod_mojotrollz_db_reputation.php b/mojotrollz/sai/saimod_mojotrollz_db_reputation/saimod_mojotrollz_db_reputation.php deleted file mode 100644 index 315340e..0000000 --- a/mojotrollz/sai/saimod_mojotrollz_db_reputation/saimod_mojotrollz_db_reputation.php +++ /dev/null @@ -1,153 +0,0 @@ -query('SELECT * FROM creature_template LIMIT 100;'); - - $result = ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - '; - while($row = $res->next()){ - $result .= ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - '; - } - $result .= '
    entryKillCredit1KillCredit2modelid_1modelid_2namesubnamegossip_menu_idminlevelmaxlevelminhealthmaxhealthminmanamaxmanaarmorfaction_Afaction_Hnpcflagspeed_walkspeed_runscalerankmindmgmaxdmgdmgschoolattackpowerdmg_multiplierbaseattacktimerangeattacktimeunit_classunit_flagsdynamicflagsfamilytrainer_typetrainer_spelltrainer_classtrainer_raceminrangedmgmaxrangedmgrangedattackpowertypetype_flagslootidpickpocketlootskinlootresistance1resistance2resistance3resistance4resistance5resistance6PetSpellDataIdmingoldmaxgoldAINameMovementTypeInhabitTypeCivilianRacialLeaderRegenHealthequipment_idtrainer_idvendor_idmechanic_immune_maskflags_extraScriptName
    '.$row['entry'].''.$row['KillCredit1'].''.$row['KillCredit2'].''.$row['modelid_1'].''.$row['modelid_2'].''.$row['name'].''.$row['subname'].''.$row['gossip_menu_id'].''.$row['minlevel'].''.$row['maxlevel'].''.$row['minhealth'].''.$row['maxhealth'].''.$row['minmana'].''.$row['maxmana'].''.$row['armor'].''.$row['faction_A'].''.$row['faction_H'].''.$row['npcflag'].''.$row['speed_walk'].''.$row['speed_run'].''.$row['scale'].''.$row['rank'].''.$row['mindmg'].''.$row['maxdmg'].''.$row['dmgschool'].''.$row['attackpower'].''.$row['dmg_multiplier'].''.$row['baseattacktime'].''.$row['rangeattacktime'].''.$row['unit_class'].''.$row['unit_flags'].''.$row['dynamicflags'].''.$row['family'].''.$row['trainer_type'].''.$row['trainer_spell'].''.$row['trainer_class'].''.$row['trainer_race'].''.$row['minrangedmg'].''.$row['maxrangedmg'].''.$row['rangedattackpower'].''.$row['type'].''.$row['type_flags'].''.$row['lootid'].''.$row['pickpocketloot'].''.$row['skinloot'].''.$row['resistance1'].''.$row['resistance2'].''.$row['resistance3'].''.$row['resistance4'].''.$row['resistance5'].''.$row['resistance6'].''.$row['PetSpellDataId'].''.$row['mingold'].''.$row['maxgold'].''.$row['AIName'].''.$row['MovementType'].''.$row['InhabitType'].''.$row['Civilian'].''.$row['RacialLeader'].''.$row['RegenHealth'].''.$row['equipment_id'].''.$row['trainer_id'].''.$row['vendor_id'].''.$row['mechanic_immune_mask'].''.$row['flags_extra'].''.$row['ScriptName'].'
    '; - return $result;} - public static function html_li_menu(){return '
  • DB:Reputation
  • ';} - public static function right_public(){return false;} - public static function right_right(){return \SYSTEM\SECURITY\Security::check(\SYSTEM\SECURITY\RIGHTS::SYS_SAI);} - public static function sai_mod_saimod_mojotrollz_db_reputation_flag_js(){return \SYSTEM\LOG\JsonResult::toString(array());} - public static function sai_mod_saimod_mojotrollz_db_reputation_flag_css(){} - -} \ No newline at end of file diff --git a/mojotrollz/sai/saimod_mojotrollz_db_script/saimod_mojotrollz_db_script.php b/mojotrollz/sai/saimod_mojotrollz_db_script/saimod_mojotrollz_db_script.php deleted file mode 100644 index f813b03..0000000 --- a/mojotrollz/sai/saimod_mojotrollz_db_script/saimod_mojotrollz_db_script.php +++ /dev/null @@ -1,153 +0,0 @@ -query('SELECT * FROM creature_template LIMIT 100;'); - - $result = ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - '; - while($row = $res->next()){ - $result .= ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - '; - } - $result .= '
    entryKillCredit1KillCredit2modelid_1modelid_2namesubnamegossip_menu_idminlevelmaxlevelminhealthmaxhealthminmanamaxmanaarmorfaction_Afaction_Hnpcflagspeed_walkspeed_runscalerankmindmgmaxdmgdmgschoolattackpowerdmg_multiplierbaseattacktimerangeattacktimeunit_classunit_flagsdynamicflagsfamilytrainer_typetrainer_spelltrainer_classtrainer_raceminrangedmgmaxrangedmgrangedattackpowertypetype_flagslootidpickpocketlootskinlootresistance1resistance2resistance3resistance4resistance5resistance6PetSpellDataIdmingoldmaxgoldAINameMovementTypeInhabitTypeCivilianRacialLeaderRegenHealthequipment_idtrainer_idvendor_idmechanic_immune_maskflags_extraScriptName
    '.$row['entry'].''.$row['KillCredit1'].''.$row['KillCredit2'].''.$row['modelid_1'].''.$row['modelid_2'].''.$row['name'].''.$row['subname'].''.$row['gossip_menu_id'].''.$row['minlevel'].''.$row['maxlevel'].''.$row['minhealth'].''.$row['maxhealth'].''.$row['minmana'].''.$row['maxmana'].''.$row['armor'].''.$row['faction_A'].''.$row['faction_H'].''.$row['npcflag'].''.$row['speed_walk'].''.$row['speed_run'].''.$row['scale'].''.$row['rank'].''.$row['mindmg'].''.$row['maxdmg'].''.$row['dmgschool'].''.$row['attackpower'].''.$row['dmg_multiplier'].''.$row['baseattacktime'].''.$row['rangeattacktime'].''.$row['unit_class'].''.$row['unit_flags'].''.$row['dynamicflags'].''.$row['family'].''.$row['trainer_type'].''.$row['trainer_spell'].''.$row['trainer_class'].''.$row['trainer_race'].''.$row['minrangedmg'].''.$row['maxrangedmg'].''.$row['rangedattackpower'].''.$row['type'].''.$row['type_flags'].''.$row['lootid'].''.$row['pickpocketloot'].''.$row['skinloot'].''.$row['resistance1'].''.$row['resistance2'].''.$row['resistance3'].''.$row['resistance4'].''.$row['resistance5'].''.$row['resistance6'].''.$row['PetSpellDataId'].''.$row['mingold'].''.$row['maxgold'].''.$row['AIName'].''.$row['MovementType'].''.$row['InhabitType'].''.$row['Civilian'].''.$row['RacialLeader'].''.$row['RegenHealth'].''.$row['equipment_id'].''.$row['trainer_id'].''.$row['vendor_id'].''.$row['mechanic_immune_mask'].''.$row['flags_extra'].''.$row['ScriptName'].'
    '; - return $result;} - public static function html_li_menu(){return '
  • DB:Scripts
  • ';} - public static function right_public(){return false;} - public static function right_right(){return \SYSTEM\SECURITY\Security::check(\SYSTEM\SECURITY\RIGHTS::SYS_SAI);} - public static function sai_mod_saimod_mojotrollz_db_script_flag_js(){return \SYSTEM\LOG\JsonResult::toString(array());} - public static function sai_mod_saimod_mojotrollz_db_script_flag_css(){} - -} \ No newline at end of file diff --git a/mojotrollz/sai/saimod_mojotrollz_db_spell/saimod_mojotrollz_db_spell.php b/mojotrollz/sai/saimod_mojotrollz_db_spell/saimod_mojotrollz_db_spell.php index f8d7015..80397e8 100644 --- a/mojotrollz/sai/saimod_mojotrollz_db_spell/saimod_mojotrollz_db_spell.php +++ b/mojotrollz/sai/saimod_mojotrollz_db_spell/saimod_mojotrollz_db_spell.php @@ -2,146 +2,14 @@ class saimod_mojotrollz_db_spell extends \SYSTEM\SAI\SaiModule { public static function sai_mod_saimod_mojotrollz_db_spell(){ $con = new \SYSTEM\DB\Connection(new \DBD\mangos_world()); - $res = $con->query('SELECT * FROM creature_template LIMIT 100;'); + //$res = $con->query('SELECT * FROM creature_template LIMIT 100;'); $result = ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - '; - while($row = $res->next()){ + /*while($row = $res->next()){ $result .= ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - '; - } + }*/ $result .= '
    entryKillCredit1KillCredit2modelid_1modelid_2namesubnamegossip_menu_idminlevelmaxlevelminhealthmaxhealthminmanamaxmanaarmorfaction_Afaction_Hnpcflagspeed_walkspeed_runscalerankmindmgmaxdmgdmgschoolattackpowerdmg_multiplierbaseattacktimerangeattacktimeunit_classunit_flagsdynamicflagsfamilytrainer_typetrainer_spelltrainer_classtrainer_raceminrangedmgmaxrangedmgrangedattackpowertypetype_flagslootidpickpocketlootskinlootresistance1resistance2resistance3resistance4resistance5resistance6PetSpellDataIdmingoldmaxgoldAINameMovementTypeInhabitTypeCivilianRacialLeaderRegenHealthequipment_idtrainer_idvendor_idmechanic_immune_maskflags_extraScriptName
    '.$row['entry'].''.$row['KillCredit1'].''.$row['KillCredit2'].''.$row['modelid_1'].''.$row['modelid_2'].''.$row['name'].''.$row['subname'].''.$row['gossip_menu_id'].''.$row['minlevel'].''.$row['maxlevel'].''.$row['minhealth'].''.$row['maxhealth'].''.$row['minmana'].''.$row['maxmana'].''.$row['armor'].''.$row['faction_A'].''.$row['faction_H'].''.$row['npcflag'].''.$row['speed_walk'].''.$row['speed_run'].''.$row['scale'].''.$row['rank'].''.$row['mindmg'].''.$row['maxdmg'].''.$row['dmgschool'].''.$row['attackpower'].''.$row['dmg_multiplier'].''.$row['baseattacktime'].''.$row['rangeattacktime'].''.$row['unit_class'].''.$row['unit_flags'].''.$row['dynamicflags'].''.$row['family'].''.$row['trainer_type'].''.$row['trainer_spell'].''.$row['trainer_class'].''.$row['trainer_race'].''.$row['minrangedmg'].''.$row['maxrangedmg'].''.$row['rangedattackpower'].''.$row['type'].''.$row['type_flags'].''.$row['lootid'].''.$row['pickpocketloot'].''.$row['skinloot'].''.$row['resistance1'].''.$row['resistance2'].''.$row['resistance3'].''.$row['resistance4'].''.$row['resistance5'].''.$row['resistance6'].''.$row['PetSpellDataId'].''.$row['mingold'].''.$row['maxgold'].''.$row['AIName'].''.$row['MovementType'].''.$row['InhabitType'].''.$row['Civilian'].''.$row['RacialLeader'].''.$row['RegenHealth'].''.$row['equipment_id'].''.$row['trainer_id'].''.$row['vendor_id'].''.$row['mechanic_immune_mask'].''.$row['flags_extra'].''.$row['ScriptName'].'
    '; return $result;} public static function html_li_menu(){return '
  • DB:Spells
  • ';}