quick questions - If they actually are

Need help with your JScripts? Got questions concerning the DFNs? Come forward, step inside :)
Post Reply
careous
UOX3 Newbie
Posts: 5
Joined: Sat Jan 15, 2005 6:40 am
Has thanked: 0
Been thanked: 0

quick questions - If they actually are

Post by careous »

on my shard, i have new chars log in at the brit inn. I want to be able to spawn x amount of gold, x amount of bandages, and something like an etheral horse in thier pack. Or an etheral statue on the ground of the inn every so often. .Can anyone give me any tips..

VERY new to the scripting, but have been looking at examples of other "better" scripters.
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 can control how much gold starting players get, from uox.ini:

Code: Select all

[startup]
{
STARTGOLD=1000
As for other items, you can control that from UOX3/DFNDATA/NEWBIE/newbie.dfn (hm I wonder why gold isn't controlled from here). You can specify there which items are added to new players depending on the skills they choose, as well as define the "default" starting items for all players (listed at the very bottom of the file).

To give 100 bandages to all new players, you could add the following line to the [DEFAULT] section at the bottom of newbie.dfn:

PACKITEM=0x0E21,100

Where 0x0E21 is the hex-id of the bandage-item (found in UOX3/DFNDATA/ITEMS/SKILLS/TOOLS/healing.dfn, and 100 is the amount of items to add =)

Same with any other items. If you find the items in the DFN-files, you can add them by entering either PACKITEM= or EQUIPITEM= in newbie.dfn, followed by the hex-id of those items you want to add plus the amount.
-= Ho Eyo He Hum =-
Post Reply