• 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 doItemSetAttribute(uid, key, value)

GhostWD

I'm in love with the var_dump()
Joined
Jan 25, 2009
Messages
185
Solutions
6
Reaction score
29
Hi Otlanders!
Is there any possibilities to add with doItemSetAttribute(uid, key, value) healthGain and manaGain to item?
tfs 0.4

Thank You!
 
Try searching for Mock The B3ar's slot system.
I believe I saw him use it like this before.
It's a bit convoluted though.
Good Luck.
 
Hi Otlanders!
Is there any possibilities to add with doItemSetAttribute(uid, key, value) healthGain and manaGain to item?
tfs 0.4

Thank You!
Lua:
doItemSetAttribute(uid, healthGain, 2)
C++:
#define SOFTWARE_VERSION "0.4_SVN"
3884/definitions.h at master · Fir3element/3884 · GitHub

C++:
    setField(L, "healthGain", item->abilities.healthGain);
3884/luascript.cpp at f6a269fb507c6bdc77f2a94d0699e8813a801548 · Fir3element/3884 · GitHub
Try searching for Mock The B3ar's slot system.
I believe I saw him use it like this before.
It's a bit convoluted though.
Good Luck.
Mock's - Slot system
MoveEvent - Slot system - Multi slot (No crashes)
 
@Xikini he's using only stats change not regen but good point to make it by lua which i wanted to avoid :c maybe i will change to fires source and test it for stability one more time. Thank you!

@Random Number point of your post is to show me getter? I know about it but its not setter which i need but thanks for link to Mock's script thread
 
Back
Top