Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] I don't remember but I think we can make an item that summons a NPC with SQL only, right? how?

[DiscordArchive] I don't remember but I think we can make an item that summons a NPC with SQL only, right? how?

[DiscordArchive] I don't remember but I think we can make an item that summons a NPC with SQL only, right? how?

rektbyfaith
Administrator
0
01-29-2020, 08:51 PM
#1
Archived author: Barbz • Posted: 2020-01-29T20:51:23.331000+00:00
Original source

I don't remember but I think we can make an item that summons a NPC with SQL only, right? how?
rektbyfaith
01-29-2020, 08:51 PM #1

Archived author: Barbz • Posted: 2020-01-29T20:51:23.331000+00:00
Original source

I don't remember but I think we can make an item that summons a NPC with SQL only, right? how?

rektbyfaith
Administrator
0
01-29-2020, 09:08 PM
#2
Archived author: stevej • Posted: 2020-01-29T21:08:26.059000+00:00
Original source

Yes, you can do a `smart_scripts` with the `action_type` 12 if I remember correctly (**SMART_ACTION_SUMMON_CREATURE**). It's not my strong suit, but you could see several examples if you make a query of the form.
```sql
SELECT * FROM `smart_scripts` WHERE `action_type`=12 AND `source_type`=0;
```
rektbyfaith
01-29-2020, 09:08 PM #2

Archived author: stevej • Posted: 2020-01-29T21:08:26.059000+00:00
Original source

Yes, you can do a `smart_scripts` with the `action_type` 12 if I remember correctly (**SMART_ACTION_SUMMON_CREATURE**). It's not my strong suit, but you could see several examples if you make a query of the form.
```sql
SELECT * FROM `smart_scripts` WHERE `action_type`=12 AND `source_type`=0;
```

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)