- -- TESTS for new command 39 - RESPAWN
- --creature id 11717
- UPDATE creature_template SET MovementType = 2 WHERE Entry = 11717;
- UPDATE creature SET MovementType = 2 WHERE id = 11717;
- DELETE FROM creature_movement_template WHERE entry = 11717;
- INSERT INTO creature_movement_template (entry, point, position_x, position_y, position_z, waittime, script_id, orientation, model1, model2) VALUES
- (11717, 1, -4396.43,3178.16,58.7254, 0, 0, 2.46263, 0, 0),
- (11717, 2, -4396.43,3178.16,58.7254, 10000, 1171701, 2.46263, 0, 0);
- DELETE FROM dbscripts_on_creature_movement WHERE id = 1171701;
- INSERT INTO dbscripts_on_creature_movement (id, delay, command, datalong, datalong2, buddy_entry, search_radius, data_flags, dataint, dataint2, dataint3, dataint4, x, y, z, o, comments) VALUES
- (1171701,2,1,3,0,0,0,0,0,0,0,0,0,0,0,0,''),
- -- test for self:
- -- test after: despawn
- -- (1171701,5,18,0,0,0,0,0x04,0,0,0,0,0,0,0,0,''),
- -- test after: death
- -- (1171701,5,15,5,0,0,0,0x04,0,0,0,0,0,0,0,0,''),
- (1171701,8,39,0,0,0,0,0x04,0,0,0,0,0,0,0,0,''); -- work after both despawn and death
- -- test for buddy:
- -- test after: buddy despawn
- -- (1171701,5,18,0,0,7879,20,1,0,0,0,0,0,0,0,0,''),
- -- test after: buddy death
- -- (1171701,5,15,5,0,7879,20,1,0,0,0,0,0,0,0,0,''),
- -- (1171701,8,39,0,0,7879,20,1,0,0,0,0,0,0,0,0,''); -- doesnt work after both despawn and death(shouldnt?)
- -- TESTS for new command 40 - FLY
- DELETE FROM dbscripts_on_creature_movement WHERE id IN (2840602,2840603);
- INSERT INTO dbscripts_on_creature_movement (id, delay, command, datalong, datalong2, buddy_entry, search_radius, data_flags, dataint, dataint2, dataint3, dataint4, x, y, z, o, comments) VALUES
- (2840602,1,24,26308,0,0,0,0x08,0,0,0,0,0,0,0,0,'mount'),
- -- echo.TEST ON -- levitate
- -- (2840602,2,40,1,0,0,0,0,0,0,0,0,0,0,0,0,'levitate ON'), -- doesnt work
- -- (2840603,2,40,0,0,0,0,0,0,0,0,0,0,0,0,0,'levitate OFF'), -- doesnt work
- -- echo.TEST OFF
- -- echo.TEST ON -- fly
- (2840602,2,40,1,0,0,0,0x08,0,0,0,0,0,0,0,0,'fly ON'), -- doesnt work
- (2840603,2,40,0,0,0,0,0x08,0,0,0,0,0,0,0,0,'fly OFF'), -- doesnt work
- -- echo.TEST OFF
- (2840603,3,24,0,0,0,0,0x08,0,0,0,0,0,0,0,0,'unmount');
- -- TESTS for new command 41 - DESPAWN OBJECT
- DELETE FROM dbscripts_on_creature_movement WHERE id = 2140904;
- INSERT INTO dbscripts_on_creature_movement (id, delay, command, datalong, datalong2, buddy_entry, search_radius, data_flags, dataint, dataint2, dataint3, dataint4, x, y, z, o, comments) VALUES
- (2140904,1,28,8,0,0,0,0,0,0,0,0,0,0,0,0,'STATE_KNEEL'),
- (2140904,6,0,2,0,0,0,0,2000005488,0,0,0,0,0,0,0,''),
- (2140904,7,25,0,0,0,0,0,0,0,0,0,0,0,0,0,'RUN OFF'),
- -- echo.TEST ON
- (2140904,7,41,0,0,184798,50,7,0,0,0,0,0,0,0,0,'despawn object'), -- works
- -- echo.TEST OFF
- (2140904,8,28,0,0,0,0,0,0,0,0,0,0,0,0,0,'STATE_STAND');
- -- COMMENTS:
- -- 39 SCRIPT_COMMAND_RESPAWN_SELF
- -- Looks like respawn system doesnt recognize buddy system.
- -- reciving errors like:
- -- DB-SCRIPTS: Process table `dbscripts_on_creature_movement` id 1171701, command 39 has buddy 7879 not found in range 20 of searcher Creature (Entry: 11717 Guid: 51236) (data-flags 1), skipping.
- -- 40 SCRIPT_COMMAND_SET_FLY
- -- Doesnt work at all.. (it worked with prev. patch you gave me... smth was added into command 25 - RUN..+ 0x08 additional... gravity on off?)
- -- 41 SCRIPT_COMMAND_DESPAWN_GO
- -- Works fine