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:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Item properties changing
Author Message
Tastaran
Apprentice
*

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



Post: #1
Item properties changing
Hi,

dealing with another problem.

How can I change some property of item (which is defined) in-game (like armor, reqstr,resources ...) ?

for example : serv.typedef.i_platemail_arms.armor=40 (ofc. this doesnt work)

Thanks.
04-18-2017 08:25 AM
Find all posts by this user Like Post Quote this message in a reply
escribano
Journeyman
*

Posts: 170
Likes Given: 16
Likes Received: 32 in 23 posts
Joined: Nov 2012
Reputation: 2

Dragon Shard

Post: #2
RE: Item properties changing
You can use tag.override (look at the wiki there is info about)
You can use mod<ar/str/int/dex> +=X or -=X
You can use resphysical=X (if using elemental combat engine)

Hope it helps Smile

UltimaPHP - OpenSource Ultima Online Server v0.1-pre-alpha under development, we need help!
04-18-2017 09:17 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: Item properties changing
I need to modify all (or most of them) properties of item in-game. Simply settings of the game, which i can modify for all items in game and new items in game (global changing of property).
(This post was last modified: 04-18-2017 09:28 PM by Tastaran.)
04-18-2017 09:25 PM
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: #4
RE: Item properties changing
Solved ... U can change it in this way : serv.itemdef.<id>.<property>=<value>

But is it possible to change property of all existing things ? (not only new)
04-19-2017 04:09 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: #5
RE: Item properties changing
You have to use FORINSTANCES
Example:

FORINSTANCES i_mace
name = blablabla
ENDFOR
04-19-2017 05:54 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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