Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Examples/KaevStatTest/Server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ end

function MyHandlers.AttributesIncrease(player, statId)
if (player:IsInCombat()) then
player:SendBroadcastMessage("Du kannst während einem Kampfes keine Attributspunkte verteilen.")
player:SendBroadcastMessage("You can't assign attribute points during combat.")
else
local guid = player:GetGUIDLow()
local spend, left = AttributesPointsSpend[guid], AttributesPointsLeft[guid]
Expand All @@ -55,7 +55,7 @@ function MyHandlers.AttributesIncrease(player, statId)
return
end
if (left <= 0) then
player:SendBroadcastMessage("Du hast nicht genuegend Attributspunkte.")
player:SendBroadcastMessage("You don't have enough attribute points.")
else
AttributesPointsLeft[guid] = left - 1
spend[statId] = spend[statId] + 1
Expand All @@ -72,7 +72,7 @@ end

function MyHandlers.AttributesDecrease(player, statId)
if (player:IsInCombat()) then
player:SendBroadcastMessage("Du kannst während einem Kampfes keine Attributspunkte verteilen.")
player:SendBroadcastMessage("You can't assign attribute points during combat.")
else
local guid = player:GetGUIDLow()
local spend, left = AttributesPointsSpend[guid], AttributesPointsLeft[guid]
Expand All @@ -83,7 +83,7 @@ function MyHandlers.AttributesDecrease(player, statId)
return
end
if (spend[statId] <= 0) then
player:SendBroadcastMessage("Es sind keine Punkte auf diesem Attribut verteilt.")
player:SendBroadcastMessage("You didn't spend any attribute points on this attribute.")
else
AttributesPointsLeft[guid] = left + 1
spend[statId] = spend[statId] - 1
Expand Down