• 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!

More items attributes in lua scripting

dudeim

Member
Joined
Oct 5, 2007
Messages
121
Reaction score
9
Well yesterday I tried to make a lua script but then came to the conclusion I was missing function so I couldn't finish it. So I want to ask if someone can make me a functions like
setItemAttack(uid,attack)
but then for magic level, max health, max mana, all element protections including physical, all and magic, all skills (fish,shielding,melee skills,distance) and speed.

If someone could make this or show me where/how to start(never done anything with sources) I would rep for sure;)

I'm using crying damson 0.3.6 if that's important:p
Thanks
 
Last edited:
Only works with attack def/armor and extra versions of those and some like name and hitchance but not for maxhealh/mana and the elements and speed etc..
 
Code:
doItemEraseAttribute(uid, key)
doItemRaidUnref(uid)
doItemSetAttribute(uid, key, value)
getItemAttribute(uid, key)
------------------------------------------------------------
-attribute key "aid" = return the action id
-attribute key "armor" = return the item armor
-attribute key "article" = return the item article
-attribute key "attack" = return the item attack
-attribute key "attackspeed" = return the item attackspeed
-attribute key "charges" = return the item charges
-attribute key "date" = return the item data when was written
-attribute key "decaying" = return if the item is decaying
-attribute key "defense" = return the item defense
-attribute key "depotid" = return the item depot id
-attribute key "description" = return the item description
-attribute key "duration" = return the duration of decaying
-attribute key "extraattack" = return the item extra attack
-attribute key "extradefense" = return the item extra defense
-attribute key "fluidtype" = return the item fluid type
-attribute key "hitchance" = return the item hitchance
-attribute key "name" = return the item name
-attribute key "pluralname" = return the item plural name (gold conin -> gold coins)
-attribute key "scriptprotected" = not sure what this means exactly
-attribute key "shootrange" = return the item shoot range
-attribute key "text" = return the item text
-attribute key "uid" = return the unique id
-attribute key "weight" = return the item weight
-attribute key "writer" = return the item writer
------------------------------------------------------------

If I remember it right I've just had some problems with getItemAttribute(...) in 0.3.6.
 
Hmm ok but as I said it's limited to few of the important (stat changing) attributes like maxhealth and element protection so if it's not makeable in sources or something I'll wait till it's in a version of any server;)
 
Back
Top Bottom