Ir para conteúdo
  • Cadastre-se

L3K0T

Sub-Admin
  • Total de itens

    2172
  • Registro em

  • Última visita

  • Dias Ganhos

    117

Tudo que L3K0T postou

  1. Cadê o arquivo script data/creaturescripts/scripts/custom/check_premium.lua ? Posta ai o código
  2. É possível que o problema esteja relacionado a uma má configuração da sprite de um item. Por exemplo, se a sprite estiver configurada de uma maneira no item editor e de outra maneira no cliente, podem ocorrer erros. É importante garantir que as configurações sejam consistentes e correspondentes.Uma sugestão para solucionar o problema é testar a abertura de um corpo sem loot. Isso significa verificar se é possível abrir um corpo de um monstro ou contêiner no jogo que não tenha itens dentro. Ao realizar esse teste, é possível identificar se o problema está relacionado especificamente à configura
  3. -- Configurações local bonusStorage = 1000 -- Valor do storage para ativar o bônus function onLogin(cid) local bonusActive = getPlayerStorageValue(cid, bonusStorage) == 1 if not bonusActive then doPlayerAddHealth(cid, 500) setPlayerStorageValue(cid, bonusStorage, 1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você ganhou um bônus de 500 HP!") end end
  4. -- Configurações local bonusStorage = 1000 -- Valor do storage para ativar o bônus local bonusDuration = 3600 -- Duração do bônus em segundos (3600 = 1 hora) function onLogin(cid) local bonusActive = getPlayerStorageValue(cid, bonusStorage) == 1 if bonusActive then doPlayerAddHealth(cid, 500) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você ganhou um bônus de 500 HP!") end local bonusEndTime = getPlayerStorageValue(cid, bonusStorage + 1) if bonusEndTime > 0 and bonusEndTime <= os.time() then setP
  5. local tab = { [4] = 10, -- [vocationID] = número da cor do texto animado [5] = 30, [6] = 50, [7] = 70 } function ariseText(cid) if not isPlayer(cid) then -- Verifica se o jogador ainda é válido return true end local texts = {"' . ,", ". ' ,", "' . ,", ", ' ."} local playerVocation = getPlayerVocation(cid) if playerVocation and tab[playerVocation] then doSendAnimatedText(getCreaturePosition(cid), texts[math.random(1, #texts)], tab[playerVocation]) doSendMagicEffect(getCreaturePosi
  6. agora testa os pontos pelo MySQL se for nulo n vai aparecercnada
  7. local tab = { [4] = 10, -- [vocationID] = número da cor do texto animado [5] = 30, [6] = 50, [7] = 70 } function ariseText(cid) local texts = {"' . ,", ". ' ,", "' . ,", ", ' ."} local playerVocation = getPlayerVocation(cid) if playerVocation and tab[playerVocation] then doSendAnimatedText(getCreaturePosition(cid), texts[math.random(1, #texts)], tab[playerVocation]) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_GREEN) -- Efeito mágico adicionado end if isPlayer(cid) then addEvent(
  8. local tab = { [4] = 10, -- [vocationID] = número da cor do texto animado [5] = 30, [6] = 50, [7] = 70 } function ariseText(cid) local texts = {"' . ,", ". ' ,", "' . ,", ", ' ."} doSendAnimatedText(getCreaturePosition(cid), texts[math.random(1, #texts)], tab[getPlayerVocation(cid)]) if isPlayer(cid) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREWORK_YELLOW) addEvent(ariseText, 1000, cid) end return true end function getPlayerByGUID(guid) for _, pid in ipairs(getPlayer
  9. local templePosition = {x = 100, y = 200, z = 7} -- Coordenadas do templo para onde o jogador será teleportado function onLogin(cid) local player = getPlayerByGUID(cid) if player then if not player:isPremium() and getPlayerStorageValue(cid, 18956) ~= 1 then setPlayerStorageValue(cid, 18956, 1) -- Define o valor de armazenamento para indicar que a conta premium expirou doTeleportThing(cid, templePosition) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sua conta premium expirou. Você foi teleportado para o te
  10. Troca o efeito local tab = { [4] = 10, -- [vocationID] = número da cor do texto animado [5] = 30, [6] = 50, [7] = 70 } function ariseText(cid) local texts = {"' . ,", ". ' ,", "' . ,", ", ' ."} doSendAnimatedText(getThingPos(cid), texts[math.random(1, #texts)], tab[getPlayerVocation(cid)]) if isPlayer(cid) then doSendMagicEffect(getThingPos(cid), CONST_ME_FIREWORK_YELLOW) addEvent(ariseText, 1000, cid) end return true end function getPlayerByGUID(guid) for _, pid i
  11. local tab = { [4] = 10, -- [vocationID] = número da cor do texto animado [5] = 30, [6] = 50, [7] = 70 } function ariseText(cid) local texts = {"' . ,", ". ' ,", "' . ,", ", ' ."} doSendAnimatedText(getThingPos(cid), texts[math.random(1, #texts)], tab[getPlayerVocation(cid)]) if isPlayer(cid) then addEvent(ariseText, 1000, cid) end return true end function onLogin(cid) local player = getPlayerByGUID(cid) if player then if tab[player:getVocation():getId()] then
  12. <?php $ots = POT::getInstance(); $ots->connect(POT::DB_MYSQL, connection()); $SQL = $ots->getDBHandle(); echo '<div class="message"><div class="title">Pontuação das Principais Guildas</div> <div class="content">'; echo '<table border="0" cellspacing="3" cellpadding="4" width="100%"> <tr>'; $i = 0; $query = ' SELECT `g`.`id` AS `id`, `g`.`name` AS `name`, SUM(`p`.`graduacao_points`) AS `points`, COUNT(`p`.`name`) AS `player_count` FROM `players` p LEFT JOIN `gui
  13. local tab = { [4] = 10, -- [vocationID] = número da cor do texto animado [5] = 30, [6] = 50, [7] = 70 } function ariseText(cid) local texts = {"' . ,", ". ' ,", "' . ,", ", ' ."} doSendAnimatedText(getThingPos(cid), texts[math.random(1, #texts)], tab[getPlayerVocation(cid)]) if isPlayer(cid) then addEvent(ariseText, 1000, cid) end return true end function onLogin(cid) local player = Player(cid) -- Use a função Player() para obter o objeto do jogador if player then if tab
  14. Esse erro é por causa a função MC, o codigo acima deverá resolver.
  15. O account manager está no login.lua manda ai o login.lua apenas o script
  16. <?php $ots = POT::getInstance(); $ots->connect(POT::DB_MYSQL, connection()); $SQL = $ots->getDBHandle(); echo '<div class="message"><div class="title">Top Guild Points</div> <div class="content">'; echo '<table border="0" cellspacing="3" cellpadding="4" width="100%"> <tr>'; $i = 0; foreach ($SQL->query(' SELECT `g`.`id` AS `id`, `g`.`name` AS `name`, SUM(`p`.`graduacao_points`) AS `points`, COUNT(`p`.`name`) AS `player_count`, `p`.`graduacao_points` AS `gradua
  17. $ots = POT::getInstance(); $ots->connect(POT::DB_MYSQL, connection()); $SQL = $ots->getDBHandle(); echo '<div class="message"><div class="title">Top Guild Points</div> <div class="content">'; echo '<table border="0" cellspacing="3" cellpadding="4" width="100%"> <tr>'; $i = 0; foreach ($SQL->query(' SELECT `g`.`id` AS `id`, `g`.`name` AS `name`, SUM(`p`.`graduacao_points`) AS `points`, COUNT(`p`.`name`) AS `player_count` FROM `players` p
  18. Vc fez o sistema para `graduacao_points dentro do jogo? Para dar pontos de graduação?
  19. <?php $ots = POT::getInstance(); $ots->connect(POT::DB_MYSQL, connection()); $SQL = $ots->getDBHandle(); echo '<div class="message"><div class="title">Top Guild Points</div> <div class="content">'; echo '<table border="0" cellspacing="3" cellpadding="4" width="100%"> <tr>'; $i = 0; foreach ($SQL->query(' SELECT `g`.`id` AS `id`, `g`.`name` AS `name`, SUM(`p`.`graduacao_points`) AS `points` FROM `players` p LEFT JOIN `guild_ranks` gr ON `p`.`
  20. Testa o outro é porque ja tem a coluna então não precisa adicionar só pega o php acima
  21. <?php $ots = POT::getInstance(); $ots->connect(POT::DB_MYSQL, connection()); $SQL = $ots->getDBHandle(); echo '<div class="message"><div class="title">Top Guild Points</div> <div class="content">'; echo '<table border="0" cellspacing="3" cellpadding="4" width="100%"> <tr>'; $i = 0; foreach ($SQL->query(' SELECT `g`.`id` AS `id`, `g`.`name` AS `name`, SUM(`p`.`graduacao_points`) AS `points` FROM `players` p LEFT JOIN `guild_ranks` gr ON `p`.`
  22. <?php $ots = POT::getInstance(); $ots->connect(POT::DB_MYSQL, connection()); $SQL = $ots->getDBHandle(); echo '<div class="message"><div class="title">Top Guild Points</div> <div class="content">'; echo '<table border="0" cellspacing="3" cellpadding="4" width="100%"> <tr>'; $i = 0; foreach($SQL->query(' SELECT `g`.`id` AS `id`, `g`.`name` AS `name`, SUM(`p`.`graduacao_points`) AS `points` FROM `players` p LEFT JOIN `guild_ranks` gr ON `p`.`r
  23. Pensei nisso complexo local function getPlayerKills(player) local killsStorage = 1000 -- StorageValue para armazenar as mortes do jogador return player:getStorageValue(killsStorage) end local function setPlayerKills(player, kills) local killsStorage = 1000 -- StorageValue para armazenar as mortes do jogador player:setStorageValue(killsStorage, kills) end function onGainExp(player, exp, fromPlayer) local maxKills = 10 -- Número máximo de kills permitidas antes de zerar a experiência local expStorage = 2000 -- StorageValue para armaze
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo