1
[Talkactions] Resetear a todos de Level - TFS 1.2 el Mar Ene 09, 2018 1:43 pm
[Adm] SevuOT
![[Adm] SevuOT](https://2img.net/u/2712/30/40/04/avatars/10743-22.jpg)
Miembro

Tomar en cuenta:
1.- Tienen que tener el server Closed!
2.- Solo ejecutan el comando con su God!
3.- Solo hace reset de Level y XP
4.- Solo es compatible con TFS +1.2
XML Code:
- Código:
<talkaction words="/resetall" script="resetall.lua" />
LUA Code Script:
- Código:
---@The_Pain from Tibiaface Scripter
--#Talkaction
--#Reset_Level_To_All_Players
function onSay(player, words, param)
if not player:getGroup():getAccess() then
return true
end
DB_SendResetLevel()
return false
end
function DB_SendResetLevel()
Game.setGameState(GAME_STATE_MAINTAIN)
local result_plr = db.storeQuery('SELECT * FROM players')
if result_plr ~= false then
repeat
local target = Player(tostring(result.getDataString(result_plr, 'name')))
local targetGuid = tostring(result.getDataString(result_plr, 'id'))
if not target then
db.asyncQuery("UPDATE `players` SET `level` = 8, `experience` = 4200 WHERE `id` = " .. db.escapeString(targetGuid))
end
until not result.next(result_plr)
result.free(result_plr)
Game.setGameState(GAME_STATE_NORMAL)
end
return true
end
Saludos, espero les guste y dejen el like y un comentario de cualquier inconveniente!
Última edición por The_Pain el Miér Ene 10, 2018 2:00 pm, editado 1 vez

Si tu cuenta de PayPal no esta verificada no importara, igual aceptan pagos con cuentas no verificadas.
![[Talkactions] Resetear a todos de Level - TFS 1.2 TRJEB8aSRYK5IulEU6ilJw](https://2img.net/image.prntscr.com/image/TRJEB8aSRYK5IulEU6ilJw.png)