Skip to content

Commit 68e68df

Browse files
committed
typo
1 parent f8c0133 commit 68e68df

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

data/lib/050-function.lua

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ function convertTimeNumber(a)
887887
end
888888
end
889889

890-
function mathtime(table) -- by dwarfer
890+
function mathtime(table)
891891
local unit = {"sec", "min", "hour", "day"}
892892
for i, v in pairs(unit) do
893893
if v == table[2] then
@@ -1243,7 +1243,7 @@ function warnPlayersWithStorage(storage, value, class, message)
12431243
end
12441244
end
12451245

1246-
function getPlayerStorageZero(cid, storage) -- By Killua
1246+
function getPlayerStorageZero(cid, storage)
12471247
local sto = getPlayerStorageValue(cid, storage)
12481248
return sto > 0 and sto or 0
12491249
end
@@ -1258,12 +1258,12 @@ function getPlayerIdByName(name)
12581258
return 0
12591259
end
12601260

1261-
function getStorageZero(storage) -- By Killua
1261+
function getStorageZero(storage)
12621262
local sto = getGlobalStorageValue(storage)
12631263
return sto > 0 and sto or 0
12641264
end
12651265

1266-
function countTable(table) -- By Killua
1266+
function countTable(table)
12671267
local y = 0
12681268
if type(table) == "table" then
12691269
for _ in pairs(table) do
@@ -1275,7 +1275,7 @@ function countTable(table) -- By Killua
12751275
return false
12761276
end
12771277

1278-
function getPlayersInArea(frompos, topos) -- By Killua
1278+
function getPlayersInArea(frompos, topos)
12791279
local players_ = {}
12801280
local count = 1
12811281
for _, pid in pairs(getPlayersOnline()) do
@@ -1305,7 +1305,7 @@ function getMonstersInArea(pos1,pos2)
13051305
end
13061306
end
13071307

1308-
function getContainerItemsInfo(containerUid) -- By Killua
1308+
function getContainerItemsInfo(containerUid)
13091309
local table = {}
13101310
if containerUid and containerUid > 0 then
13111311
local a = 0
@@ -1320,7 +1320,7 @@ function getContainerItemsInfo(containerUid) -- By Killua
13201320
return false
13211321
end
13221322

1323-
function getTableEqualValues(table) -- By Killua
1323+
function getTableEqualValues(table)
13241324
local ck = {}
13251325
local eq = {}
13261326
if type(table) == "table" then
@@ -1339,7 +1339,7 @@ function getTableEqualValues(table) -- By Killua
13391339
return false
13401340
end
13411341

1342-
function killuaGetItemLevel(uid) -- By Killua
1342+
function killuaGetItemLevel(uid)
13431343
local name = getItemName(uid)
13441344
local pos = 0
13451345
for i = 1, #name do
@@ -1353,7 +1353,7 @@ function killuaGetItemLevel(uid) -- By Killua
13531353
end
13541354

13551355
k_table_storage_lib = {
1356-
filtrateString = function(str) -- By Killua
1356+
filtrateString = function(str)
13571357
local tb, x, old, last = {}, 0, 0, 0
13581358
local first, second, final = 0, 0, 0
13591359
if type(str) ~= "string" then
@@ -1376,7 +1376,7 @@ k_table_storage_lib = {
13761376
return tb
13771377
end,
13781378

1379-
translateIntoString = function(tb) -- By Killua
1379+
translateIntoString = function(tb)
13801380
local str = ""
13811381
if type(tb) ~= "table" then
13821382
return str
@@ -1389,23 +1389,23 @@ k_table_storage_lib = {
13891389
end
13901390
}
13911391

1392-
function setPlayerTableStorage(cid, key, value) -- By Killua
1392+
function setPlayerTableStorage(cid, key, value)
13931393
return doPlayerSetStorageValue(cid, key, k_table_storage_lib.translateIntoString(value))
13941394
end
13951395

1396-
function getPlayerTableStorage(cid, key) -- By Killua
1396+
function getPlayerTableStorage(cid, key)
13971397
return k_table_storage_lib.filtrateString(getPlayerStorageValue(cid, key))
13981398
end
13991399

1400-
function setGlobalTableStorage(key, value) -- By Killua
1400+
function setGlobalTableStorage(key, value)
14011401
return setGlobalStorageValue(key, k_table_storage_lib.translateIntoString(value))
14021402
end
14031403

1404-
function getGlobalTableStorage(key) -- By Killua
1404+
function getGlobalTableStorage(key)
14051405
return k_table_storage_lib.filtrateString(getGlobalStorageValue(key))
14061406
end
14071407

1408-
function printTableKillua(table, includeIndices,prnt) -- By Killua
1408+
function printTableKillua(table, includeIndices,prnt)
14091409
if includeIndices == nil then
14101410
includeIndices = true
14111411
end
@@ -1437,7 +1437,7 @@ function printTableKillua(table, includeIndices,prnt) -- By Killua
14371437
return str
14381438
end
14391439

1440-
function checkString(str) -- By Killua
1440+
function checkString(str)
14411441
local check = true
14421442
for i = 1, #str do
14431443
local letra = string.byte(str:sub(i,i))
@@ -1568,7 +1568,7 @@ function ResetSystem:updateHealthAndMana(pid)
15681568
if (newMaxHealth > oldMaxHealth) then
15691569
doCreatureAddHealth(pid, newMaxHealth - oldMaxHealth)
15701570
elseif (newMaxHealth < oldMaxHealth) then
1571-
doCreatureAddHealth(pid, 1) -- evita barra bugada
1571+
doCreatureAddHealth(pid, 1) -- avoids buggy bar
15721572
end
15731573

15741574
if (newMaxMana > oldMaxMana) then
@@ -1592,17 +1592,17 @@ function ResetSystem:execute(pid)
15921592
self:updateHealthAndMana(pid)
15931593
local bonus = self:getInfo(pid)
15941594
if (bonus) then
1595-
local message = "Você efetuou seu " .. self:getCount(pid) .. "° reset."
1595+
local message = "You made your " .. self:getCount(pid) .. "° reset."
15961596
if (bonus.damage_percent) then
1597-
message = message .. "\n+" .. bonus.damage_percent .. "% de dano"
1597+
message = message .. "\n+" .. bonus.damage_percent .. "% of damage"
15981598
end
15991599

16001600
if (bonus.hpmp_percent) then
1601-
message = message .. "\n+" .. bonus.hpmp_percent .. "% de vida e mana"
1601+
message = message .. "\n+" .. bonus.hpmp_percent .. "% of life and mana"
16021602
end
16031603

16041604
if (bonus.exp_percent) then
1605-
message = message .. "\n+" .. bonus.exp_percent .. "% de EXP"
1605+
message = message .. "\n+" .. bonus.exp_percent .. "% of EXP"
16061606
end
16071607
doPlayerSendTextMessage(pid, MESSAGE_EVENT_ADVANCE, message)
16081608
end

0 commit comments

Comments
 (0)