Forcing a shop to contain a specific ego
Moderator: Moderator
Forcing a shop to contain a specific ego
So I've started developing my very first addon, which involves creating a new shop. Currently, I can make the shop, spawn random items, spawn specific artifacts, spawn random artificats, but I can't figure out how to make it spawn a fixed ego item (eg. leather cap of the depths). Does anyone know anyway to force egos when populating shops inventories?
-
- Uruivellas
- Posts: 834
- Joined: Mon Jan 27, 2014 10:40 am
Re: Forcing a shop to contain a specific ego
Zizzo's Nur Kit addon forces the merchant shop to spawn an 'of the deeps' and 'of the fish' and 'of unlife' item, iirc? Looking at that might help.
-
- Sher'Tul Godslayer
- Posts: 2517
- Joined: Thu Jan 23, 2003 8:13 pm
- Location: A shallow water area south of Bree
- Contact:
Re: Forcing a shop to contain a specific ego
It is annoyingly complicated, alas. The engine's default Zone:finishEntity() really isn't up to the task for our purposes, so you'll have to superload it with some extra handling.astralInferno wrote:Zizzo's Nur Kit addon forces the merchant shop to spawn an 'of the deeps' and 'of the fish' and 'of unlife' item, iirc? Looking at that might help.
"Blessed are the yeeks, for they shall inherit Arda..."