SphereCommunity
Adding item to game - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Adding item to game (/Thread-Adding-item-to-game)



Adding item to game - Tastaran - 12-24-2015 01:34 AM

Hello,

i tried to make some new items from Uo ML to my UO-LBR .... Im running on old sphere 0.99. But here is problem, I replaced useless old item(exactly shirt) in UOFiddler for my new item Elven Robe. So i replaced gump, i replaced items (2 positions) and also replaced animation.

Then i opened Tiledata and set to "Wearable,weapon and article A, and set my animation" ....Then I saved and pasted all files (art,anim,tiledata.mul) into my Ultima Online file.

But here is problem, i tried to define my new item in the script :
"
[ITEMDEF 0265F]
DEFNAME=i_robe_elven
Name=Elven robe
RESOURCES=11 i_cloth
WEIGHT=2
TYPE=T_CLOTHING
ARMOR=25
CATEGORY=NewItems
SUBSECTION=Clothes
DESCRIPTION=Elven robe with cape
SKILLMAKE=TAILORING 120.0, t_sewing_kit
RESOURCES2=5 i_cloth,1 i_thread

ON=@Create
HITPOINTS={140 150}

And this script was added into SphereTables.

But if i try to add item in game :
".add i_robe_elven" ... this item simply not exists.

Message from sphere :
admin' commands uid=0118 (GM xxx) to 'add i_robe_elven' ERR 'Parameter isnt correct.'

Here are my IDs of added item according to UoFiddler.
Object Type : 0x265F(and 0x2660 for another direction)
GUmpID : 0xC62D(50733)
Anim: 733 (anim.mul)
TileData information : http://postimg.org/image/fxlx44r9p/25af8f5e/


Can somebody help me ? I dont know how to add my item to game :/
Thank you


RE: Adding item to game - darksun84 - 12-24-2015 06:56 AM

Mul modification is ok, but did you remove the item script definition of the old item ? ( I mean if you replace an old item, you have also to update/remove the script entry of the old item).
Quickest way to check is adding the item by using the graphic value:
.add 0265f


RE: Adding item to game - Tastaran - 12-24-2015 07:22 AM

Eh u are right ... i didnt do this - its working. Thank you Big Grin

so bad mistake