Forums WoW Modding Support Archives TrinityCore Discord Archives [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

[DiscordArchive] Might have found a bug with smart scripts or how something is coded. TC 3.3.5a

rektbyfaith
Administrator
0
02-14-2024, 08:08 PM
#1
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&]
rektbyfaith
02-14-2024, 08:08 PM #1

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&]

rektbyfaith
Administrator
0
02-14-2024, 08:13 PM
#2
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
rektbyfaith
02-14-2024, 08:13 PM #2

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

rektbyfaith
Administrator
0
02-14-2024, 08:13 PM
#3
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
rektbyfaith
02-14-2024, 08:13 PM #3

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

rektbyfaith
Administrator
0
02-14-2024, 08:13 PM
#4
Archived author: Tea • Posted: 2024-02-14T20:13:28.487000+00:00
Original source

and moves there
rektbyfaith
02-14-2024, 08:13 PM #4

Archived author: Tea • Posted: 2024-02-14T20:13:28.487000+00:00
Original source

and moves there

rektbyfaith
Administrator
0
02-14-2024, 08:14 PM
#5
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?
rektbyfaith
02-14-2024, 08:14 PM #5

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?

rektbyfaith
Administrator
0
02-14-2024, 08:15 PM
#6
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.
rektbyfaith
02-14-2024, 08:15 PM #6

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.

rektbyfaith
Administrator
0
02-14-2024, 08:28 PM
#7
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.
rektbyfaith
02-14-2024, 08:28 PM #7

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.

rektbyfaith
Administrator
0
02-14-2024, 08:46 PM
#8
Archived author: Tea • Posted: 2024-02-14T20:46:35.588000+00:00
Original source

eh, sounds like a bug to me
rektbyfaith
02-14-2024, 08:46 PM #8

Archived author: Tea • Posted: 2024-02-14T20:46:35.588000+00:00
Original source

eh, sounds like a bug to me

rektbyfaith
Administrator
0
02-14-2024, 10:08 PM
#9
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
rektbyfaith
02-14-2024, 10:08 PM #9

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

rektbyfaith
Administrator
0
02-14-2024, 10:09 PM
#10
Archived author: Npc • Posted: 2024-02-14T22:09:49.398000+00:00
Original source

Ukrainian and Russian
rektbyfaith
02-14-2024, 10:09 PM #10

Archived author: Npc • Posted: 2024-02-14T22:09:49.398000+00:00
Original source

Ukrainian and Russian

Recently Browsing
 
Recently Browsing