[Wip] Creature Comfort

Heyo-

So I’m working on a full fix for the Zul’Drak Region, I’m doing a full cleanup and re-script of some quests, converting existing EAI to SAI, doing the new SAI, etc.

EDIT: Well, everything’s works now, but those damn guards that don’t do anything but move to the position.

I tried triggering with SMART_EVENT_MOVEMENTINFORM but didn’t work it out very well. I’ll move on for now, lots to do. After I complete other stuff I’ll look back and finish this.

UPDATE creature_template SET AIName=‘SmartAI’ WHERE entry=28043;
DELETE FROM smart_scripts WHERE (entryorguid=28043 AND source_type=0);
INSERT INTO smart_scripts (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, comment) VALUES
(28043, 0, 0, 1, 20, 0, 100, 0, 12599, 0, 0, 0, 1, 0, 2000, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ‘Captain Grondel - Quest Completion - Talk’),
(28043, 0, 1, 0, 52, 0, 100, 0, 0, 28043, 0, 0, 45, 1, 1, 0, 0, 0, 0, 10, 111301, 28324, 0, 0, 0, 0, 0, ‘Captain Grondel - Text Over - Set Data’);
DELETE FROM creature_text WHERE entry=28043;
INSERT INTO creature_text (entry, groupid, id, text, type, language, probability, emote, duration, sound, comment) VALUES
(28043,0,0, “Crusader! Take this wood and light a fire for the troops.”, 12,0,100,0,0,0, “Captain Grondel”);

– Crusader Whazzaaaaah SAI
UPDATE creature_template SET AIName=‘SmartAI’ WHERE entry=28324;
DELETE FROM smart_scripts WHERE source_type=0 AND entryorguid=28324;
DELETE FROM smart_scripts WHERE source_type=9 AND entryorguid=2832400;
INSERT INTO smart_scripts (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, comment) VALUES
(28324, 0, 0, 0, 38, 0, 100, 0, 1, 1, 0, 0, 1, 0, 2000, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ‘Crusader Whathah - Data Set - Talk’),
(28324, 0, 1, 0, 52, 0, 100, 0, 0, 28324, 0, 0, 53, 0, 28324, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ‘Crusader Whathah - Text Over - Start WP’),
(28324, 0, 2, 0, 40, 0, 100, 0, 3, 28324, 0, 0, 80, 2832400, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ‘Crusader Whathah - Reached WP 3 - Load Script’),
(28324, 0, 3, 0, 40, 0, 100, 0, 3, 28324, 0, 0, 50, 196417, 40, 0, 0, 0, 0, 8, 0, 0, 0, 5574.01, -2972.21, 276.583, 0, ‘Crusader Whathah - Reached WP 3 - Summon Bonfire’),
(28324, 0, 4, 0, 40, 0, 100, 0, 3, 28324, 0, 0, 45, 1, 1, 0, 0, 0, 0, 10, 115930, 28117, 0, 0, 0, 0, 0, ‘Crusader Whathah - Reached WP 3 - Set Data’),
(28324, 0, 5, 0, 40, 0, 100, 0, 3, 28324, 0, 0, 45, 1, 1, 0, 0, 0, 0, 10, 115928, 28117, 0, 0, 0, 0, 0, ‘Crusader Whathah - Reached WP 3 - Set Data’),
(28324, 0, 6, 0, 40, 0, 100, 0, 3, 28324, 0, 0, 45, 1, 1, 0, 0, 0, 0, 10, 115929, 28117, 0, 0, 0, 0, 0, ‘Crusader Whathah - Reached WP 3 - Set Data’),
(28324, 0, 7, 8, 40, 0, 100, 0, 3, 28324, 0, 0, 45, 1, 1, 0, 0, 0, 0, 10, 115931, 28117, 0, 0, 0, 0, 0, ‘Crusader Whathah - Reached WP 3 - Set Data’),
(28324, 0, 9, 0, 40, 0, 100, 0, 5, 28324, 0, 0, 78, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ‘Crusader Whathah - Reached WP 5 - Reset Script’),
(28324, 0, 10, 0, 40, 0, 100, 0, 5, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 2.391100, ‘Crusader Whathah - Reached WP 5 - Turn to’),
– Script 1
(2832400,9,0,0,0,0,100,0,0,0,0,0,54,5000,0,0,0,0,0,1,0,0,0,0.0,0.0,0.0,0.0,“Crusader Whathah - Pause at WP 3”),
(2832400,9,1,0,0,0,100,0,0,0,0,0,17,69,0,0,0,0,0,1,0,0,0,0.0,0.0,0.0,0.0,‘Crusader Whathah - Emote STATE_USESTANDING’),
(2832400,9,2,0,0,0,100,0,3000,3000,0,0,17,0,0,0,0,0,0,1,0,0,0,0.0,0.0,0.0,0.0,‘Crusader Whathah - Emote STATE_NONE’);
– Waypoints for Crusader Whathah
DELETE FROM waypoints WHERE entry=28324;
INSERT INTO waypoints (entry,pointid,position_x,position_y,position_z,point_comment) VALUES
(28324,1,5542.890,-3012.409,278.391,‘Crusader Whathah WP 1’),
(28324,2,5538.055,-3008.528,278.391,‘Crusader Whathah WP 2’),
(28324,3,5571.576,-2973.857,276.583,‘Crusader Whathah WP 3’),
(28324,4,5538.055,-3008.528,278.391,‘Crusader Whathah WP 4’),
(28324,5,5542.890,-3012.409,278.391,‘Crusader Whathah WP 5’);
– Text for Crusader Whathah
DELETE FROM creature_text WHERE entry=28324;
INSERT INTO creature_text (entry, groupid, id, text, type, language, probability, emote, duration, sound, comment) VALUES
(28324,0,0, “Sir, yes sir!”, 12,0,100,0,0,0, “Crusader Whathah”);

– Argent Footman SAI
UPDATE creature_template SET AIName=‘SmartAI’ WHERE entry=28117;
– Spawn by spawn
/*
DELETE FROM smart_scripts WHERE entryorguid=-115928;
INSERT INTO smart_scripts (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, comment) VALUES
(-115928, 0, 0, 0, 38, 0, 100, 0, 1, 1, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, 5571.085, -2975.938, 276.583, 0, ‘Argent Footman - On Data Set - Move to Position’),
(-115928, 0, 1, 0, 34, 0, 100, 0, 1, 0, 0, 0, 80, 2811700, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ‘Argent Footman - Reached Position - Load Script’),
(-115928, 0, 2, 0, 34, 0, 100, 0, 1, 0, 0, 0, 17, 13, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ‘Argent Footman - Reached Position - Emote STATE_SIT’);
DELETE FROM smart_scripts WHERE entryorguid=-115929;
INSERT INTO smart_scripts (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, comment) VALUES
(-115929, 0, 0, 0, 38, 0, 100, 0, 1, 1, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, 5568.842, -2972.543, 276.583, 0, ‘Argent Footman - On Data Set - Move to Position’),
(-115929, 0, 1, 0, 34, 0, 100, 0, 1, 0, 0, 0, 80, 2811700, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ‘Argent Footman - Reached Position - Load Script’),
(-115929, 0, 2, 0, 34, 0, 100, 0, 1, 0, 0, 0, 17, 13, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ‘Argent Footman - Reached Position - Emote STATE_SIT’);
DELETE FROM smart_scripts WHERE entryorguid=-115930;
INSERT INTO smart_scripts (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, comment) VALUES
(-115930, 0, 0, 0, 38, 0, 100, 0, 1, 1, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, 5574.604, -2977.184, 276.583, 0, ‘Argent Footman - On Data Set - Move to Position’),
(-115930, 0, 1, 0, 34, 0, 100, 0, 1, 0, 0, 0, 80, 2811700, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ‘Argent Footman - Reached Position - Load Script’),
(-115930, 0, 2, 0, 34, 0, 100, 0, 1, 0, 0, 0, 17, 13, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ‘Argent Footman - Reached Position - Emote STATE_SIT’);
DELETE FROM smart_scripts WHERE entryorguid=-115931;
INSERT INTO smart_scripts (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, comment) VALUES
(-115931, 0, 0, 0, 38, 0, 100, 0, 1, 1, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, 5571.928, -2968.551, 276.583, 0, ‘Argent Footman - On Data Set - Move to Position’),
(-115931, 0, 1, 0, 34, 0, 100, 0, 1, 0, 0, 0, 80, 2811700, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ‘Argent Footman - Reached Position - Load Script’),
(-115931, 0, 2, 0, 34, 0, 100, 0, 1, 0, 0, 0, 17, 13, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ‘Argent Footman - Reached Position - Emote STATE_SIT’);
– Script 1
DELETE FROM smart_scripts WHERE (entryorguid=2811700 AND source_type=9);
INSERT INTO smart_scripts (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, comment) VALUES
(2811700, 9, 0, 0, 0, 0, 100, 0, 40000, 40000, 0, 0, 78, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ‘Argent Footman - Script - Reset Script’);

*/[/SQL]

-- Captain Grondel SAI

Also, if anyone could help me out with some data (Waypoints, mostly would be great) from sniffs or w/e, I’d love him/her /emoticons/default_smile.png

Well let’s say you have them placed around already spawned in invisible phase mask. Then you write SAI for each GUID to run to the specific position on Data set 0 1. This is for the npc part. And when the gobject is set it will run a script that will data set each of these guids to 0 1 to trigger them. Just a suggestion, can’t think of a cleaner one atm and am a bit rusty in the head right. Maybe, there is a spell that hits them, but I kinda doubt it.

That’s what I did, basically. The thing I don’t know how to do is the kickoff, so to say.

Meaning when the player receives the quest reward (spellcast) the first script needs to be run, the rest, I think its just fine.

I tried doing this with SMART_EVENT_QUEST_REWARDED (50) which doesn’t have any parameters. So I don’t know if I need to use closest player target, action invoker or what :3

Ah, sorry dude, didn’t check the SAI well, you need 2 things and you are done:

First of all events that have X - are not yet implemented, but there is event you can use /just fill the quest ID, also if you want the stuff to start after his speech is done, you can use smart event text over instead linking them, but that is just a note, that you may even not want, just decided to mention it/:

(28043, 0, 0, 1, 20, 0, 100, 0, HERE QUEST ID, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Captain Grondel - Quest Completion - Talk'),[/sql]

From sniff:

[SPOILER]ServerToClient: SMSG_EMOTE (0x36A2) Length: 12 Time: 01/26/2012 08:38:32.368 Number: 49837

Emote ID: OneShotSalute (66)

GUID: Full: 0xF1306EA400001BF4 Type: Unit Entry: 28324 Low: 7156

ServerToClient: SMSG_MONSTER_MOVE (0x60A0) Length: 57 Time: 01/26/2012 08:38:34.786 Number: 49879

GUID: Full: 0xF1306EA400001BF4 Type: Unit Entry: 28324 Low: 7156

Toggle AnimTierInTrans: False

Position: X: 5542.888 Y: -3012.408 Z: 278.3916

Move Ticks: 53499145

Spline Type: Normal (0)

Spline Flags: Unknown5 (1048576)

Move Time: 3370

Waypoints: 3

Waypoint Endpoint: X: 5537.147 Y: -3006.25 Z: 278.3916

[1] Waypoint: X: 5539.518 Y: -3008.829 Z: 278.1416

[2] Waypoint: X: 5541.768 Y: -3011.329 Z: 278.1416

ServerToClient: SMSG_MONSTER_MOVE (0x60A0) Length: 65 Time: 01/26/2012 08:38:37.204 Number: 49937

GUID: Full: 0xF1306EA400001BF4 Type: Unit Entry: 28324 Low: 7156

Toggle AnimTierInTrans: False

Position: X: 5538.762 Y: -3008.068 Z: 278.3916

Move Ticks: 53500432

Spline Type: Normal (0)

Spline Flags: Unknown5 (1048576)

Move Time: 4731

Waypoints: 5

Waypoint Endpoint: X: 5542.891 Y: -3000.26 Z: 278.4216

[1] Waypoint: X: 5543.327 Y: -3001.164 Z: 278.1566

[2] Waypoint: X: 5544.327 Y: -3002.414 Z: 278.1566

[3] Waypoint: X: 5539.327 Y: -3005.164 Z: 278.1566

[4] Waypoint: X: 5538.327 Y: -3006.414 Z: 278.1566

ServerToClient: SMSG_MONSTER_MOVE (0x60A0) Length: 57 Time: 01/26/2012 08:38:40.792 Number: 50004

GUID: Full: 0xF1306EA400001BF4 Type: Unit Entry: 28324 Low: 7156

Toggle AnimTierInTrans: False

Position: X: 5542.638 Y: -3002.739 Z: 278.4015

Move Ticks: 53502240

Spline Type: Normal (0)

Spline Flags: Unknown5 (1048576)

Move Time: 5060

Waypoints: 3

Waypoint Endpoint: X: 5550.885 Y: -2994.585 Z: 278.3898

[1] Waypoint: X: 5549.762 Y: -2995.662 Z: 278.1456

[2] Waypoint: X: 5550.262 Y: -2997.412 Z: 278.1456

ServerToClient: SMSG_MONSTER_MOVE (0x60A0) Length: 73 Time: 01/26/2012 08:38:44.458 Number: 50076

GUID: Full: 0xF1306EA400001BF4 Type: Unit Entry: 28324 Low: 7156

Toggle AnimTierInTrans: False

Position: X: 5547.899 Y: -2996.705 Z: 278.4016

Move Ticks: 53504126

Spline Type: Normal (0)

Spline Flags: Unknown5 (1048576)

Move Time: 7305

Waypoints: 7

Waypoint Endpoint: X: 5560.89 Y: -2985.472 Z: 276.6429

[1] Waypoint: X: 5557.645 Y: -2987.838 Z: 276.5223

[2] Waypoint: X: 5556.645 Y: -2988.838 Z: 276.7723

[3] Waypoint: X: 5555.645 Y: -2989.588 Z: 277.2723

[4] Waypoint: X: 5554.395 Y: -2990.588 Z: 277.7723

[5] Waypoint: X: 5552.645 Y: -2992.588 Z: 278.0223

[6] Waypoint: X: 5550.395 Y: -2992.588 Z: 278.0223

ServerToClient: SMSG_UPDATE_OBJECT (0x4606) Length: 39 Time: 01/26/2012 08:38:52.851 Number: 50221

Map: 571

Count: 1

[0] UpdateType: Values

[0] GUID: Full: 0xF1306EA400001BF4 Type: Unit Entry: 28324 Low: 7156

[0] UNIT_FIELD_BYTES_1: 8/1.121039E-44

ServerToClient: SMSG_UPDATE_OBJECT (0x4606) Length: 90 Time: 01/26/2012 08:38:55.612 Number: 50277

Map: 571

Count: 1

[0] UpdateType: CreateObject2

[0] GUID: Full: 0xF112D979000E21E7 Type: GameObject Entry: 186745 Low: 926183

[0] Object Type: GameObject (5)

[0] Has Attacking Target: 0

[0] Has Vehicle Data: 0

[0] Has Transport Extra: 0

[0] Has GameObject Position: 0

[0] Has AnimKits: 0

[0] Has GameObject Rotation: 1

[0] Living: 0

[0] Has Stationary Position: 1

[0] Stationary Position: X: 5564.707 Y: -2982.194 Z: 276.5831, O: 3.857183

[0] GO Rotation: X: 0 Y: 0 Z: -0.9366713 W: 0.3502098

[0] OBJECT_FIELD_GUID: 926183/1.297859E-39

[0] 1: 4044544377/-7.271635E+29

[0] OBJECT_FIELD_TYPE: 33/4.624285E-44

[0] OBJECT_FIELD_ENTRY: 186745/2.616855E-40

[0] OBJECT_FIELD_SCALE_X: 1065353216/1

[0] GAMEOBJECT_DISPLAYID: 200/2.802597E-43

[0] 15: 1065353216/1

[0] GAMEOBJECT_DYNAMIC: 4294901760/NaN

[0] GAMEOBJECT_FACTION: 114/1.59748E-43

[0] GAMEOBJECT_BYTES_1: 4278190337/-1.701464E+38

ServerToClient: SMSG_MONSTER_MOVE (0x60A0) Length: 49 Time: 01/26/2012 08:38:57.625 Number: 50313

GUID: Full: 0xF1306EA400001BF4 Type: Unit Entry: 28324 Low: 7156

Toggle AnimTierInTrans: False

Position: X: 5560.89 Y: -2985.472 Z: 276.6429

Move Ticks: 53511262

Spline Type: Normal (0)

Spline Flags: Unknown5 (1048576)

Move Time: 2541

Waypoints: 1

Waypoint Endpoint: X: 5556.429 Y: -2989.992 Z: 276.6429

ServerToClient: SMSG_UPDATE_OBJECT (0x4606) Length: 39 Time: 01/26/2012 08:38:57.625 Number: 50319

Map: 571

Count: 1

[0] UpdateType: Values

[0] GUID: Full: 0xF1306EA400001BF4 Type: Unit Entry: 28324 Low: 7156

[0] UNIT_FIELD_BYTES_1: 0/0

ServerToClient: SMSG_MONSTER_MOVE (0x60A0) Length: 65 Time: 01/26/2012 08:38:58.826 Number: 50341

GUID: Full: 0xF1306EA400001BF4 Type: Unit Entry: 28324 Low: 7156

Toggle AnimTierInTrans: False

Position: X: 5558.794 Y: -2987.596 Z: 276.6429

Move Ticks: 53511895

Spline Type: Normal (0)

Spline Flags: Unknown5 (1048576)

Move Time: 3838

Waypoints: 5

Waypoint Endpoint: X: 5552.386 Y: -2994.147 Z: 278.189

[1] Waypoint: X: 5554.84 Y: -2991.872 Z: 277.666

[2] Waypoint: X: 5556.34 Y: -2990.872 Z: 277.916

[3] Waypoint: X: 5556.84 Y: -2990.122 Z: 277.666

[4] Waypoint: X: 5557.84 Y: -2988.872 Z: 276.916

ServerToClient: SMSG_MONSTER_MOVE (0x60A0) Length: 65 Time: 01/26/2012 08:39:01.244 Number: 50390

GUID: Full: 0xF1306EA400001BF4 Type: Unit Entry: 28324 Low: 7156

Toggle AnimTierInTrans: False

Position: X: 5554.376 Y: -2991.561 Z: 276.6999

Move Ticks: 53513175

Spline Type: Normal (0)

Spline Flags: Unknown5 (1048576)

Move Time: 5505

Waypoints: 5

Waypoint Endpoint: X: 5543.959 Y: -2999.792 Z: 278.4216

[1] Waypoint: X: 5544.168 Y: -2999.427 Z: 277.8107

[2] Waypoint: X: 5545.168 Y: -2998.177 Z: 277.3107

[3] Waypoint: X: 5545.918 Y: -2997.177 Z: 276.8107

[4] Waypoint: X: 5547.418 Y: -2996.427 Z: 276.5607

ServerToClient: SMSG_MONSTER_MOVE (0x60A0) Length: 61 Time: 01/26/2012 08:39:06.049 Number: 50469

GUID: Full: 0xF1306EA400001BF4 Type: Unit Entry: 28324 Low: 7156

Toggle AnimTierInTrans: False

Position: X: 5545.429 Y: -2998.808 Z: 278.4216

Move Ticks: 53515665

Spline Type: Normal (0)

Spline Flags: Unknown5 (1048576)

Move Time: 4772

Waypoints: 4

Waypoint Endpoint: X: 5536.565 Y: -3006.063 Z: 278.3916

[1] Waypoint: X: 5537.997 Y: -3005.185 Z: 278.1566

[2] Waypoint: X: 5538.497 Y: -3002.935 Z: 278.1566

[3] Waypoint: X: 5540.997 Y: -3001.685 Z: 278.1566

ServerToClient: SMSG_MONSTER_MOVE (0x60A0) Length: 57 Time: 01/26/2012 08:39:09.621 Number: 50527

GUID: Full: 0xF1306EA400001BF4 Type: Unit Entry: 28324 Low: 7156

Toggle AnimTierInTrans: False

Position: X: 5539.048 Y: -3004.524 Z: 278.3916

Move Ticks: 53517589

Spline Type: Normal (0)

Spline Flags: Unknown5 (1048576)

Move Time: 3409

Waypoints: 3

Waypoint Endpoint: X: 5540.409 Y: -3010.131 Z: 278.3916

[1] Waypoint: X: 5542.729 Y: -3008.578 Z: 278.1416

[2] Waypoint: X: 5541.229 Y: -3007.328 Z: 278.1416

ServerToClient: SMSG_MONSTER_MOVE (0x60A0) Length: 49 Time: 01/26/2012 08:39:13.287 Number: 50592

GUID: Full: 0xF1306EA400001BF4 Type: Unit Entry: 28324 Low: 7156

Toggle AnimTierInTrans: False

Position: X: 5540.409 Y: -3010.131 Z: 278.3916

Move Ticks: 53519401

Spline Type: Normal (0)

Spline Flags: Unknown5 (1048576)

Move Time: 1347

Waypoints: 1

Waypoint Endpoint: X: 5542.888 Y: -3012.408 Z: 278.3916

ServerToClient: SMSG_MONSTER_MOVE (0x60A0) Length: 53 Time: 01/26/2012 08:39:15.643 Number: 50639

GUID: Full: 0xF1306EA400001BF4 Type: Unit Entry: 28324 Low: 7156

Toggle AnimTierInTrans: False

Position: X: 5542.888 Y: -3012.408 Z: 278.3916

Move Ticks: 53520714

Spline Type: FacingAngle (4)

Facing Angle: 2.391101

Spline Flags: None (0)

Move Time: 0

Waypoints: 1

Waypoint Endpoint: X: 5542.888 Y: -3012.408 Z: 278.3916

ServerToClient: SMSG_MONSTER_MOVE (0x60A0) Length: 53 Time: 01/26/2012 08:38:56.424 Number: 50295

GUID: Full: 0xF1306DD500001BF5 Type: Unit Entry: 28117 Low: 7157

Toggle AnimTierInTrans: False

Position: X: 5532.896 Y: -2975.087 Z: 275.9259

Move Ticks: 53510661

Spline Type: Normal (0)

Spline Flags: Unknown5, Unknown6 (3145728)

Move Time: 12490

Waypoints: 2

Waypoint Endpoint: X: 5563.94 Y: -2978.06 Z: 276.6429

[1] Waypoint: X: 5559.668 Y: -2977.573 Z: 275.7844

ServerToClient: SMSG_MONSTER_MOVE (0x60A0) Length: 49 Time: 01/26/2012 08:38:56.424 Number: 50296

GUID: Full: 0xF1306DD500001BF6 Type: Unit Entry: 28117 Low: 7158

Toggle AnimTierInTrans: False

Position: X: 5584.319 Y: -2973.57 Z: 276.6284

Move Ticks: 53510662

Spline Type: Normal (0)

Spline Flags: Unknown5, Unknown6 (3145728)

Move Time: 6882

Waypoints: 1

Waypoint Endpoint: X: 5569.073 Y: -2981.54 Z: 276.6284

ServerToClient: SMSG_UPDATE_OBJECT (0x4606) Length: 72 Time: 01/26/2012 08:38:58.826 Number: 50344

Map: 571

Count: 2

[0] UpdateType: Values

[0] GUID: Full: 0xF1306DD500001BF3 Type: Unit Entry: 28117 Low: 7155

[0] UNIT_FIELD_BYTES_1: 1/1.401298E-45

[1] UpdateType: Values

[1] GUID: Full: 0xF1306DD500001BF8 Type: Unit Entry: 28117 Low: 7160

[1] UNIT_FIELD_BYTES_1: 1/1.401298E-45

ServerToClient: SMSG_MONSTER_MOVE (0x60A0) Length: 53 Time: 01/26/2012 08:39:03.631 Number: 50427

GUID: Full: 0xF1306DD500001BF6 Type: Unit Entry: 28117 Low: 7158

Toggle AnimTierInTrans: False

Position: X: 5569.073 Y: -2981.54 Z: 276.6284

Move Ticks: 53514430

Spline Type: FacingAngle (4)

Facing Angle: 3.368485

Spline Flags: None (0)

Move Time: 0

Waypoints: 1

Waypoint Endpoint: X: 5569.073 Y: -2981.54 Z: 276.6284

ServerToClient: SMSG_UPDATE_OBJECT (0x4606) Length: 39 Time: 01/26/2012 08:39:03.631 Number: 50429

Map: 571

Count: 1

[0] UpdateType: Values

[0] GUID: Full: 0xF1306DD500001BF6 Type: Unit Entry: 28117 Low: 7158

[0] UNIT_FIELD_BYTES_1: 1/1.401298E-45

ServerToClient: SMSG_MONSTER_MOVE (0x60A0) Length: 53 Time: 01/26/2012 08:39:09.621 Number: 50528

GUID: Full: 0xF1306DD500001BF5 Type: Unit Entry: 28117 Low: 7157

Toggle AnimTierInTrans: False

Position: X: 5563.94 Y: -2978.06 Z: 276.6429

Move Ticks: 53517590

Spline Type: FacingAngle (4)

Facing Angle: 5.026548

Spline Flags: None (0)

Move Time: 0

Waypoints: 1

Waypoint Endpoint: X: 5563.94 Y: -2978.06 Z: 276.6429

ServerToClient: SMSG_UPDATE_OBJECT (0x4606) Length: 39 Time: 01/26/2012 08:39:09.621 Number: 50530

Map: 571

Count: 1

[0] UpdateType: Values

[0] GUID: Full: 0xF1306DD500001BF5 Type: Unit Entry: 28117 Low: 7157

[0] UNIT_FIELD_BYTES_1: 1/1.401298E-45

[/SPOILER]

Set action_param1 to 1 for the Argent Footman’s MOVE_TO_POS lines and change the second line’s (that runs the script) event_type to [SIZE=12px][FONT=sans-serif]SMART_EVENT_MOVEMENTINFORM (34) with event_param1 to 1.[/FONT][/SIZE]

[/SPOILER]Shiiiiiii… Great man, thanks a ton!

I’ll test it out and finish it as soon as I’m back from school. I didn’t sleep at all for like over 26hs so yesterday I didn’t do anything apart from sleep /emoticons/default_tongue.png

Main post edited. Couldn’t make that MOVEMENTINFORM work lol.

Problem is maybe:

[CODE]DELETE FROM smart_scripts WHERE entryorguid=-115929;
INSERT INTO smart_scripts (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, comment) VALUES
(-115929, 0, 0, 0, 38, 0, 100, 0, 1, 1, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, 5568.842, -2972.543, 276.583, 0, ‘Argent Footman - On Data Set - Move to Position’),
(-115929, 0, 1, 2, 34, 0, 100, 0, 1, 0, 0, 0, 17, 13, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ‘Argent Footman - Reached Position - Emote STATE_SIT’),
(-115929, 0, 2, 0, 61, 0, 100, 0, 1, 0, 0, 0, 80, 2811700, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ‘Argent Footman - Reached Position - Load Script’);[/sql]
Event 2 would never execute, since the script would be reset → by any means it would execute only when event 1 or the actionlist is finished /it won’t use the reached position timing, because is on event pending list and if there is active event that is executing atm the rest is frozen till it is completed/ and 78 terminates all further events/actions. So use the example above, if I understood correctly you want them to sit exactly when reach the position and reset after 40+ sec.

[/CODE]

i suggest splitting the fix into smaller parts that can be accepted individually