Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] You want to make a switch case depending on taregt unit type ?

[DiscordArchive] You want to make a switch case depending on taregt unit type ?

[DiscordArchive] You want to make a switch case depending on taregt unit type ?

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
02-25-2024, 12:30 PM
#1
Archived author: Elmsroth • Posted: 2024-02-25T12:30:20.453000+00:00
Original source

You want to make a switch case depending on taregt unit type ?
rektbyfaith
02-25-2024, 12:30 PM #1

Archived author: Elmsroth • Posted: 2024-02-25T12:30:20.453000+00:00
Original source

You want to make a switch case depending on taregt unit type ?

rektbyfaith
Administrator
0
02-25-2024, 12:40 PM
#2
Archived author: ElDiablo • Posted: 2024-02-25T12:40:33.935000+00:00
Original source

No you can just call FilterTargets in a spellscript and that should allow you to, for instance, filter based on distance or creature entry
rektbyfaith
02-25-2024, 12:40 PM #2

Archived author: ElDiablo • Posted: 2024-02-25T12:40:33.935000+00:00
Original source

No you can just call FilterTargets in a spellscript and that should allow you to, for instance, filter based on distance or creature entry

rektbyfaith
Administrator
0
02-25-2024, 12:42 PM
#3
Archived author: ElDiablo • Posted: 2024-02-25T12:42:46.652000+00:00
Original source

But who knows if I got it to work. SpellScripts are a bit finnicky
rektbyfaith
02-25-2024, 12:42 PM #3

Archived author: ElDiablo • Posted: 2024-02-25T12:42:46.652000+00:00
Original source

But who knows if I got it to work. SpellScripts are a bit finnicky

rektbyfaith
Administrator
0
02-25-2024, 12:50 PM
#4
Archived author: ElDiablo • Posted: 2024-02-25T12:50:41.563000+00:00
Original source

It's not working yet
rektbyfaith
02-25-2024, 12:50 PM #4

Archived author: ElDiablo • Posted: 2024-02-25T12:50:41.563000+00:00
Original source

It's not working yet

rektbyfaith
Administrator
0
02-25-2024, 12:53 PM
#5
Archived author: Elmsroth • Posted: 2024-02-25T12:53:19.943000+00:00
Original source

I was looking for a hook on starting trade... it does not exists so I need to implement it
rektbyfaith
02-25-2024, 12:53 PM #5

Archived author: Elmsroth • Posted: 2024-02-25T12:53:19.943000+00:00
Original source

I was looking for a hook on starting trade... it does not exists so I need to implement it

rektbyfaith
Administrator
0
02-25-2024, 12:55 PM
#6
Archived author: ElDiablo • Posted: 2024-02-25T12:55:10.740000+00:00
Original source

GL
rektbyfaith
02-25-2024, 12:55 PM #6

Archived author: ElDiablo • Posted: 2024-02-25T12:55:10.740000+00:00
Original source

GL

rektbyfaith
Administrator
0
02-25-2024, 12:55 PM
#7
Archived author: ElDiablo • Posted: 2024-02-25T12:55:33.030000+00:00
Original source

Okay so the filtering DOES work but somehow the effect still kinda hits all targets
rektbyfaith
02-25-2024, 12:55 PM #7

Archived author: ElDiablo • Posted: 2024-02-25T12:55:33.030000+00:00
Original source

Okay so the filtering DOES work but somehow the effect still kinda hits all targets

rektbyfaith
Administrator
0
02-25-2024, 01:00 PM
#8
Archived author: Elmsroth • Posted: 2024-02-25T13:00:55.538000+00:00
Original source

I want to add a : bool OnBeginTrade(Player * tradeInitiator);
rektbyfaith
02-25-2024, 01:00 PM #8

Archived author: Elmsroth • Posted: 2024-02-25T13:00:55.538000+00:00
Original source

I want to add a : bool OnBeginTrade(Player * tradeInitiator);

rektbyfaith
Administrator
0
02-25-2024, 01:01 PM
#9
Archived author: Elmsroth • Posted: 2024-02-25T13:01:11.065000+00:00
Original source

Since in my module I want to be able to disallow trade
rektbyfaith
02-25-2024, 01:01 PM #9

Archived author: Elmsroth • Posted: 2024-02-25T13:01:11.065000+00:00
Original source

Since in my module I want to be able to disallow trade

rektbyfaith
Administrator
0
02-25-2024, 01:02 PM
#10
Archived author: Elmsroth • Posted: 2024-02-25T13:02:10.468000+00:00
Original source

Just have to add a filter in the test inside the method here I think :
[Image: image.png?ex=690bf392&is=690aa212&hm=5f4...00ead8691&]
rektbyfaith
02-25-2024, 01:02 PM #10

Archived author: Elmsroth • Posted: 2024-02-25T13:02:10.468000+00:00
Original source

Just have to add a filter in the test inside the method here I think :
[Image: image.png?ex=690bf392&is=690aa212&hm=5f4...00ead8691&]

Pages (2): 1 2 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)