Closed xfurry closed 9 years ago
I think I remember now... @Grz3s could you please share a movie of those DK area npcs. I need to see exactly how they behave in order to make this right. I think I know what needs to be done, but a video will spare some testing time on my side.
Here is the updated version: http://paste2.org/b1xfseIB
This will make everything work. Only one question remains: do we want to have the addUnitState(UNIT_STAT_IGNORE_PATHFINDING)
together with the fly command or should we make it separate. Please confirm if it makes sense to have it as a separate command.
Poke @Grz3s and @cala about the comment above. I'd like to get this implemented and closed asap.
hey @xfurry .. i just came back from my 2 weeks holliday..I'll look at this ASAP. about your question ... is this not the same https://github.com/cmangos/mangos-wotlk/commit/c4a46d896dcf18d5ea599888caf6c9173140811e ? BTW: what happened with Respawn command?:)
I'll also look at it ASAP but I'm leaving to holidays next week, so I can't promise full testing. Regarding the flag, I have no clear opinion on the matter since no example comes to my mind. I would say that separated is better.
what happened with Respawn command?:)
Will open a new topic about that. We might need to add some extra data_flag to target dead creatures.
hey @xfurry patch tested
-- TESTS for new command 40 - 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,40,0,0,184798,50,7,0,0,0,0,0,0,0,0,'despawn object'),
-- echo.TEST OFF
(2140904,8,28,0,0,0,0,0,0,0,0,0,0,0,0,0,'STATE_STAND');
-- TESTS for new command 39 - 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,39,1,0,0,0,0,0,0,0,0,0,0,0,0,'fly ON'),
(2840603,2,39,0,0,0,0,0,0,0,0,0,0,0,0,0,'fly OFF'),
-- echo.TEST OFF
-- echo.TEST ON -- fly
-- (2840602,2,39,1,0,0,0,0x08,0,0,0,0,0,0,0,0,'ignore pathfinding ON'),
-- (2840603,2,39,0,0,0,0,0x08,0,0,0,0,0,0,0,0,'ignore pathfinding OFF'),
-- echo.TEST OFF
(2840603,3,24,0,0,0,0,0x08,0,0,0,0,0,0,0,0,'unmount');
:+1:
So, let me understand: we don't need that ignore pathfinding option?
if u'll explain what this should do..(or what will not work without it) than i can tell you.. :).. anyway as i said before ... fly worked well without using it.
Well, technically, that flag should make the creature not use the move maps. Sometimes flying creatures have issues on this. I will run a few tests myself first, before pushing this.
@Grz3s here is a proposal for respawn command: http://paste2.org/GFZ9jJOt Here is the updated version of previous patch: http://paste2.org/tmxJ93hK
Hi guys :) I just stumbled about this topic and naturally i read it ;)
@xfurry nice patches, please add a little bit more documentation to hte SEND_AI_EVENT command (to be clear to the user about sender, invoker and receiver)
For the second patch, i have one concern: be sure the database fields for the data_flags are big enough for 0x80-1
Hi @Schmoozerd I will check the DB field. Still waiting for the final sign off from @Grz3s
Since you are here, maybe you would also have some thoughts on https://github.com/cmangos/issues/issues/260 :grin:
I thought that i explained all on irc.. Not much to say here: all new commands work on tests that i showed you. even updated ver. for respawn (one that u gave me on irc) -- so even despawned buddys can be respawned
BTW: script_commands.txt should contain some info about:
40 SCRIPT_COMMAND_DESPAWN_GO -- cannot be used on gobjects Type=1 buttons ...(command doesnt work on them - they shouldnt despawn at all - and thats correct ;)
41 SCRIPT_COMMAND_RESPAWN_SELF: (your second patch - not above one)
@xfurry : I tested your latest patch this evening. Both FLY and DESPAWN GO commands are working very well (tested on WotLK core), as said Grz3s. Very good job. :+1:
Why closed? Although already unimportant
Hi,
During the last couple of weeks I received a few requests for improvements on the script engine.
I will post all the requested patches here, so everyone can share the feedback and input before I commit them to master.
1 Script Command Modify Unit Flags This was requested by @grz3s and allows changing the unit flag of a creature from DB scripts.
2 Allow DBscripts_on_spell to run for missing triggered missile spells. Also requested by @grz3s. The only problem with this one is that the error still appears even if the dbscript runs fine.
3 Add condition Creature_in_range. This was requested by @Schmoozerd in this thread: https://github.com/scriptdev2/scriptdev2/issues/93
4 The last feature allows AI event sending to all units, not only to those which are able to assist. This will make interaction between not friendly units, or not selectable units more easy. Feature requested by @ulduar
As I said in the beginning, please share your feedback on these improvements.