Page 1 of 1
Creating new items
Posted: Mon Feb 21, 2011 7:32 am
by darklord
I am trying to create new items, for example here is one:
Code: Select all
Armor 0xZ001
{
//Main Stuff
Name DragonLeatherGorget
Desc dragon leather gorget
VendorBuysFor 37
VendorSellsFor 74
//Equipment Info
MaxHP 35
StrRequired 10
//Armor Info
AR 50
Coverage Neck
//Scripts
DestroyScript onDestroy
//Custom Values
MedLoss 100
Color 30
}
Now i have figert out i need to define desc but cant find where i have to define that also i assume the color i wish to use is defined in there.
Could anybody help me please where i am able to find to define desc?
Re: Creating new items
Posted: Mon Feb 21, 2011 7:56 am
by RusseL
Armor 0x
Z001 ?!
Graphic 0x.....
You can find it in
UOFiddler
Code: Select all
Weapon 0x5045
{
Name AxeOfPower
Graphic 0x0F49
Desc magic axe
Speed 23
Damage 6d10
MinDam 6
MaxDam 60
Attribute Swordsmanship
MaxHP 100
HitSound 0x237
MissSound 0x23A
VendorSellsFor 48
VendorBuysFor 24
blockcircle 1
minrange 0
maxrange 1
TwoHanded 1
strrequired 35
Anim 0x000c
hitscript mainhitscript
controlscript makehitscript
equipscript equipweapon
unequipscript unequipweapon
destroyscript destroyweapon
BlocksCastingIfInHand 0
}
Re: Creating new items
Posted: Mon Feb 21, 2011 9:18 am
by darklord
And what if i want to change color?
i assume:
color 50?
Re: Creating new items
Posted: Mon Feb 21, 2011 9:47 am
by Austin
This will explain all of the properties you can configure with an itemdesc.cfg
http://docs.polserver.com/pol097/config ... emdesc.cfg
Re: Creating new items
Posted: Mon Feb 21, 2011 3:25 pm
by darklord
What i cant figer out yet is:
[CreateScript (string scriptname)]
Is this a script i need to make with tailoring (in this case) i have been searching trough the link you gave me but cant seems to find it
Re: Creating new items
Posted: Mon Feb 21, 2011 10:09 pm
by CWO
CreateScript is optional. The CreateScript would be run on item creation to be able to do whatever you have to do on its creation (set random magical properties, ect...)
Re: Creating new items
Posted: Mon Feb 21, 2011 11:24 pm
by darklord
So let me try to get this
If i would use this script it should run without errors?
Code: Select all
Armor 0x5001
{
//Main Stuff
Name DragonLeatherGorget
Desc dragon leather gorget
Graphic 0x13d6
VendorBuysFor 80
//Equipment Info
MaxHP 35
StrRequired 10
//Armor Info
AR 50
Coverage Neck
//Scripts
DestroyScript onDestroy
//Custom Values
MedLoss 100
Color 30
}