Ir para conteúdo
  • 0

Rank Reset Sqlite


Legendios2

Pergunta

Necessito de uma talkaction !rank reset para SQLITE. Já tentei cerca de 4 diferentes e não funfo... =/

 

Styller Yourots, version 0.7.5 (Styller Yourots)

Compilado versao 8.60

 

Uso o Advance Reset System 2.0 do MarcelloMkez

http://www.xtibia.co...eset-system-20/

 

IMG do player resetado.

http://img801.imageshack.us/img801/9812/screenshot076u.jpg

 

IMG do rank reset bugado.

http://desmond.imageshack.us/Himg96/scaled.php?server=96&filename=screenshot077g.jpg&res=landing

 

Preciso muito! Ajuda noix rules.gif

Link para o comentário
Compartilhar em outros sites

3 respostass a esta questão

Posts Recomendados

  • 0

talkactions/script/ranks.lua

local config = {
MaxPlayer = 20,
fight_skills = {
       ['fist'] = 0,
       ['club'] = 1,
       ['sword'] = 2,
       ['axe'] = 3,
       ['distance'] = 4,
       ['shielding'] = 5,
       ['fishing'] = 6,
       ['dist'] = 4,
       ['shield'] = 5,
       ['fish'] = 6,
},
other_skills = {
[''] = "level",
['level'] = "level",
['magic'] = "maglevel",
['health'] = "healthmax",
['mana'] = "manamax",
['reset'] = "reset"
},
vocations = {
['sorcerer'] = {1,5},
['druid'] = {2,6},
['paladin'] = {3,7},
['knight'] = {4,8}
}
}
function onSay(cid, words, param)
local param,str = string.lower(param),""
if not config.fight_skills[param] and not config.other_skills[param] and not config.vocations[param] then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "este rank não existe.") return true
end
str = "--[ RANK "..(param == "" and "LEVEL" or string.upper(param)).." ]--\n\n"
query = config.fight_skills[param] and db.getResult("SELECT `player_id`, `value` FROM `player_skills` WHERE `skillid` = "..config.fight_skills[param].." ORDER BY `value` DESC;") or config.other_skills[param] and db.getResult("SELECT `name`, `"..config.other_skills[param].."` FROM `players` WHERE `id` > 6 AND `group_id` < 2 ORDER BY `"..config.other_skills[param].."` DESC, `name` ASC;") or db.getResult("SELECT `name`, `level` FROM `players` WHERE `group_id` <= 2 AND `vocation` = "..config.vocations[param][1].." or `vocation` = "..config.vocations[param][2].." ORDER BY `level` DESC;") 
if (query:getID() ~= -1) then 
k = 1 
while true do
str = str .. "\n " .. k .. ". "..(config.fight_skills[param] and getPlayerNameByGUID(query:getDataString("player_id")) or query:getDataString("name")).." - [" .. query:getDataInt(config.fight_skills[param] and "value" or config.vocations[param] and "level" or config.other_skills[param]) .. "]"
k = k + 1
if not(query:next()) or k > config.MaxPlayer then
break 
end 
end 
query:free()
end
doShowTextDialog(cid,6500, str)
return true
end

 

só usar

 

!rank reset

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...