diff --git a/mojotrollz/sai/saimod_mojotrollz_db_item/saimod_mojotrollz_db_item.php b/mojotrollz/sai/saimod_mojotrollz_db_item/saimod_mojotrollz_db_item.php index 51947ff..0325115 100644 --- a/mojotrollz/sai/saimod_mojotrollz_db_item/saimod_mojotrollz_db_item.php +++ b/mojotrollz/sai/saimod_mojotrollz_db_item/saimod_mojotrollz_db_item.php @@ -2,144 +2,254 @@ class saimod_mojotrollz_db_item extends \SYSTEM\SAI\SaiModule { public static function sai_mod_saimod_mojotrollz_db_item(){ $con = new \SYSTEM\DB\Connection(new \DBD\mangos_world()); - $res = $con->query('SELECT * FROM creature_template LIMIT 100;'); + $res = $con->query('SELECT * FROM item_template LIMIT 100;'); $result = '
| entry | -KillCredit1 | -KillCredit2 | -modelid_1 | -modelid_2 | +class | +subclass | name | -subname | -gossip_menu_id | -minlevel | -maxlevel | -minhealth | -maxhealth | -minmana | -maxmana | +displayid | +Quality | +entry | +Flags | +BuyCount | +BuyPrice | +SellPrice | +InventoryType | +AllowableClass | +AllowableRace | +ItemLevel | +RequiredLevel | +RequiredSkill | +RequiredSkillRank | +requiredspell | +requiredhonorrank | +RequiredCityRank | +RequiredReputationFaction | +RequiredReputationRank | +maxcount | +stackable | +ContainerSlots | +stat_type1 | +stat_value1 | +stat_type2 | +stat_value2 | +stat_type3 | +stat_value3 | +stat_type4 | +stat_value4 | +stat_type5 | +stat_value5 | +stat_type6 | +stat_value6 | +stat_type7 | +stat_value7 | +stat_type8 | +stat_value8 | +stat_type9 | +stat_value9 | +stat_type10 | +stat_value10 | +dmg_min1 | +dmg_max1 | +dmg_type1 | +dmg_min2 | +dmg_max2 | +dmg_type2 | +dmg_min3 | +dmg_max3 | +dmg_type3 | +dmg_min4 | +dmg_max4 | +dmg_type4 | +dmg_min5 | +dmg_max5 | +dmg_type5 | armor | -faction_A | -faction_H | -npcflag | -speed_walk | -speed_run | -scale | -rank | -mindmg | -maxdmg | -dmgschool | -attackpower | -dmg_multiplier | -baseattacktime | -rangeattacktime | -unit_class | -unit_flags | -dynamicflags | -family | -trainer_type | -trainer_spell | -trainer_class | -trainer_race | -minrangedmg | -maxrangedmg | -rangedattackpower | -type | -type_flags | -lootid | -pickpocketloot | -skinloot | -resistance1 | -resistance2 | -resistance3 | -resistance4 | -resistance5 | -resistance6 | -PetSpellDataId | -mingold | -maxgold | -AIName | -MovementType | -InhabitType | -Civilian | -RacialLeader | -RegenHealth | -equipment_id | -trainer_id | -vendor_id | -mechanic_immune_mask | -flags_extra | -ScriptName | +holy_res | +fire_res | +nature_res | +frost_res | +shadow_res | +arcane_res | +delay | +ammo_type | +RangedModRange | +spellid_1 | +spelltrigger_1 | +spellcharges_1 | +spellppmRate_1 | +spellcooldown_1 | +spellcategory_1 | +spellcategorycooldown_1 | +spellid_2 | +spelltrigger_2 | +spellcharges_2 | +spellppmRate_2 | +spellcooldown_2 | +spellcategory_2 | +spellcategorycooldown_2 | +spellid_3 | +spelltrigger_3 | +spellcharges_3 | +spellppmRate_3 | +spellcooldown_3 | +spellcategory_3 | +spellcategorycooldown_3 | +spellid_4 | +spelltrigger_4 | +spellcharges_4 | +spellppmRate_4 | +spellcooldown_4 | +spellcategory_4 | +spellcategorycooldown_4 | +spellid_5 | +spelltrigger_5 | +spellcharges_5 | +spellppmRate_5 | +spellcooldown_5 | +spellcategory_5 | +spellcategorycooldown_5 | +bonding | +description | +PageText | +LanguageID | +PageMaterial | +startquest | +lockid | +Material | +sheath | +RandomProperty | +block | +itemset | +MaxDurability | +area | + + +
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| '.$row['entry'].' | -'.$row['KillCredit1'].' | -'.$row['KillCredit2'].' | -'.$row['modelid_1'].' | -'.$row['modelid_2'].' | +'.$row['class'].' | +'.$row['subclass'].' | '.$row['name'].' | -'.$row['subname'].' | -'.$row['gossip_menu_id'].' | -'.$row['minlevel'].' | -'.$row['maxlevel'].' | -'.$row['minhealth'].' | -'.$row['maxhealth'].' | -'.$row['minmana'].' | -'.$row['maxmana'].' | +'.$row['displayid'].' | +'.$row['Quality'].' | +'.$row['entry'].' | +'.$row['Flags'].' | +'.$row['BuyCount'].' | +'.$row['BuyPrice'].' | +'.$row['SellPrice'].' | +'.$row['InventoryType'].' | +'.$row['AllowableClass'].' | +'.$row['AllowableRace'].' | +'.$row['ItemLevel'].' | +'.$row['RequiredLevel'].' | +'.$row['RequiredSkill'].' | +'.$row['RequiredSkillRank'].' | +'.$row['requiredspell'].' | +'.$row['requiredhonorrank'].' | +'.$row['RequiredCityRank'].' | +'.$row['RequiredReputationFaction'].' | +'.$row['RequiredReputationRank'].' | +'.$row['maxcount'].' | +'.$row['stackable'].' | +'.$row['ContainerSlots'].' | +'.$row['stat_type1'].' | +'.$row['stat_value1'].' | +'.$row['stat_type2'].' | +'.$row['stat_value2'].' | +'.$row['stat_type3'].' | +'.$row['stat_value3'].' | +'.$row['stat_type4'].' | +'.$row['stat_value4'].' | +'.$row['stat_type5'].' | +'.$row['stat_value5'].' | +'.$row['stat_type6'].' | +'.$row['stat_value6'].' | +'.$row['stat_type7'].' | +'.$row['stat_value7'].' | +'.$row['stat_type8'].' | +'.$row['stat_value8'].' | +'.$row['stat_type9'].' | +'.$row['stat_value9'].' | +'.$row['stat_type10'].' | +'.$row['stat_value10'].' | +'.$row['dmg_min1'].' | +'.$row['dmg_max1'].' | +'.$row['dmg_type1'].' | +'.$row['dmg_min2'].' | +'.$row['dmg_max2'].' | +'.$row['dmg_type2'].' | +'.$row['dmg_min3'].' | +'.$row['dmg_max3'].' | +'.$row['dmg_type3'].' | +'.$row['dmg_min4'].' | +'.$row['dmg_max4'].' | +'.$row['dmg_type4'].' | +'.$row['dmg_min5'].' | +'.$row['dmg_max5'].' | +'.$row['dmg_type5'].' | '.$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'].' | +'.$row['holy_res'].' | +'.$row['fire_res'].' | +'.$row['nature_res'].' | +'.$row['frost_res'].' | +'.$row['shadow_res'].' | +'.$row['arcane_res'].' | +'.$row['delay'].' | +'.$row['ammo_type'].' | +'.$row['RangedModRange'].' | +'.$row['spellid_1'].' | +'.$row['spelltrigger_1'].' | +'.$row['spellcharges_1'].' | +'.$row['spellppmRate_1'].' | +'.$row['spellcooldown_1'].' | +'.$row['spellcategory_1'].' | +'.$row['spellcategorycooldown_1'].' | +'.$row['spellid_2'].' | +'.$row['spelltrigger_2'].' | +'.$row['spellcharges_2'].' | +'.$row['spellppmRate_2'].' | +'.$row['spellcooldown_2'].' | +'.$row['spellcategory_2'].' | +'.$row['spellcategorycooldown_2'].' | +'.$row['spellid_3'].' | +'.$row['spelltrigger_3'].' | +'.$row['spellcharges_3'].' | +'.$row['spellppmRate_3'].' | +'.$row['spellcooldown_3'].' | +'.$row['spellcategory_3'].' | +'.$row['spellcategorycooldown_3'].' | +'.$row['spellid_4'].' | +'.$row['spelltrigger_4'].' | +'.$row['spellcharges_4'].' | +'.$row['spellppmRate_4'].' | +'.$row['spellcooldown_4'].' | +'.$row['spellcategory_4'].' | +'.$row['spellcategorycooldown_4'].' | +'.$row['spellid_5'].' | +'.$row['spelltrigger_5'].' | +'.$row['spellcharges_5'].' | +'.$row['spellppmRate_5'].' | +'.$row['spellcooldown_5'].' | +'.$row['spellcategory_5'].' | +'.$row['spellcategorycooldown_5'].' | +'.$row['bonding'].' | +'.$row['description'].' | +'.$row['PageText'].' | +'.$row['LanguageID'].' | +'.$row['PageMaterial'].' | +'.$row['startquest'].' | +'.$row['lockid'].' | +'.$row['Material'].' | +'.$row['sheath'].' | +'.$row['RandomProperty'].' | +'.$row['block'].' | +'.$row['itemset'].' | +'.$row['MaxDurability'].' | +'.$row['area'].' | +