Creating new items

Here you can post threads requesting help on the official POL Ultima Online Emulator Core 097.
Note: Core 097 is no longer officially supported.

Moderator: POL Developer

Post Reply
darklord
New User
Posts: 13
Joined: Sat Feb 19, 2011 12:39 pm

Creating new items

Post by darklord » Mon Feb 21, 2011 7:32 am

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?

RusseL
Forum Regular
Posts: 348
Joined: Fri Feb 20, 2009 8:30 pm

Re: Creating new items

Post by RusseL » Mon Feb 21, 2011 7:56 am

Armor 0xZ001 ?! :o :o



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
}

darklord
New User
Posts: 13
Joined: Sat Feb 19, 2011 12:39 pm

Re: Creating new items

Post by darklord » Mon Feb 21, 2011 9:18 am

And what if i want to change color?

i assume:

color 50?

User avatar
Austin
Former Developer
Posts: 613
Joined: Wed Jan 25, 2006 2:30 am
Contact:

Re: Creating new items

Post by Austin » Mon Feb 21, 2011 9:47 am

This will explain all of the properties you can configure with an itemdesc.cfg

http://docs.polserver.com/pol097/config ... emdesc.cfg
-Austin

darklord
New User
Posts: 13
Joined: Sat Feb 19, 2011 12:39 pm

Re: Creating new items

Post by darklord » Mon Feb 21, 2011 3:25 pm

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

User avatar
CWO
POL Expert
Posts: 1141
Joined: Sat Feb 04, 2006 5:49 pm
Location: Chicago, IL USA
Contact:

Re: Creating new items

Post by CWO » Mon Feb 21, 2011 10:09 pm

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...)

darklord
New User
Posts: 13
Joined: Sat Feb 19, 2011 12:39 pm

Re: Creating new items

Post by darklord » Mon Feb 21, 2011 11:24 pm

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
    }

Post Reply