• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Item Attributes, a fucking omgzmoamgogam DOUBT.

Narzerus

Full-stack developer and old OT Developer
Joined
Oct 29, 2007
Messages
202
Reaction score
11
I managed to make my own item sockets system to which you add this "Enhancers" which improve the item. I can't find which is the attribute for doSetItemAttribute(uid, key, value) for the protections (fire protection etc.)


I gave up with shootrange too seems TFS 3.6 pl1 does not have it.


I appreciate any help, a list of keys would be gorgeous


THANKZ!
 
I managed to make my own item sockets system to which you add this "Enhancers" which improve the item. I can't find which is the attribute for doSetItemAttribute(uid, key, value) for the protections (fire protection etc.)


I gave up with shootrange too seems TFS 3.6 pl1 does not have it.


I appreciate any help, a list of keys would be gorgeous


THANKZ!

From items.xml:

Code:
<item id="7886" name="terra boots">
		<attribute key="weight" value="750" />
		<attribute key="armor" value="2" />
		<attribute key="slotType" value="feet" />
		<attribute key="absorbPercentEarth" value="5" />
		<attribute key="absorbPercentFire" value="-5" />
	</item>

Is this what you are looking for?

if you set:
Code:
<attribute key="absorbPercentFire" value="-100" />
-100% of damage (Like double damage)


Code:
<attribute key="absorbPercentFire" value="100" />
100% proection to fire, no damage
 
Yes i know that's the key for XML but it wont work on LUA. I.E: doItemSetAttribute(uid, "absorbpercentfire", 100)

Nothing happens, not even an error output on console.

Thanks for answering :)
 
[cpp] ATTR_TILE_FLAGS = 3,
ATTR_ACTION_ID = 4,
ATTR_UNIQUE_ID = 5,
ATTR_TEXT = 6,
ATTR_DESC = 7,
ATTR_TELE_DEST = 8,
ATTR_ITEM = 9,
ATTR_DEPOT_ID = 10,
ATTR_RUNE_CHARGES = 12,
ATTR_HOUSEDOORID = 14,
ATTR_COUNT = 15,
ATTR_DURATION = 16,
ATTR_DECAYING_STATE = 17,
ATTR_WRITTENDATE = 18,
ATTR_WRITTENBY = 19,
ATTR_SLEEPERGUID = 20,
ATTR_SLEEPSTART = 21,
ATTR_CHARGES = 22,
ATTR_CONTAINER_ITEMS = 23,
ATTR_NAME = 30,
ATTR_PLURALNAME = 31,
ATTR_ATTACK = 33,
ATTR_EXTRAATTACK = 34,
ATTR_DEFENSE = 35,
ATTR_EXTRADEFENSE = 36,
ATTR_ARMOR = 37,
ATTR_ATTACKSPEED = 38,
ATTR_HITCHANCE = 39,
ATTR_SHOOTRANGE = 40,
ATTR_ARTICLE = 41,
ATTR_SCRIPTPROTECTED = 42,
ATTR_DUALWIELD = 43,[/cpp]

These are all attributes, k?
 
Back
Top