Ir para conteúdo

poko360

Membro
  • Registro em

  • Última visita

Tudo que poko360 postou

  1. Ola, Gostaria de 1 script que quando o player fale uma palavra (EX: "utevo gran res") sumonasse 1x monstro por vez de acordo com o level do player: gostaria de colocar 6 monstros em 1 script só (tipo um PET que ataque o monstro que o player atacar) (lvl 1 ~ 100) --> monstro 1 (configuravel) (lvl 100 ~ 200) --> monstro 2 (configuravel) (lvl 200 ~ 300) --> monstro 3 (configuravel) (lvl 300 ~ 400) ---> monstro 4 (configuravel) (lvl 400 ~ 500) ---> monstro 5 (configuravel) (lvl 500 ~ 600) ---> monstro 6 (configuravel) se possivel alguem poderia me mandar um script semelhante ou igual a esse? obg script como base só tenho esse (ta sumonando monstro infinito), mas nao sei editar como eu quero, ajuda plos =/ Talkaction
  2. agora sim, brigadão man, REP+
  3. o script atual tem varias linhas de outros ots, dai apaguei algumas linhas pra deixar o script menor de se entender. exemplo: "shivera-global'... "underwar"... etc
  4. ola, tenho um script que bloqueia jogadores de fazer divulgações/propagandas, gostaria de adicionar um mute de 60 segundos , caso o jogador anuncie alguma das palavras do script abaixo: Antidivulgacao.lua eu tenho um talkaction de mutar um player por 2763637 segundos, só que nao consigo encaixar esse mute no script de anti divulgação,ja tentei de varias maneiras (nao é preguiça, é porq nao consegui mesmo ), quando dou /reload talkactions da failed, ai tenho que reniciar o ot pq nao da pra dar /save, alguem poderia me ajudar? Mute.lua
  5. ola, brigadao por responder, eu tenho uma duvida: oque seria essa backpack? local mainbp = doCreateItemEx(5949, 1)
  6. [Pedido] Como adicionar +10% de (skills/ml/loot) para jogadores Premium (os que ficam no config lua) exemplo: free tem 100x de skill rate, os premium teriam 110x alguem tem algum creaturescript semelhante? thanks eu nao sei a função que coloca pra adicionar esses bonus, se possivel , pode colocar nesse script pra mim?
  7. funcionou perfeitamente como eu queria, muito obrigado amigo, REP++
  8. ahh entendi, mas tenho +1 duvida, tipo, quando ele for da o !unlock, ai tem um char que ja existe chamado "Pedro" (sem o vip), se ele for da [!unlock Pedro] nao vai bugar n? (é uma possibilidade tlgd)
  9. tipo, quando acabar minha VIP, se tiver um char JOAO, ele nao vai retirar o nome [VIP]? é isso?
  10. Oi, achei um script aqui do Infinity sky que tem o nome [VIP] nos jogadores premium accounts, funciona 100% o script mas tem um problema... Meu problema é: eu tenho um char chamado JOAO, eu uso a VIP, e fico [VIP] JOAO certo? dai outro player pode criar o nick JOAO quando da o global save as 5 horas da manhã (ou quando fecha o ot) DAI BUGA TUDO =/, dai da pra criar outro char chamado JOAO, e fica 2 JOAO no server entende? eu achei aqui na pasta do infinity sky um arquivo chamado "OLD NAME" (certamente é o script que bloqueia os nomes antigos de serem criados) só que ele nao funciona (tambem nao aparece nada na distro) nao sei se esse script é o correto que "bloqueia" os nicks antigos. Old Name MINHA DUVIDA: EXISTE ALGUMA MANEIRA DE BLOQUEAR O ACCOUNT MANAGER DE CRIAR O PRIMEIRO NICK (tipo um storage)? grato achei isso no forum, mas nao sei se funciona e onde colocar, help for _, name in pairs(Nomes da DB) do if name:find("[VIP]") then name = name:gsub("[VIP]", "") if selectedName == name then return error("Desculpe, mas já existe um personagem com este nome.") and false end end end
  11. tenho um server com 30mb de mapa e uso um VPS de 6 GB de ram + 3vCPU quando bate 80 + online. meu server começa a subir o gasto de memoria muito rapido (no gerenciador de tarefas), alguem pode me ajudar? edit: ta gastando 300kb de memoria por segundo eu fiz uns calculos aqui, e meu server bate 100% em 4 horas e uns 30 minutos*
  12. @Pepeco nao ta healando nenhuma pot =C deu esse error: [Error - LuaInterface::loadFile] data/actions/scripts/liquids/potions.lua:99: 'then' expected near 'return' [0:35:48.970] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/liquids/potions.lua) [0:35:48.972] data/actions/scripts/liquids/potions.lua:99: 'then' expected near 'return'
  13. @Pepeco aonde eu coloco o rate de hp na spirit pot? =s
  14. local config = { removeOnUse = "no", usableOnTarget = "yes", -- can be used on target? (fe. healing friend) splashable = "yes", range = -1, area = {7, 7} -- if not set correctly, the message will be sent only to user of the item } local multiplier = { health = 1.0, mana = 1.0 } local POTIONS = { [8704] = {empty = 7636, splash = 42, rate = 1}, vocations = {4, 8}, -- small health potion [7618] = {empty = 7636, splash = 42, rate = 2}, vocations = {4, 8}, -- health potion [7588] = {empty = 7634, splash = 42, rate = 3, level = 50, vocations = {4, 8}, vocStr = "knights and paladins"}, -- strong health potion [7591] = {empty = 7635, splash = 42, rate = 4, level = 80, vocations = {4, 8}, vocStr = "knights"}, -- great health potion [8473] = {empty = 7635, splash = 42, rate = 5, level = 130, vocations = {4, 8}, vocStr = "knights"}, -- ultimate health potion [7620] = {empty = 7636, splash = 47, rateMana = 2}, -- mana potion [7589] = {empty = 7634, splash = 47, rateMana = 3, level = 50, vocations = {1, 2, 3, 5, 6, 7}, vocStr = "sorcerers, druids and paladins"}, -- strong mana potion [7590] = {empty = 7635, splash = 47, rateMana = 4, level = 80, vocations = {1, 2, 5, 6}, vocStr = "sorcerers and druids"}, -- great mana potion [8472] = {empty = 7635, splash = 43, rateMana = 3, level = 80, vocations = {3, 7}, vocStr = "paladins"} -- great spirit potion } for index, potion in pairs(POTIONS) do if(type(index) == 'number')then for k, v in pairs(config) do if(not potion[k]) then potion[k] = v end end if(potion.removeOnUse) then potion.removeOnUse = getBooleanFromString(potion.removeOnUse) end if(potion.usableOnTarget) then potion.usableOnTarget = getBooleanFromString(potion.usableOnTarget) end if(potion.splashable) then potion.splashable = getBooleanFromString(potion.splashable) end if(type(potion.health) == 'table' and table.maxn(potion.health) > 1) then potion.health[1] = math.ceil(potion.health[1] * multiplier.health) potion.health[2] = math.ceil(potion.health[2] * multiplier.health) else potion.health = nil end if(type(potion.mana) == 'table' and table.maxn(potion.mana) > 1) then potion.mana[1] = math.ceil(potion.mana[1] * multiplier.mana) potion.mana[2] = math.ceil(potion.mana[2] * multiplier.mana) else potion.mana = nil end POTIONS[index] = potion end end function onUse(cid, item, fromPosition, itemEx, toPosition) local potion = POTIONS[item.itemid] if(not potion) then return false end if(not isPlayer(itemEx.uid) or (not potion.usableOnTarget and cid ~= itemEx.uid)) then if(not potion.splashable or not potion.splash) then return false end if(toPosition.x == CONTAINER_POSITION) then toPosition = getThingPosition(item.uid) end return true end if(((potion.level and getPlayerLevel(itemEx.uid) < potion.level) or (potion.vocations and not isInArray(potion.vocations, getPlayerVocation(itemEx.uid)))) and not getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES)) then doCreatureSay(itemEx.uid, "Only " .. potion.vocStr .. (potion.level and (" of level " .. potion.level) or "") .. " or above may drink this fluid.", TALKTYPE_MONSTER, false, cid) return true end if(potion.range > 0 and cid ~= itemEx.uid and getDistanceBetween(getThingPosition(cid), getThingPosition(itemEx.uid)) > potion.range and not getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_CANUSEFAR)) then doPlayerSendDefaultCancel(cid, RETURNVALUE_TOOFARAWAY) return true end local playerlevel = getPlayerLevel(itemEx.uid) if(potion.rate and not doTargetCombatHealth(0, itemEx.uid, COMBAT_HEALING, playerlevel*potion.rate, playerlevel*potion.rate, CONST_ME_MAGIC_BLUE)) then return false end if(potion.rateMana and not doTargetCombatMana(0, itemEx.uid, playerlevel*potion.rateMana, playerlevel*potion.rateMana, CONST_ME_MAGIC_BLUE)) then return false end if(type(potion.area) == 'table' and table.maxn(potion.area) > 1) then for i, tid in ipairs(getSpectators(getThingPosition(itemEx.uid), potion.area[1], potion.area[2])) do if(isPlayer(tid)) then doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_MONSTER, false, tid) end end else doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_MONSTER, false, itemEx.uid) if(itemEx.uid ~= cid) then doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_MONSTER, false, cid) end end return true end
  15. to com um script aqui que as potions healam de acordo com o level o problema é: GREAT SPIRIT POTION nao heala HP e MANA ao mesmo tempo, (eu tenho q escolher ou HP ou MANA), alguem sabe arrumar isso? [8472] = {empty = 7635, splash = 43, rateMana = 3, level = 80, vocations = {3, 7}, vocStr = "paladins"} -- great spirit potion e sim, eu ja tentei botar "rateMana" e "rate" na mesma linha, só funciona o "ratemana" mesmo colocando os dois, nao sei pq, alguem help
  16. @Danves opa, recentemente troquei de distro, to ainda com esse problema do ml 156, quando eu botei na source esse script q voce mandou , da um pequeno bug... quando upo ml 156, ele vai pro ml 158... dps do 158 uma magia upa 3% ate o ml 159 dps do 159 uma magia upa 5% ate o ml 160 dps do 160 uma magia upa 2% ate o 161... fica variando, tens como me ajudar?
  17. @Pedriinz @WhiteBubble opa, preciso de uma força se puder eu encontrei um creaturescript aqui no TK que mostra a quantidade de player e quantos players online tem na guild dando look. no script que o pedrin criou (por player online), teria como colocar por maximo de players na guild baseando nesse script? (players guild no look)? Script de look "The guild has 5 total members, 3 of them online." teria como colocar essa query 2 db.getResult("SELECT Count( guild_id ) FROM `players` WHERE `players`.`guild_id` = "..getPlayerGuildId(thing.uid)..";") nesse script do pedrin? ( eu nao sei montar =c ) se puder dar uma força... é noix
  18. como assim amigo, nao entendi, só to com 2 script de server save (que demora 40 segundos pra salvar) e o outro é global save (todos os dias as 07:00h da manha) o problema é que nao confio muito no global save das 07:00h da manha (tipo: e se o ot cair durante o dia sem salvar?) por isso to pedindo alguma solução pra arrumar o tempo do server save, antigamente meu server salvava em 10/15 segundos com 60 online, hoje ta demorando muito , nao sei pq =S

Informação Importante

Confirmação de Termo