• 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 Lua Function for an Item

Deaktiver

Materia
Joined
Nov 25, 2007
Messages
637
Reaction score
4
Location
Germany
Hello,

is there a Lua-Function that removes Charges of an Item? Example: You ar pushing a Switch. You have a Card with 50 Charges and when you are pushing the switch it remove 1 Charge of the Card. Is it possible?



Deaktiver
 
Ok I think I got the script but there's a prolem with the Charges on TFS:
15:54 You see a Card that has 1 charge left.

in item.xml on this Item:

<item id="2345" article="a" name="Card">
<attribute key="weight" value="100"/>
<attribute key="charges" value="50"/>
<attribute key="showcharges" value="1"/>
<attribute key="decayTo" value="0"/>

where's the problem?
 
Back
Top