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

[0.3.6pl1] Setting weapon element in LUA

Joined
Jun 16, 2008
Messages
626
Reaction score
3
Location
Gdańsk, Ustka
Hello, i have following problem.

I'd like to change weapon attributes (elementIce, elementFire etc.) dynamically in LUA.

I tried to do it via doItemSetAttribute:
Code:
doItemSetAttribute(item.uid, "elementIce", 5)
but with no result.

Any ideas?
 
Not possible without source edit.
You can use a weapon script. Set the aid of the weapon to special values (like 100 for fire, 101 for ice)
and in the weapon script you get the players weapon, check it's action id and do combat depending on the aid
 
Back
Top