[FIXED] [FIXED] custom spawn objects don't work

Here we stuff all the bugs we've managed to squash/squish/squelch.
Locked
Frozulot
UOX3 Newbie
Posts: 14
Joined: Fri Sep 02, 2005 6:37 pm
Has thanked: 0
Been thanked: 0
Contact:

[FIXED] custom spawn objects don't work

Post by Frozulot »

the problem seems to be in UOX3 can not find npcs by their id# for example i wanted to create a custom spawner to spawn pixies only and this is the method i used...

'add spawner 0x0dde
'set spawnsection 0x25b6 (also tried 'set spawnsection # 0x25b6)
'set mininterval 10
'set mininterval 30
'set type 62
'set amount 6

UOX3 says npc 0x25b6 can't be found, nor can it find any npcs by their id#
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

You must use the sectionheaders from the NPC-DFNs (uox3\dfndata\npc\) as spawnsection id.

For instance, in uox3\dfndata\npc\humanoids.dfn the first NPC defined is:

Code: Select all

[orc]
{
NAME=an orc
NAMELIST=3
ID=0x0011
...etc
You'd have to use 'SET SPAWNSECTION orc to spawn that NPC.
-= Ho Eyo He Hum =-
Frozulot
UOX3 Newbie
Posts: 14
Joined: Fri Sep 02, 2005 6:37 pm
Has thanked: 0
Been thanked: 0
Contact:

Post by Frozulot »

Thanks Xuri, i'll try it that way. To solve my problem I went into the spawn.dfn and just scripted it there.
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

Not a bad move on our part :)

The regional spawners (i.e. through spawn.dfn) are much more "efficient" than item-based ones. Since the NPCs and items they spawn aren't ever actually SAVED, but only exists for as long as UOX3 is running, you can have virtually an unlimited amount of NPCs without having it affect your worldsave-time and size. You will, of course, be limited by the amount of RAM your server runs though! =)
-= Ho Eyo He Hum =-
Locked