Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] Mind if you show me how you did it?

[DiscordArchive] Mind if you show me how you did it?

[DiscordArchive] Mind if you show me how you did it?

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
08-06-2025, 12:47 AM
#1
Archived author: Dioxain • Posted: 2025-08-06T00:47:12.616000+00:00
Original source

Mind if you show me how you did it?
rektbyfaith
08-06-2025, 12:47 AM #1

Archived author: Dioxain • Posted: 2025-08-06T00:47:12.616000+00:00
Original source

Mind if you show me how you did it?

rektbyfaith
Administrator
0
08-06-2025, 12:48 AM
#2
Archived author: Dioxain • Posted: 2025-08-06T00:48:13.349000+00:00
Original source

I know how to add a new gossip menu option for the database, but I haven't a clue about "spell cast smart script"
[Image: image.png?ex=690bf04d&is=690a9ecd&hm=42e...c130229e9&]
rektbyfaith
08-06-2025, 12:48 AM #2

Archived author: Dioxain • Posted: 2025-08-06T00:48:13.349000+00:00
Original source

I know how to add a new gossip menu option for the database, but I haven't a clue about "spell cast smart script"
[Image: image.png?ex=690bf04d&is=690a9ecd&hm=42e...c130229e9&]

rektbyfaith
Administrator
0
08-06-2025, 12:50 AM
#3
Archived author: Mithria • Posted: 2025-08-06T00:50:05.600000+00:00
Original source

the only issue is you'd have to attach the script to every barber in the game individually so it'd be a fair bit of them
rektbyfaith
08-06-2025, 12:50 AM #3

Archived author: Mithria • Posted: 2025-08-06T00:50:05.600000+00:00
Original source

the only issue is you'd have to attach the script to every barber in the game individually so it'd be a fair bit of them

rektbyfaith
Administrator
0
08-06-2025, 12:50 AM
#4
Archived author: Dioxain • Posted: 2025-08-06T00:50:25.943000+00:00
Original source

fine by me Smile
rektbyfaith
08-06-2025, 12:50 AM #4

Archived author: Dioxain • Posted: 2025-08-06T00:50:25.943000+00:00
Original source

fine by me Smile

rektbyfaith
Administrator
0
08-06-2025, 12:56 AM
#5
Archived author: Mithria • Posted: 2025-08-06T00:56:57.391000+00:00
Original source

in the smart_scripts table, you have to add a script for the creature you're adding this to
`entryorguid` = the entry of the creature you're adding this to
`source_type` = 0 (this means its a creature)
`event_type` = 62 (this is on gossip select)
`event_param1` = 9781 (this is barber gossip id)
`event_param2` = 0 (this is your gossip optionID)
`action_type` = 11 (this is cast spell)
`action_param1` = spell id of spell that will be cast
`action_param2` = 2 (this means triggered spell)
`target_type` = 7 (this means invoker, or the one who caused this event to occur)

you also have to change the npc's AIName in creature_template to SmartAI so it will use the smart scripts table
rektbyfaith
08-06-2025, 12:56 AM #5

Archived author: Mithria • Posted: 2025-08-06T00:56:57.391000+00:00
Original source

in the smart_scripts table, you have to add a script for the creature you're adding this to
`entryorguid` = the entry of the creature you're adding this to
`source_type` = 0 (this means its a creature)
`event_type` = 62 (this is on gossip select)
`event_param1` = 9781 (this is barber gossip id)
`event_param2` = 0 (this is your gossip optionID)
`action_type` = 11 (this is cast spell)
`action_param1` = spell id of spell that will be cast
`action_param2` = 2 (this means triggered spell)
`target_type` = 7 (this means invoker, or the one who caused this event to occur)

you also have to change the npc's AIName in creature_template to SmartAI so it will use the smart scripts table

rektbyfaith
Administrator
0
08-06-2025, 12:57 AM
#6
Archived author: Mithria • Posted: 2025-08-06T00:57:21.729000+00:00
Original source

then you make the spell that will be cast in spell_dbc, and attach a spell script to it that you code in c++
rektbyfaith
08-06-2025, 12:57 AM #6

Archived author: Mithria • Posted: 2025-08-06T00:57:21.729000+00:00
Original source

then you make the spell that will be cast in spell_dbc, and attach a spell script to it that you code in c++

rektbyfaith
Administrator
0
08-06-2025, 12:59 AM
#7
Archived author: Mithria • Posted: 2025-08-06T00:59:01.635000+00:00
Original source

i also recommend adding another gossip menu with text explaining what just happened and adding that menu id to the ActionMenuID field for the gossip_menu_option you made, that way it will run the smart script on option select, and display a gossip page that explains to the player that they are flagged for a recustomization
rektbyfaith
08-06-2025, 12:59 AM #7

Archived author: Mithria • Posted: 2025-08-06T00:59:01.635000+00:00
Original source

i also recommend adding another gossip menu with text explaining what just happened and adding that menu id to the ActionMenuID field for the gossip_menu_option you made, that way it will run the smart script on option select, and display a gossip page that explains to the player that they are flagged for a recustomization

rektbyfaith
Administrator
0
08-06-2025, 12:59 AM
#8
Archived author: Mithria • Posted: 2025-08-06T00:59:03.081000+00:00
Original source

or something
rektbyfaith
08-06-2025, 12:59 AM #8

Archived author: Mithria • Posted: 2025-08-06T00:59:03.081000+00:00
Original source

or something

rektbyfaith
Administrator
0
08-06-2025, 12:59 AM
#9
Archived author: Mithria • Posted: 2025-08-06T00:59:19.272000+00:00
Original source

i gtg to the store but you can ask me whatever and i'll get back to you
rektbyfaith
08-06-2025, 12:59 AM #9

Archived author: Mithria • Posted: 2025-08-06T00:59:19.272000+00:00
Original source

i gtg to the store but you can ask me whatever and i'll get back to you

rektbyfaith
Administrator
0
08-06-2025, 01:03 AM
#10
Archived author: Dioxain • Posted: 2025-08-06T01:03:07.172000+00:00
Original source

blimey o.o I'm going to have to document that extensively in my code or else I'll have no idea coming back to it months later xD
rektbyfaith
08-06-2025, 01:03 AM #10

Archived author: Dioxain • Posted: 2025-08-06T01:03:07.172000+00:00
Original source

blimey o.o I'm going to have to document that extensively in my code or else I'll have no idea coming back to it months later xD

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