[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?
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?
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;
```