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

healing system

ConAn Edujawa

Member
Joined
Feb 23, 2015
Messages
457
Reaction score
17
i search for someone help me in healing system
if player have 10x storage heal more than player have 5x storage
im use tfs 0.4
 
Lua:
local healing_base_value = 100
local healing_multiplier = getPlayerStorageValue(cid, 45001)
local heal_amount = healing_multiplier * healing_base_value

100 * 5 = 500
100 * 10 = 1000
 
Lua:
local healing_base_value = 100
local healing_multiplier = getPlayerStorageValue(cid, 45001)
local heal_amount = healing_multiplier * healing_base_value

100 * 5 = 500
100 * 10 = 1000
can be in source better ??? because i need it work like this
when 2 player druid same lvl and same ml but player have 50 storage and other have 30 storage
the player have 50 storage heal mana and exurs vita and exura sio more than player have 30 storage
 
Back
Top