Ir para conteúdo

[SQLite] -=[TFS]=- 0.4 8.60 buga a contagem dos days vip quando digita !buyvip fica com 31 dias de vip.

Featured Replies

Postado

https://prnt.sc/0oQvcpT6KMSZ

 

function onSay(cid, words, param)
local level = getPlayerLevel(cid)
local vocation = getPlayerVocationName(cid)
local health, maxhealth = getCreatureHealth(cid), getCreatureMaxHealth(cid)
local mana, maxmana = getCreatureMana(cid), getCreatureMaxMana(cid)
local balance, pdays = getPlayerBalance(cid), getPlayerPremiumDays(cid)
local fist, club, sword, axe = getPlayerSkillLevel(cid, 0), getPlayerSkillLevel(cid, 1), getPlayerSkillLevel(cid, 2), getPlayerSkillLevel(cid, 3)
local distance, shield, fishing, magic =  getPlayerSkillLevel(cid, 4), getPlayerSkillLevel(cid, 5), getPlayerSkillLevel(cid, 6), getPlayerMagLevel(cid)
local lvldodge = getPlayerStorageValue(cid, 98798644)
local lvlcrit  = getPlayerStorageValue(cid, 48903)
local lvlatk = getPlayerStorageValue(cid, 48904)
local daysvalue = getPlayerStorageValue(cid, 13545)
local reset = getPlayerStorageValue(cid, 54676)
local cap = getPlayerFreeCap(cid)
local msg = "Vocation: "..vocation.."\nLevel: ".. level .."\nHP: ".. health .."/".. maxhealth .."\nMP: ".. mana .."/".. maxmana .."\nCapacity: ".. cap .."\nBalance: "..balance.."\nPremium Days: "..pdays.."\nDodge Level: ".. lvldodge .."\nCritical Level: ".. lvlcrit .."\nBOOSTER ATK: ".. lvlatk .."\nMagic Level: ".. magic .."\n[VIP] Days: ".. daysvalue .."\nReset Count: ".. reset .." \n\nFist: ".. fist .."\nClub: ".. club .."\nSword: ".. sword .."\nAxe: ".. axe .."\nDistance: ".. distance .."\nShield: ".. shield .."\nFishing: ".. fishing ..""
doPlayerPopupFYI(cid, msg)
return true
end

 

91-thais.png

Resolvido por Vodkart

Ir para solução
  • Muvuka mudou o título para [SQLite] -=[TFS]=- 0.4 8.60 buga a contagem dos days vip quando digita !buyvip fica com 31 dias de vip.
Postado
  • Solução
function onSay(cid, words, param)
local level = getPlayerLevel(cid)
local vocation = getPlayerVocationName(cid)
local health, maxhealth = getCreatureHealth(cid), getCreatureMaxHealth(cid)
local mana, maxmana = getCreatureMana(cid), getCreatureMaxMana(cid)
local balance, pdays = getPlayerBalance(cid), getPlayerPremiumDays(cid)
local fist, club, sword, axe = getPlayerSkillLevel(cid, 0), getPlayerSkillLevel(cid, 1), getPlayerSkillLevel(cid, 2), getPlayerSkillLevel(cid, 3)
local distance, shield, fishing, magic =  getPlayerSkillLevel(cid, 4), getPlayerSkillLevel(cid, 5), getPlayerSkillLevel(cid, 6), getPlayerMagLevel(cid)
local lvldodge = getPlayerStorageValue(cid, 98798644)
local lvlcrit  = getPlayerStorageValue(cid, 48903)
local lvlatk = getPlayerStorageValue(cid, 48904)
local a = os.time()
local b = math.floor((getPlayerStorageValue(cid, 13545) - a)/(24 * 60 * 60))
local reset = getPlayerStorageValue(cid, 54676)
local cap = getPlayerFreeCap(cid)
local msg = "Vocation: "..vocation.."\nLevel: ".. level .."\nHP: ".. health .."/".. maxhealth .."\nMP: ".. mana .."/".. maxmana .."\nCapacity: ".. cap .."\nBalance: "..balance.."\nPremium Days: "..pdays.."\nDodge Level: ".. lvldodge .."\nCritical Level: ".. lvlcrit .."\nBOOSTER ATK: ".. lvlatk .."\nMagic Level: ".. magic .."\n[VIP] Days: ".. (b < 0 and 0 or b) .."\nReset Count: ".. reset .." \n\nFist: ".. fist .."\nClub: ".. club .."\nSword: ".. sword .."\nAxe: ".. axe .."\nDistance: ".. distance .."\nShield: ".. shield .."\nFishing: ".. fishing ..""
doPlayerPopupFYI(cid, msg)
return true
end

 

vodkart_logo.png

[*Ninguém será digno do sucesso se não usar suas derrotas para conquistá-lo.*]

 

DISCORDvodkart#6090

 

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Conteúdo Similar

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo