[DiscordArchive] Might have found a bug with smart scripts or how something is coded. TC 3.3.5a
[DiscordArchive] Might have found a bug with smart scripts or how something is coded. TC 3.3.5a
![[Image: trinitywat.png?ex=690c5795&is=690b0615&h...857f220e5&]](https://cdn.discordapp.com/attachments/376457042392514560/1207418206160162956/trinitywat.png?ex=690c5795&is=690b0615&hm=babc208b7760bae81182c5295915318aa7a04c40f57bf90591c517a857f220e5&)
Archived author: Goatrek • Posted: 2024-02-14T20:08:53.225000+00:00
Original source
Might have found a bug with smart scripts or how something is coded. TC 3.3.5a
I smart scripted an npc with the following:
When out of combat for 10 seconds (Event Type 1) - Move to Position (ActionType 69) - Target closest player within 125 yards(target type 17,18,21 all work).
WHEN a player is within 125 yards when this event triggers its all good and does exactly as expected but if no player is within 125 yards when this triggers the bot defaults to walking towards a specific point in the world instead of well... doing nothing as Id want it to. The point in question when testing in Kalimdor is pretty centered on the map in the middle of stonetalon with coordinates added in screenshot. (it seems to like "40")
Is this me missing something obvious or is something wrong with the smart scripts here?
![[Image: trinitywat.png?ex=690c5795&is=690b0615&h...857f220e5&]](https://cdn.discordapp.com/attachments/376457042392514560/1207418206160162956/trinitywat.png?ex=690c5795&is=690b0615&hm=babc208b7760bae81182c5295915318aa7a04c40f57bf90591c517a857f220e5&)
Archived author: Tea • Posted: 2024-02-14T20:13:03.648000+00:00
Original source
one of valid targets for action 69 is "position", target type 8
Archived author: Tea • Posted: 2024-02-14T20:13:26.414000+00:00
Original source
so when no object target is found, it instead reads target x,y,z fields
Archived author: Tea • Posted: 2024-02-14T20:13:28.487000+00:00
Original source
and moves there
Archived author: Goatrek • Posted: 2024-02-14T20:14:15.268000+00:00
Original source
hmm. is there any workaround for me so I can implement the wished function as described?
Archived author: Goatrek • Posted: 2024-02-14T20:15:26.820000+00:00
Original source
the goal is to get some smartscript "gankNPcs" to engage and gank players and act more proactive in zones.
Archived author: Goatrek • Posted: 2024-02-14T20:28:15.866000+00:00
Original source
Okay, so after many hours stuck on trying to fix that above function, I could instead use action_type 29 "Follow". So he starts following a player when within X yards and then naturally changes follow to combat when combat range is triggered.
Thanks for answer on action 69 Shauren.
Archived author: Tea • Posted: 2024-02-14T20:46:35.588000+00:00
Original source
eh, sounds like a bug to me
Archived author: johnnytheplaybfoi • Posted: 2024-02-14T22:08:56.294000+00:00
Original source
so who are you then
what language you speak I mean
Archived author: Npc • Posted: 2024-02-14T22:09:49.398000+00:00
Original source
Ukrainian and Russian