This is what I have created in the meanwhile:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
if ITEMS[PLAYERS[id].Equipment[8]] and ITEMS[PLAYERS[id].Equipment[8]].effect==2 then 				if warriorBuff[id]==false then 					warriorBuff[id]=true 					local newDmg=PLAYERS[id].tmp.atk*(15/100) 					PLAYERS[id].tmp.atk=math.floor(PLAYERS[id].tmp.atk+newDmg) 				end 			else 				if warriorBuff[id]==true then 					warriorBuff[id]=false 					local newDmg=1 					if ITEMS[PLAYERS[id].Equipment[3]] and ITEMS[PLAYERS[id].Equipment[3]].atk>0 then 						local newDmg=newDmg+ITEMS[PLAYERS[id].Equipment[3]].atk 					end 					PLAYERS[id].tmp.atk=math.floor(newDmg) 				end 			end
Do you guys know how to do it the proper way?