Spawners

Forum where anything UOX3-related goes - including, but not limited to: newbie-support, ideas, general questions, comments, etc and-so-forth.
Post Reply
dragon slayer
UOX3 Guru
Posts: 776
Joined: Thu Dec 21, 2006 7:37 am
Has thanked: 4 times
Been thanked: 26 times

Spawners

Post by dragon slayer »

How do i acreate a spawner item in the items.dfn file like the old uox had spawners would spawn stuff like npcs and items.

is it like this?

[gingsengspawner]
{
NAME=ginseng plant generator
ID=1397
TYPE=61
DECAY=1
MOREX=
MOREY=4
MOREZ=5
VISIBLE=1
}

for items
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 »

There are some other spawner objects you can compare your setup to in dfndata\items\gmmenu\spawners.dfn. Basically the changes from earlier UOX3 is that we no longer use the MOREX, MOREY and MOREZ values to determine what spawns, when it spawns and how much of it spawns - but rather the following tags:

interval=mintime maxtime (in minutes)
spawnobj=npcid/itemid (orc, m_tailor, 0x04a9, swordofathousandtruths, etc)
amount=# (max number to spawn, I think)
-= Ho Eyo He Hum =-
dragon slayer
UOX3 Guru
Posts: 776
Joined: Thu Dec 21, 2006 7:37 am
Has thanked: 4 times
Been thanked: 26 times

Post by dragon slayer »

oh hehe I'm guessing they docs on the website pretty out of date stuff hehe
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 »

Possibly :) Point me to the doc and I can update it :P

Xuri's UOX3 Guide is supposedly up-to-date-ish ;D
-= Ho Eyo He Hum =-
dragon slayer
UOX3 Guru
Posts: 776
Joined: Thu Dec 21, 2006 7:37 am
Has thanked: 4 times
Been thanked: 26 times

Post by dragon slayer »

I'm getting a error after redoing my spawner

this is my spawner

[mandrakespawner]
{
get=base_item
name=mandrake plant generator
id=0x1397
type=61
decay=1
spawnobj=mandrakeplant
interval=1 1
amount=1
visible=1
}

but when trys to spawn item reads this to uox consol
warning unknown items dfn tag 182 1 1
dragon slayer
UOX3 Guru
Posts: 776
Joined: Thu Dec 21, 2006 7:37 am
Has thanked: 4 times
Been thanked: 26 times

Post by dragon slayer »

http://guide.uox3.org/ this one lOL same one i think
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 »

When spawning the spawner-item, you need to do it either through a ADDSPAWNER tag in ItemMenu.bulk.dfn, or through 'ADD SPAWNER mandrakespawner. If you try to spawn it as you would a normal item ('ADD ITEM mandrakespawner) it will fail because the object won't be the correct type.

Ah drat, the 2.07 - Spawning section of the guide is up-to-date, but the list of itemtypes still refers to MOREX, MOREY, etc. I'll have to fix that.
Last edited by Xuri on Thu Dec 01, 2011 9:48 pm, edited 1 time in total.
-= Ho Eyo He Hum =-
dragon slayer
UOX3 Guru
Posts: 776
Joined: Thu Dec 21, 2006 7:37 am
Has thanked: 4 times
Been thanked: 26 times

Post by dragon slayer »

aw okay thanks xuri
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 »

Oops, I meant "when spawning a spawner-item..." in my previous post, not when spawning any item. Just to clear that up for the future. :P
-= Ho Eyo He Hum =-
dragon slayer
UOX3 Guru
Posts: 776
Joined: Thu Dec 21, 2006 7:37 am
Has thanked: 4 times
Been thanked: 26 times

Post by dragon slayer »

i understand hehe. It all works thanks for helping me on this. been my biggest helper since i started to get back into the scripting grrooooove
Post Reply