25 PrepareStatement(
WORLD_SEL_QUEST_POOLS,
"SELECT entry, pool_entry FROM pool_quest", CONNECTION_SYNCH);
28 PrepareStatement(
WORLD_SEL_CREATURE_TEXT,
"SELECT entry, groupid, id, text, type, language, probability, emote, duration, sound, BroadcastTextId, TextRange FROM creature_text", CONNECTION_SYNCH);
29 PrepareStatement(
WORLD_SEL_SMART_SCRIPTS,
"SELECT entryorguid, source_type, id, link, event_type, event_phase_mask, event_chance, event_flags, event_param1, event_param2, event_param3, event_param4, action_type, action_param1, action_param2, action_param3, action_param4, action_param5, action_param6, target_type, target_param1, target_param2, target_param3, target_x, target_y, target_z, target_o FROM smart_scripts ORDER BY entryorguid, source_type, id, link", CONNECTION_SYNCH);
30 PrepareStatement(
WORLD_SEL_SMARTAI_WP,
"SELECT entry, pointid, position_x, position_y, position_z FROM waypoints ORDER BY entry, pointid", CONNECTION_SYNCH);
31 PrepareStatement(
WORLD_DEL_GAMEOBJECT,
"DELETE FROM gameobject WHERE guid = ?", CONNECTION_ASYNC);
33 PrepareStatement(
WORLD_INS_GRAVEYARD_ZONE,
"INSERT INTO graveyard_zone (ID, GhostZone, Faction) VALUES (?, ?, ?)", CONNECTION_ASYNC);
34 PrepareStatement(
WORLD_DEL_GRAVEYARD_ZONE,
"DELETE FROM graveyard_zone WHERE ID = ? AND GhostZone = ? AND Faction = ?", CONNECTION_ASYNC);
35 PrepareStatement(
WORLD_INS_GAME_TELE,
"INSERT INTO game_tele (id, position_x, position_y, position_z, orientation, map, name) VALUES (?, ?, ?, ?, ?, ?, ?)", CONNECTION_ASYNC);
36 PrepareStatement(
WORLD_DEL_GAME_TELE,
"DELETE FROM game_tele WHERE name = ?", CONNECTION_ASYNC);
37 PrepareStatement(
WORLD_INS_NPC_VENDOR,
"INSERT INTO npc_vendor (entry, item, maxcount, incrtime, extendedcost, type) VALUES(?, ?, ?, ?, ?, ?)", CONNECTION_ASYNC);
38 PrepareStatement(
WORLD_DEL_NPC_VENDOR,
"DELETE FROM npc_vendor WHERE entry = ? AND item = ? AND type = ?", CONNECTION_ASYNC);
39 PrepareStatement(
WORLD_SEL_NPC_VENDOR_REF,
"SELECT item, maxcount, incrtime, ExtendedCost, type FROM npc_vendor WHERE entry = ? AND type = ? ORDER BY slot ASC", CONNECTION_SYNCH);
43 PrepareStatement(
WORLD_UPD_CREATURE_POSITION,
"UPDATE creature SET position_x = ?, position_y = ?, position_z = ?, orientation = ? WHERE guid = ?", CONNECTION_ASYNC);
46 PrepareStatement(
WORLD_INS_CREATURE_FORMATION,
"INSERT INTO creature_formations (leaderGUID, memberGUID, dist, angle, groupAI) VALUES (?, ?, ?, ?, ?)", CONNECTION_ASYNC);
47 PrepareStatement(
WORLD_INS_WAYPOINT_DATA,
"INSERT INTO waypoint_data (id, point, position_x, position_y, position_z) VALUES (?, ?, ?, ?, ?)", CONNECTION_ASYNC);
48 PrepareStatement(
WORLD_DEL_WAYPOINT_DATA,
"DELETE FROM waypoint_data WHERE id = ? AND point = ?", CONNECTION_ASYNC);
50 PrepareStatement(
WORLD_UPD_WAYPOINT_DATA_POSITION,
"UPDATE waypoint_data SET position_x = ?, position_y = ?, position_z = ? where id = ? AND point = ?", CONNECTION_ASYNC);
54 PrepareStatement(
WORLD_SEL_WAYPOINT_DATA_BY_ID,
"SELECT point, position_x, position_y, position_z, orientation, move_type, delay, action, action_chance FROM waypoint_data WHERE id = ? ORDER BY point", CONNECTION_SYNCH);
57 PrepareStatement(
WORLD_SEL_WAYPOINT_DATA_POS_LAST_BY_ID,
"SELECT position_x, position_y, position_z, orientation FROM waypoint_data WHERE id = ? ORDER BY point DESC LIMIT 1", CONNECTION_SYNCH);
61 PrepareStatement(
WORLD_SEL_WAYPOINT_DATA_BY_POS,
"SELECT id, point FROM waypoint_data WHERE (abs(position_x - ?) <= ?) and (abs(position_y - ?) <= ?) and (abs(position_z - ?) <= ?)", CONNECTION_SYNCH);
65 PrepareStatement(
WORLD_INS_CREATURE_ADDON,
"INSERT INTO creature_addon(guid, path_id) VALUES (?, ?)", CONNECTION_ASYNC);
77 PrepareStatement(
WORLD_DEL_CREATURE,
"DELETE FROM creature WHERE guid = ?", CONNECTION_ASYNC);
78 PrepareStatement(
WORLD_SEL_COMMANDS,
"SELECT name, permission, help FROM command", CONNECTION_SYNCH);
79 PrepareStatement(
WORLD_SEL_CREATURE_TEMPLATE,
"SELECT entry, difficulty_entry_1, difficulty_entry_2, difficulty_entry_3, KillCredit1, KillCredit2, modelid1, modelid2, modelid3, modelid4, name, femaleName, subname, IconName, gossip_menu_id, minlevel, maxlevel, exp, exp_unk, faction, npcflag, speed_walk, speed_run, scale, rank, dmgschool, BaseAttackTime, RangeAttackTime, BaseVariance, RangeVariance, unit_class, unit_flags, unit_flags2, dynamicflags, family, trainer_type, trainer_class, trainer_race, type, type_flags, type_flags2, lootid, pickpocketloot, skinloot, resistance1, resistance2, resistance3, resistance4, resistance5, resistance6, spell1, spell2, spell3, spell4, spell5, spell6, spell7, spell8, VehicleId, mingold, maxgold, AIName, MovementType, InhabitType, HoverHeight, HealthModifier, HealthModifierExtra, ManaModifier, ManaModifierExtra, ArmorModifier, DamageModifier, ExperienceModifier, RacialLeader, movementId, RegenHealth, mechanic_immune_mask, flags_extra, ScriptName FROM creature_template WHERE entry = ?", CONNECTION_SYNCH);
80 PrepareStatement(
WORLD_SEL_WAYPOINT_SCRIPT_BY_ID,
"SELECT guid, delay, command, datalong, datalong2, dataint, x, y, z, o FROM waypoint_scripts WHERE id = ?", CONNECTION_SYNCH);
82 PrepareStatement(
WORLD_SEL_GAMEOBJECT_NEAREST,
"SELECT guid, id, position_x, position_y, position_z, map, (POW(position_x - ?, 2) + POW(position_y - ?, 2) + POW(position_z - ?, 2)) AS order_ FROM gameobject WHERE map = ? AND (POW(position_x - ?, 2) + POW(position_y - ?, 2) + POW(position_z - ?, 2)) <= ? ORDER BY order_", CONNECTION_SYNCH);
83 PrepareStatement(
WORLD_SEL_CREATURE_NEAREST,
"SELECT guid, id, position_x, position_y, position_z, map, (POW(position_x - ?, 2) + POW(position_y - ?, 2) + POW(position_z - ?, 2)) AS order_ FROM creature WHERE map = ? AND (POW(position_x - ?, 2) + POW(position_y - ?, 2) + POW(position_z - ?, 2)) <= ? ORDER BY order_", CONNECTION_SYNCH);
84 PrepareStatement(
WORLD_INS_CREATURE,
"INSERT INTO creature (guid, id , map, spawnMask, PhaseId, PhaseGroup, modelid, equipment_id, position_x, position_y, position_z, orientation, spawntimesecs, spawndist, currentwaypoint, curhealth, curmana, MovementType, npcflag, unit_flags, dynamicflags) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", CONNECTION_ASYNC);
87 PrepareStatement(
WORLD_INS_GAMEOBJECT,
"INSERT INTO gameobject (guid, id, map, spawnMask, position_x, position_y, position_z, orientation, rotation0, rotation1, rotation2, rotation3, spawntimesecs, animprogress, state) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", CONNECTION_ASYNC);
88 PrepareStatement(
WORLD_INS_DISABLES,
"INSERT INTO disables (entry, sourceType, flags, comment) VALUES (?, ?, ?, ?)", CONNECTION_ASYNC);
89 PrepareStatement(
WORLD_SEL_DISABLES,
"SELECT entry FROM disables WHERE entry = ? AND sourceType = ?", CONNECTION_SYNCH);
90 PrepareStatement(
WORLD_DEL_DISABLES,
"DELETE FROM disables WHERE entry = ? AND sourceType = ?", CONNECTION_ASYNC);
Definition: WorldDatabase.h:74
Definition: WorldDatabase.h:39
Definition: WorldDatabase.h:93
Definition: WorldDatabase.h:36
Definition: WorldDatabase.h:66
Definition: WorldDatabase.h:73
Definition: WorldDatabase.h:101
Definition: WorldDatabase.h:58
Definition: WorldDatabase.h:97
Definition: WorldDatabase.h:49
Definition: WorldDatabase.h:84
Definition: WorldDatabase.h:44
Definition: WorldDatabase.h:65
Definition: WorldDatabase.h:96
Definition: WorldDatabase.h:64
Definition: WorldDatabase.h:54
Definition: WorldDatabase.h:89
Definition: WorldDatabase.h:75
Definition: WorldDatabase.h:38
Definition: WorldDatabase.h:60
Definition: WorldDatabase.h:85
Definition: WorldDatabase.h:86
Definition: WorldDatabase.h:32
Definition: WorldDatabase.h:37
Definition: WorldDatabase.h:53
Definition: WorldDatabase.h:50
Definition: WorldDatabase.h:67
Definition: WorldDatabase.h:71
Definition: WorldDatabase.h:103
Definition: WorldDatabase.h:63
Definition: WorldDatabase.h:94
Definition: WorldDatabase.h:42
Definition: WorldDatabase.h:34
Definition: WorldDatabase.h:40
Definition: WorldDatabase.h:92
Definition: WorldDatabase.h:35
Definition: WorldDatabase.h:61
Definition: WorldDatabase.h:77
Definition: WorldDatabase.h:78
Definition: WorldDatabase.h:68
Definition: WorldDatabase.h:99
Definition: WorldDatabase.h:57
Definition: WorldDatabase.h:51
Definition: WorldDatabase.h:98
Definition: WorldDatabase.h:72
Definition: WorldDatabase.h:46
Definition: WorldDatabase.h:59
Definition: WorldDatabase.h:81
Definition: WorldDatabase.h:56
Definition: WorldDatabase.h:69
Definition: WorldDatabase.h:87
Definition: WorldDatabase.h:45
Definition: WorldDatabase.h:48
Definition: WorldDatabase.h:100
Definition: WorldDatabase.h:95
Definition: WorldDatabase.h:83
Definition: WorldDatabase.h:79
Definition: WorldDatabase.h:88
Definition: WorldDatabase.h:82
Definition: WorldDatabase.h:47
Definition: WorldDatabase.h:55
Definition: WorldDatabase.h:41
Definition: WorldDatabase.h:90
Definition: WorldDatabase.h:70
Definition: WorldDatabase.h:43
Definition: WorldDatabase.h:62
Definition: WorldDatabase.h:33
Definition: WorldDatabase.h:80
Definition: WorldDatabase.h:52
Definition: WorldDatabase.h:76