Forcing a shop to contain a specific ego

A place to post your add ons and ideas for them

Moderator: Moderator

Post Reply
Message
Author
roffster
Cornac
Posts: 38
Joined: Wed Dec 16, 2015 7:14 am

Forcing a shop to contain a specific ego

#1 Post by roffster »

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?

astralInferno
Uruivellas
Posts: 834
Joined: Mon Jan 27, 2014 10:40 am

Re: Forcing a shop to contain a specific ego

#2 Post by astralInferno »

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.

Zizzo
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

#3 Post by Zizzo »

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.
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.
"Blessed are the yeeks, for they shall inherit Arda..."

Post Reply