From 80128d3081c81592c0b17cfec289ea34f6098465 Mon Sep 17 00:00:00 2001 From: Nael Date: Mon, 30 Sep 2013 23:44:02 +0200 Subject: [PATCH] included item table for sai --- .../saimod_mojotrollz_db_item.php | 368 ++++++++++++------ 1 file changed, 239 insertions(+), 129 deletions(-) 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 = ' - - - - - + + - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + '; while($row = $res->next()){ $result .= ' - - - - - + + - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + '; } $result .= '
entryKillCredit1KillCredit2modelid_1modelid_2classsubclass namesubnamegossip_menu_idminlevelmaxlevelminhealthmaxhealthminmanamaxmanadisplayidQualityentryFlagsBuyCountBuyPriceSellPriceInventoryTypeAllowableClassAllowableRaceItemLevelRequiredLevelRequiredSkillRequiredSkillRankrequiredspellrequiredhonorrankRequiredCityRankRequiredReputationFactionRequiredReputationRankmaxcountstackableContainerSlotsstat_type1stat_value1stat_type2stat_value2stat_type3stat_value3stat_type4stat_value4stat_type5stat_value5stat_type6stat_value6stat_type7stat_value7stat_type8stat_value8stat_type9stat_value9stat_type10stat_value10dmg_min1dmg_max1dmg_type1dmg_min2dmg_max2dmg_type2dmg_min3dmg_max3dmg_type3dmg_min4dmg_max4dmg_type4dmg_min5dmg_max5dmg_type5 armorfaction_Afaction_Hnpcflagspeed_walkspeed_runscalerankmindmgmaxdmgdmgschoolattackpowerdmg_multiplierbaseattacktimerangeattacktimeunit_classunit_flagsdynamicflagsfamilytrainer_typetrainer_spelltrainer_classtrainer_raceminrangedmgmaxrangedmgrangedattackpowertypetype_flagslootidpickpocketlootskinlootresistance1resistance2resistance3resistance4resistance5resistance6PetSpellDataIdmingoldmaxgoldAINameMovementTypeInhabitTypeCivilianRacialLeaderRegenHealthequipment_idtrainer_idvendor_idmechanic_immune_maskflags_extraScriptNameholy_resfire_resnature_resfrost_resshadow_resarcane_resdelayammo_typeRangedModRangespellid_1spelltrigger_1spellcharges_1spellppmRate_1spellcooldown_1spellcategory_1spellcategorycooldown_1spellid_2spelltrigger_2spellcharges_2spellppmRate_2spellcooldown_2spellcategory_2spellcategorycooldown_2spellid_3spelltrigger_3spellcharges_3spellppmRate_3spellcooldown_3spellcategory_3spellcategorycooldown_3spellid_4spelltrigger_4spellcharges_4spellppmRate_4spellcooldown_4spellcategory_4spellcategorycooldown_4spellid_5spelltrigger_5spellcharges_5spellppmRate_5spellcooldown_5spellcategory_5spellcategorycooldown_5bondingdescriptionPageTextLanguageIDPageMaterialstartquestlockidMaterialsheathRandomPropertyblockitemsetMaxDurabilityarea
'.$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'].'
';