Custom Resources

Need help with your JScripts? Got questions concerning the DFNs? Come forward, step inside :)
Post Reply
Benedict
UOX3 Newbie
Posts: 11
Joined: Thu Mar 25, 2010 3:33 pm
Location: Western Cape
Has thanked: 0
Been thanked: 0

Custom Resources

Post by Benedict »

Hello Again

I've been working on some custom resources (hides for tailoring)

I've figured out how to get the creatures to give me the custom hides, what I can't figure out is how to actually craft the stuff into items.

Well basically I just get a normal pair of leather items.
Same problem with the ores. Has anyone figured out a solution to this little dalema?

Thanks in Advance
Benedict

PS: Also got a whole list of magical clothing which works. :twisted:
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 »

Hm. You'll have to setup your custom stuff with unique menu/submenu entries and item numbers in the DFN files in the uox3/dfndata/create/ folder.
Example of a custom entry:

Code: Select all

[ITEM 166]
{
NAME=custom leather gloves
ID=0x13c6
[color=orange]RESOURCE=LEATHER 3 0x1339[/color]
SKILL=34 518 1020
[color=orange]ADDITEM=custom-0x13c6[/color]
MINRANK=1
MAXRANK=10
SOUND=0x0248
}
The above entry in tailoring.dfn would let you craft an item with "custom-0x13c6" as its unique DFN header, as long as you have 3 LEATHER-resources (which items are defined as LEATHER is determined in resources.dfn) of the color "0x1339" (which should be replaced with the color of your custom hides)

The same method is used when crafting stuff from other ore-colors. Custom ores you can mine and their colors are defined at the bottom of dfndata/skills/skills.dfn btw.

Edit: Also, moving this to the Scripting Department as this forum is reserved for posting custom DFN stuff that can be downloaded by others :)
-= Ho Eyo He Hum =-
LeoX9
UOX3 Novice
Posts: 55
Joined: Fri Nov 18, 2011 9:19 am
Location: Arizona, USA
Has thanked: 0
Been thanked: 0

Post by LeoX9 »

I have a question regarding this... I've been trying to do the same, however, I can't seem to cut any 'raw hides' into 'cut up leather'....

Any thoughts on this?
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 »

That is normally done with the use of scissors, correct? It's possible that the "cut hides into leather"-part is currently missing from UOX3. I'll check into this when I get home.
-= Ho Eyo He Hum =-
LeoX9
UOX3 Novice
Posts: 55
Joined: Fri Nov 18, 2011 9:19 am
Location: Arizona, USA
Has thanked: 0
Been thanked: 0

Post by LeoX9 »

You are right Xuri, I went and looked at the script for 'scissors', and discovered that it has the checks for 'if bolt', and 'if cloth', but none for leather... It would be pretty simple to write it in... I'll post the fix if I can figure it out

<----- Still new to JScript :P
Post Reply