Ir para conteúdo

Bruno Carvalho

Héroi
  • Registro em

  • Última visita

Tudo que Bruno Carvalho postou

  1. Tenta assim: [paste]nxHMAmB1[/paste]
  2. A tag é <action uniqueid="XXXX" script="itemadd.lua" />[/code] O UID que ta no script é o uid que ta no mapa e o que deve ser add nessa tag..
  3. Tenta assim: [paste]esnNHt1W[/paste]
  4. Cara falei, já existe essa tabela. Coluna 11.
  5. Tenta fala com os donos da sua empresa de host, somente eles podem realmente ajudar pois o acesso de possíveis repostas é bem limitado. Essa mensagem significa que seu vps está desligado ou reiniciando. Mas pelo tempo que aparenta estar assim ele deve estar desligado. Abra um achamado na empresa para eles ligarem novamente.
  6. Essa coluna já esta executada, já existe essa vip_time (ou seja pode executar normalmente o script) Ps: Recomendo remover este link de download pois todos vão saber as senhas de player do seu servidor.
  7. Uh... Não tinha pensado nisso. Tem sim, obrigado por testar. Tenta ai: [paste]WfjBqSnZ[/paste]
  8. Falha minha kk... [paste]6QVEQvWW[/paste]
  9. Bruno Carvalho postou uma resposta no tópico em Playground (Off-topic)
    Ba noit. Normal n, eu to de férias e tenho que i trabalha .-. vo pra MS u.U
  10. Tenta este: [paste]dvKc1Yvy[/paste] Créditos a esse tópico da otland onde eu peguei a base: http://otland.net/f81/show-players-online-who-have-not-done-specific-quest-148358/
  11. Bruno Carvalho postou uma resposta no tópico em Playground (Off-topic)
    Tenque trabalha amanha ._. n da pra fica até 3 da manha usando drogas =c
  12. Bruno Carvalho postou uma resposta no tópico em Playground (Off-topic)
    Xiter.
  13. Bruno Carvalho postou uma resposta no tópico em Playground (Off-topic)
    Altas hora jogano cs 2d, mo dahora. Mais encheu o saco e parei.
  14. Bruno Carvalho postou uma resposta no tópico em Playground (Off-topic)
    No momento só deu azar
  15. Tenta assim: local config = { showGamemasters = getBooleanFromString(getConfigValue('displayGamemastersWithOnlineCommand')) } function onSay(cid, words, param, channel) local players = getPlayersOnline() local strings = {""} local i, position = 1, 1 local added = false for _, pid in ipairs(players) do if(added) then if(i > (position * 7)) then strings[position] = strings[position] .. "," position = position + 1 strings[position] = "" else strings[position] = i == 1 and "" or strings[position] .. ", " end end if((config.showGamemasters or getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES) or not getPlayerCustomFlagValue(pid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES)) and (not isPlayerGhost(pid) or getPlayerGhostAccess(cid) >= getPlayerGhostAccess(pid))) then strings[position] = strings[position] .. getCreatureName(pid) .. " [" .. getPlayerLevel(pid) .. "]" i = i + 1 added = true else added = false end end for i, str in ipairs(strings) do if(str:sub(str:len()) ~= ",") then str = str .. "\n\n" end doShowTextDialog(cid, 1952, str) end return true end [/code]
  16. Tenta assim: function onSay(cid, words, param, channel) local tempo = 10 --Tempo que irá adicionar ao player if getPlayerStorageValue(cid, 191220122204) == -1 then local add = (tempo*86400) setPlayerStorageValue(cid, 85258, getPlayerStorageValue(cid, 85258) - os.time() <= 0 and (os.time() + add) or (getPlayerStorageValue(cid, 85258) + add)) local quantity = math.floor((getPlayerStorageValue(cid, 85258) - os.time())/(24 * 60 * 60)) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Foi adicionado um bonus de ".. tempo .." dias de VIP.") doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem ".. quantity .." dias de VIP restantes.") setPlayerStorageValue(cid, 191220122204, 1) end return true end [/code]
  17. O servidor que funciona pode ter a configuração dos items.otb diferente ou um cliente próprio.
  18. Entendi sim, você que não intendeu. function onThink(interval, lastExecution) -- Configurações local cor = COLOR_RED -- Defina a cor da mensagem (22 = branco) local mensagens ={ [[...:::*:::... Já ESTÁ VALENDO A NOSSAS PROMOÇÕES DE SET GLORIOUS, COMPRE O (SET + ARMA GLORIOUS) E GANHE (VIP) DE GRAÇA ---> CORRA NO SITE!!! www.gloriousserver.orgfree.com Bom Jogo!!! ...:::*:::...]] } -- Fim de Configurações doBroadcastMessage(mensagens[math.random(1,table.maxn(mensagens))], cor) return TRUE end [/code]
  19. O comando é assim: /pl del, 2554, Sasazinha, 1
  20. Estou vendo aqui e em alguns servidores 8.6 (o alissow sv também usava) tinha esse script em creaturescripts: playerdeath.lua local config = { deathListEnabled = getBooleanFromString(getConfigInfo('deathListEnabled')), sqlType = getConfigInfo('sqlType'), maxDeathRecords = getConfigInfo('maxDeathRecords') } config.sqlType = config.sqlType == "sqlite" and DATABASE_ENGINE_SQLITE or DATABASE_ENGINE_MYSQL function onDeath(cid, corpse, lastHitKiller, mostDamageKiller) if(config.deathListEnabled ~= TRUE) then return end local hitKillerName = "field item" local damageKillerName = "" if(lastHitKiller ~= FALSE) then if(isPlayer(lastHitKiller) == TRUE) then hitKillerName = getPlayerGUID(lastHitKiller) else hitKillerName = getCreatureName(lastHitKiller) end if(mostDamageKiller ~= FALSE and mostDamageKiller ~= lastHitKiller and getCreatureName(mostDamageKiller) ~= getCreatureName(lastHitKiller)) then if(isPlayer(mostDamageKiller) == TRUE) then damageKillerName = getPlayerGUID(mostDamageKiller) else damageKillerName = getCreatureName(mostDamageKiller) end end end db.executeQuery("INSERT INTO `player_deaths` (`player_id`, `time`, `level`, `killed_by`, `altkilled_by`) VALUES (" .. getPlayerGUID(cid) .. ", " .. os.time() .. ", " .. getPlayerLevel(cid) .. ", " .. db.escapeString(hitKillerName) .. ", " .. db.escapeString(damageKillerName) .. ");") local rows = db.getResult("SELECT `player_id` FROM `player_deaths` WHERE `player_id` = " .. getPlayerGUID(cid) .. ";") if(rows:getID() ~= -1) then local amount = rows:getRows(true) - config.maxDeathRecords if(amount > 0) then if(config.sqlType == DATABASE_ENGINE_SQLITE) then for i = 1, amount do db.executeQuery("DELETE FROM `player_deaths` WHERE `rowid` = (SELECT `rowid` FROM `player_deaths` WHERE `player_id` = " .. getPlayerGUID(cid) .. " ORDER BY `time` LIMIT 1);") end else db.executeQuery("DELETE FROM `player_deaths` WHERE `player_id` = " .. getPlayerGUID(cid) .. " ORDER BY `time` LIMIT " .. amount .. ";") end end end end [/code] Ele registra o kil quando um player morre.
  21. Bruno Carvalho postou uma resposta no tópico em Playground (Off-topic)
    Essas espada com bonus subiu meu skill de força em +7 law... O ruim é esse critical, fui mata um ogro rei ele me deu 1 fiquei com 5 de vida, ataquei ele de novo e perdi só 25 de vida =O
  22. Bruno Carvalho postou uma resposta no tópico em Playground (Off-topic)
    Vo pode roda um servidor de testes, o tibia, uma pagina maximizada com um de um site muito interessante na net e ta em uma chamada no skype, sem fala que vo pode fica on no msn (depois dos 2000 contatos meu pc paro de roda ele, se roda tenque se só ele).
  23. No caso do seu utana vid acredito que ele esteja em milesimos e seu servidor utiliza segundos, então tente colocar assim: local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false) local condition = createConditionObject(CONDITION_INVISIBLE) setConditionParam(condition, CONDITION_PARAM_TICKS, 200000/60) setCombatCondition(combat, condition) function onCastSpell(cid, var) return doCombat(cid, combat, var) end [/code] Qual sistema vip você utiliza?
  24. As cores são estas: Para npcs e monstros: Para servidores 9.4+ COLOR_BLACK = 0 COLOR_BLUE = 5 COLOR_GREEN = 18 COLOR_LIGHTGREEN = 66 COLOR_DARKBROWN = 78 COLOR_LIGHTBLUE = 89 COLOR_MAYABLUE = 95 COLOR_DARKRED = 108 COLOR_DARKPURPLE = 112 COLOR_BROWN = 120 COLOR_GREY = 129 COLOR_TEAL = 143 COLOR_DARKPINK = 152 COLOR_PURPLE = 154 COLOR_DARKORANGE = 156 COLOR_RED = 180 COLOR_PINK = 190 COLOR_ORANGE = 192 COLOR_DARKYELLOW = 205 COLOR_YELLOW = 210 COLOR_WHITE = 215 [/code] Para servidores 9.4- [code] COLOR_BLACK = 0 COLOR_BLUE = 5 COLOR_GREEN = 18 COLOR_TEAL = 35 COLOR_LIGHTGREEN = 66 COLOR_DARKBROWN = 78 COLOR_LIGHTBLUE = 89 COLOR_DARKPURPLE = 112 COLOR_BROWN = 120 COLOR_GREY = 129 COLOR_DARKRED = 144 COLOR_DARKPINK = 152 COLOR_PURPLE = 154 COLOR_DARKORANGE = 156 COLOR_RED = 180 COLOR_PINK = 190 COLOR_ORANGE = 192 COLOR_DARKYELLOW = 205 COLOR_YELLOW = 210 COLOR_WHITE = 215 O red é COLOR_RED ou 180, ambos funcionam.

Informação Importante

Confirmação de Termo