Ir para conteúdo

Mask Ghoul

Membro
  • Registro em

  • Última visita

Solutions

  1. Mask Ghoul's post in (Resolvido)erro no captcha do servidor was marked as the answer   
    // mail 'mail_enabled' => false, // is aac maker configured to send e-mails? 'mail_address' => '[email protected]', // server e-mail address (from:) 'mail_admin' => '[email protected]', // admin email address, where mails from contact form will be sent 'mail_signature' => array( // signature that will be included at the end of every message sent using _mail function 'plain' => ""/*"--\nMy Server,\nhttp://www.myserver.com"*/, 'html' => ''/*'<br/>My Server,\n<a href="http://www.myserver.com">myserver.com</a>'*/ ), 'smtp_enabled' => false, // send by smtp or mail function (set false if use mail function, set to true if you use GMail or Microsoft Outlook) 'smtp_host' => '', // mail host. smtp.gmail.com for GMail / smtp-mail.outlook.com for Microsoft Outlook 'smtp_port' => 25, // 25 (default) / 465 (ssl, GMail) / 587 (tls, Microsoft Outlook) 'smtp_auth' => false, // need authorization? 'smtp_user' => '[email protected]', // here your email username 'smtp_pass' => '', 'smtp_secure' => '', // What kind of encryption to use on the SMTP connection. Options: '', 'ssl' (GMail) or 'tls' (Microsoft Outlook) 'smtp_debug' => false, // set true to debug (you will see more info in error.log)  
  2. Mask Ghoul's post in Error no script was marked as the answer   
    local potions = { [6542] = {needLevel = 100, rate = 2.0, duration = 1800}, [6543] = {needLevel = 100, rate = 3.0, duration = 1800}, [6544] = {needLevel = 100, rate = 4.0, duration = 1800}, [6545] = {needLevel = 100, rate = 5.0, duration = 1800}, [2328] = {needLevel = 100, rate = 6.0, duration = 1800} } if not expPotions then expPotions = {playerData = {}} end function getTimeString(duration) local seconds = duration % 60 local minutes = math.floor((duration / 60) % 60) local hours = math.floor((duration / 3600) % 24) local days = math.floor(duration / 86400) local timeString = "" if days > 0 then timeString = timeString .. days .. " dia(s) " end if hours > 0 then timeString = timeString .. hours .. " hora(s) " end if minutes > 0 then timeString = timeString .. minutes .. " minuto(s) " end timeString = timeString .. seconds .. " segundo(s)" return timeString end function expPotions:onUse(cid, item, fromPosition, itemEx, toPosition) local itemId = item.itemid local potion = potions[itemId] if not potion then return false end if getPlayerLevel(cid) < potion.needLevel then doPlayerSendCancel(cid, ('Você precisa ser level %d+ para usar este Egg.'):format(potion.needLevel)) return true end local guid = getPlayerGUID(cid) self.playerData[guid] = self.playerData[guid] or {} local expData = self.playerData[guid][itemId] if not expData then self.playerData[guid][itemId] = {rate = 0, duration = 0} expData = self.playerData[guid][itemId] end local now = os.time() if expData.duration > now then doCreatureSay(cid, 'Aguarde o bônus atual acabar para usar novamente.', TALKTYPE_ORANGE_1, false, cid) return true end expData.rate = potion.rate expData.duration = potion.duration + now doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_GREEN) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, ('[Egg Exp (Combo)] Agora você tem +%d%% de experiência por %s.'):format( potion.rate * 100, getTimeString(potion.duration) )) doPlayerSetRate(cid, SKILL__LEVEL, expData.rate) -- Aplica o bônus de experiência doRemoveItem(item.uid, 1) return true end function expPotions:onLogin(cid) local guid = getPlayerGUID(cid) self.playerData[guid] = self.playerData[guid] or {} for itemId in pairs(potions) do self.playerData[guid][itemId] = self.playerData[guid][itemId] or {rate = 0, duration = 0} end return true end function expPotions:onLogout(cid) local guid = getPlayerGUID(cid) local playerData = self.playerData[guid] if playerData then for itemId, expData in pairs(playerData) do doPlayerSetRate(cid, SKILL__LEVEL, 1) -- o bônus de experiência para 1 end end return true end function expPotions:getCombo(cid) local playerData = self.playerData[getPlayerGUID(cid)] local potionsCombo = 1 if playerData then for itemId, expData in pairs(playerData) do potionsCombo = potionsCombo + expData.rate end end return potionsCombo end function expPotions:onSay(cid, words, param) local str = 'Combos de Eggs de Experiência:\n' local playerData = self.playerData[getPlayerGUID(cid)] if playerData then for itemId, expData in pairs(playerData) do local itemName = getItemNameById(itemId) str = str .. ('\n%s - %d%%'):format(itemName, expData.rate * 100) end end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, str) return true end  
     
    Resolvido 😛
  3. Mask Ghoul's post in [Ajuda] Dominio Hostinger was marked as the answer   
    Tem lá tutorial na hostinger link: 
    https://www.hostinger.com.br/tutoriais/como-apontar-o-nome-de-dominio-para-hostinger Good Lucky
  4. Mask Ghoul's post in (Resolvido)Erro no MYSQL no exe. do OTX 2 was marked as the answer   
    Acesso no seu phpmyadmin/database
    Excluir tabela player_items e player_depotitems
    Adicionar consultas
     
    CREATE TABLE `player_items` ( `player_id` INT NOT NULL, `pid` INT NOT NULL DEFAULT 0, `sid` INT NOT NULL DEFAULT 0, `itemtype` INT NOT NULL DEFAULT 0, `count` INT NOT NULL DEFAULT 0, `attributes` BLOB NOT NULL, `serial` VARCHAR(255) NOT NULL, KEY (`player_id`), UNIQUE (`player_id`, `sid`), FOREIGN KEY (`player_id`) REFERENCES `players`(`id`) ON DELETE CASCADE ) ENGINE = InnoDB; CREATE TABLE `player_depotitems` ( `player_id` INT NOT NULL, `sid` INT NOT NULL COMMENT 'any given range, eg. 0-100 is reserved for depot lockers and all above 100 will be normal items inside depots', `pid` INT NOT NULL DEFAULT 0, `itemtype` INT NOT NULL, `count` INT NOT NULL DEFAULT 0, `attributes` BLOB NOT NULL, `serial` VARCHAR(255) NOT NULL, KEY (`player_id`), UNIQUE (`player_id`, `sid`), FOREIGN KEY (`player_id`) REFERENCES `players`(`id`) ON DELETE CASCADE ) ENGINE = InnoDB;  
  5. Mask Ghoul's post in (Resolvido)Compilar TSF 0.4 OTXFORGOTTEN UBUNTU 16.04 was marked as the answer   
    Contato Discord: Mask Ghoul#6343
    Eu vou te ajudar, fala no dc.
  6. Mask Ghoul's post in (Resolvido)Preciso de Ajuda com Esse Site was marked as the answer   
    Edite o seu config.php
    procure por:
    'character_samples' => array( // vocations, format: ID_of_vocation => 'Name of Character to copy' //0 => 'Rook Sample', 1 => 'Sorcerer Sample', 2 => 'Druid Sample', 3 => 'Paladin Sample', 4 => 'Knight Sample' ), mude para:
     
    'character_samples' => array( // vocations, format: ID_of_vocation => 'Name of Character to copy' 0 => 'Rook Sample' ),  
    procure por: 
    // lista de cidades usada ao criar personagem // não será exibido se houver apenas um item (rookgaard, por exemplo) 'character_towns' => array(1), // list of towns 'towns' => array( 0 => 'No town', 1 => 'Sample town' ), você edite o seu mapa nasce em templo rockgaard coloque nele.
  7. Mask Ghoul's post in (Resolvido)Bug na perda de exp como resolver was marked as the answer   
    Pode fechar o tópico
  8. Mask Ghoul's post in (Resolvido)Problemas no Website was marked as the answer   
    Execute esta consulta em SQL: https://github.com/Znote/ZnoteAAC/blob/master/engine/database/znote_schema.sql
     
    Repositório ZnoteAAC original baixe: https://github.com/Znote/ZnoteAAC
    tenta ae

Informação Importante

Confirmação de Termo