@@ -887,7 +887,7 @@ function convertTimeNumber(a)
887
887
end
888
888
end
889
889
890
- function mathtime (table ) -- by dwarfer
890
+ function mathtime (table )
891
891
local unit = {" sec" , " min" , " hour" , " day" }
892
892
for i , v in pairs (unit ) do
893
893
if v == table [2 ] then
@@ -1243,7 +1243,7 @@ function warnPlayersWithStorage(storage, value, class, message)
1243
1243
end
1244
1244
end
1245
1245
1246
- function getPlayerStorageZero (cid , storage ) -- By Killua
1246
+ function getPlayerStorageZero (cid , storage )
1247
1247
local sto = getPlayerStorageValue (cid , storage )
1248
1248
return sto > 0 and sto or 0
1249
1249
end
@@ -1258,12 +1258,12 @@ function getPlayerIdByName(name)
1258
1258
return 0
1259
1259
end
1260
1260
1261
- function getStorageZero (storage ) -- By Killua
1261
+ function getStorageZero (storage )
1262
1262
local sto = getGlobalStorageValue (storage )
1263
1263
return sto > 0 and sto or 0
1264
1264
end
1265
1265
1266
- function countTable (table ) -- By Killua
1266
+ function countTable (table )
1267
1267
local y = 0
1268
1268
if type (table ) == " table" then
1269
1269
for _ in pairs (table ) do
@@ -1275,7 +1275,7 @@ function countTable(table) -- By Killua
1275
1275
return false
1276
1276
end
1277
1277
1278
- function getPlayersInArea (frompos , topos ) -- By Killua
1278
+ function getPlayersInArea (frompos , topos )
1279
1279
local players_ = {}
1280
1280
local count = 1
1281
1281
for _ , pid in pairs (getPlayersOnline ()) do
@@ -1305,7 +1305,7 @@ function getMonstersInArea(pos1,pos2)
1305
1305
end
1306
1306
end
1307
1307
1308
- function getContainerItemsInfo (containerUid ) -- By Killua
1308
+ function getContainerItemsInfo (containerUid )
1309
1309
local table = {}
1310
1310
if containerUid and containerUid > 0 then
1311
1311
local a = 0
@@ -1320,7 +1320,7 @@ function getContainerItemsInfo(containerUid) -- By Killua
1320
1320
return false
1321
1321
end
1322
1322
1323
- function getTableEqualValues (table ) -- By Killua
1323
+ function getTableEqualValues (table )
1324
1324
local ck = {}
1325
1325
local eq = {}
1326
1326
if type (table ) == " table" then
@@ -1339,7 +1339,7 @@ function getTableEqualValues(table) -- By Killua
1339
1339
return false
1340
1340
end
1341
1341
1342
- function killuaGetItemLevel (uid ) -- By Killua
1342
+ function killuaGetItemLevel (uid )
1343
1343
local name = getItemName (uid )
1344
1344
local pos = 0
1345
1345
for i = 1 , # name do
@@ -1353,7 +1353,7 @@ function killuaGetItemLevel(uid) -- By Killua
1353
1353
end
1354
1354
1355
1355
k_table_storage_lib = {
1356
- filtrateString = function (str ) -- By Killua
1356
+ filtrateString = function (str )
1357
1357
local tb , x , old , last = {}, 0 , 0 , 0
1358
1358
local first , second , final = 0 , 0 , 0
1359
1359
if type (str ) ~= " string" then
@@ -1376,7 +1376,7 @@ k_table_storage_lib = {
1376
1376
return tb
1377
1377
end ,
1378
1378
1379
- translateIntoString = function (tb ) -- By Killua
1379
+ translateIntoString = function (tb )
1380
1380
local str = " "
1381
1381
if type (tb ) ~= " table" then
1382
1382
return str
@@ -1389,23 +1389,23 @@ k_table_storage_lib = {
1389
1389
end
1390
1390
}
1391
1391
1392
- function setPlayerTableStorage (cid , key , value ) -- By Killua
1392
+ function setPlayerTableStorage (cid , key , value )
1393
1393
return doPlayerSetStorageValue (cid , key , k_table_storage_lib .translateIntoString (value ))
1394
1394
end
1395
1395
1396
- function getPlayerTableStorage (cid , key ) -- By Killua
1396
+ function getPlayerTableStorage (cid , key )
1397
1397
return k_table_storage_lib .filtrateString (getPlayerStorageValue (cid , key ))
1398
1398
end
1399
1399
1400
- function setGlobalTableStorage (key , value ) -- By Killua
1400
+ function setGlobalTableStorage (key , value )
1401
1401
return setGlobalStorageValue (key , k_table_storage_lib .translateIntoString (value ))
1402
1402
end
1403
1403
1404
- function getGlobalTableStorage (key ) -- By Killua
1404
+ function getGlobalTableStorage (key )
1405
1405
return k_table_storage_lib .filtrateString (getGlobalStorageValue (key ))
1406
1406
end
1407
1407
1408
- function printTableKillua (table , includeIndices ,prnt ) -- By Killua
1408
+ function printTableKillua (table , includeIndices ,prnt )
1409
1409
if includeIndices == nil then
1410
1410
includeIndices = true
1411
1411
end
@@ -1437,7 +1437,7 @@ function printTableKillua(table, includeIndices,prnt) -- By Killua
1437
1437
return str
1438
1438
end
1439
1439
1440
- function checkString (str ) -- By Killua
1440
+ function checkString (str )
1441
1441
local check = true
1442
1442
for i = 1 , # str do
1443
1443
local letra = string.byte (str :sub (i ,i ))
@@ -1568,7 +1568,7 @@ function ResetSystem:updateHealthAndMana(pid)
1568
1568
if (newMaxHealth > oldMaxHealth ) then
1569
1569
doCreatureAddHealth (pid , newMaxHealth - oldMaxHealth )
1570
1570
elseif (newMaxHealth < oldMaxHealth ) then
1571
- doCreatureAddHealth (pid , 1 ) -- evita barra bugada
1571
+ doCreatureAddHealth (pid , 1 ) -- avoids buggy bar
1572
1572
end
1573
1573
1574
1574
if (newMaxMana > oldMaxMana ) then
@@ -1592,17 +1592,17 @@ function ResetSystem:execute(pid)
1592
1592
self :updateHealthAndMana (pid )
1593
1593
local bonus = self :getInfo (pid )
1594
1594
if (bonus ) then
1595
- local message = " Você efetuou seu " .. self :getCount (pid ) .. " ° reset."
1595
+ local message = " You made your " .. self :getCount (pid ) .. " ° reset."
1596
1596
if (bonus .damage_percent ) then
1597
- message = message .. " \n +" .. bonus .damage_percent .. " % de dano "
1597
+ message = message .. " \n +" .. bonus .damage_percent .. " % of damage "
1598
1598
end
1599
1599
1600
1600
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"
1602
1602
end
1603
1603
1604
1604
if (bonus .exp_percent ) then
1605
- message = message .. " \n +" .. bonus .exp_percent .. " % de EXP"
1605
+ message = message .. " \n +" .. bonus .exp_percent .. " % of EXP"
1606
1606
end
1607
1607
doPlayerSendTextMessage (pid , MESSAGE_EVENT_ADVANCE , message )
1608
1608
end
0 commit comments