The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding item to game
Author Message
Tastaran
Apprentice
*

Posts: 18
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Dec 2015
Reputation: 0



Post: #1
Adding item to game
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
12-24-2015 01:34 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: Adding item to game
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
(This post was last modified: 12-24-2015 06:58 AM by darksun84.)
12-24-2015 06:56 AM
Find all posts by this user Like Post Quote this message in a reply
Tastaran
Apprentice
*

Posts: 18
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Dec 2015
Reputation: 0



Post: #3
RE: Adding item to game
Eh u are right ... i didnt do this - its working. Thank you Big Grin

so bad mistake
(This post was last modified: 12-24-2015 07:30 AM by Tastaran.)
12-24-2015 07:22 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)