Ir para conteúdo

mullino

Membro
  • Registro em

  • Última visita

Tudo que mullino postou

  1. removi essa parte e ele funcionou normal antes dissu so ficava flaando que ja estava aberto obrigado vodkart meu brother
  2. Desculpe, ja existe um telepor criado no momento
  3. como configuro essa parte ?? onde vai ser criado e depois onde vai levar? toda vez que tento abrir o evento fala que ja esta aberto local tpId = 1387 local pos,topos = {x=151, y=40, z=7},{x=95, y=182, z=7} function onSay(cid,words,param,channel) local t = getTileItemById(pos, tpId) if t then hasTeleport = true end if param == "close" then if hasTeleport then doRemoveItem(t.uid, 1) doSendMagicEffect(pos, CONST_ME_POFF) doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_ORANGE,"O teleport foi fechado.") else doPlayerSendCancel(cid, "Desculpe, mas nao tem nenhum teleport no momento.") end return true end if hasTeleport then doPlayerSendCancel(cid, "Desculpe, ja existe um telepor criado no momento.") return true end doCreateTeleport(tpId, topos, pos) doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_ORANGE,"O teleport foi aberto.") return true end e eu queria que aparecesse uma menssagem em vermelhor dizendo que o teleport do evento abriu
  4. boa tarde galerinha do tk gostaria da ajuda de vcs @Vodkart para criar um script que quando eu desse o comando com o adm /dice abrisse um teleport em x cordenada e que esse teleporte levasse os players para x cordenada configuravel e quando eu dece o comando /dice close fexasse o teleporte . obrigado des de ja pela ajuda
  5. descupa a falta de informaçoes uso linux ffs 0.4 8.6 se vc puder entra no meu ot pra dar uma ajuda sobre esse bug chama no chat
  6. esta na vps mano
  7. Boa noite galerinha do tk estou com um problema aki no meu ot e em varios ots tbm tem o mesmo problema se alguem souber com corrigir issu acho que é na source, ajude por favor. explo: se o mostro colar no player e o player andar o monstro nao vai atraz dele tem uma certa pausa da parte do monstro.... depois que o player sai correndo o monstro demora 1 segundo para sair atraz do player ai ele acaba passando correndo na queste toda sem matar os monstros. alguem sabe como resolver isso. obrigado
  8. varios fatores comtribuem para o lag mano............ super fast attack distrito (uma das principais causas de lag) scripts mal feitas...........
  9. mullino postou uma resposta no tópico em Ouvidoria
    Oque seria ESSE..... REALCE DE SINTAXE... ?
  10. agora deu esse @Vodkart Error - CreatureScript Interface] data/creaturescripts/scripts/killuaItemUp.lua:onKill Description: data/creaturescripts/scripts/killuaItemUp.lua:37: attempt to call global 'doItemAddExp' (a nil value) stack traceback: data/creaturescripts/scripts/killuaItemUp.lua:37: in function <data/creaturescripts/scripts/killuaItemUp.lua:27>
  11. estou com esse aki alguém pode ajudar [Error - CreatureScript Interface] data/creaturescripts/scripts/killuaItemUp.lua:onKill Description: (luaGetMonsterInfo) Monster not found -- Itens Upgrade System feito por Killua (Vítor Bertolucci) local min_exp = 2000 -- Exp mínima para o monstro valer (exp que fica no monster.xml) local exp_levels = {100000, 245000, 499500, 743300, 967000, 1317400, 2038000, 3800000, 5214000, 7130000} -- Exp pra upar. A cada vez que um item atingir um desses valores de exp, ele upa 1 lvl. (Tem 10, ou seja, nível máximo do item = 10) Pode por mais leveis se quiser. local slots = {1,4,7,8,5,6} local wands = {7735,7414,7410,7424} local function getItemExp(item) if item.itemid > 0 then return getItemAttribute(item.uid, "exp") or tonumber(0) end return false end local function getItemLevel(experience) if experience < exp_levels[1] then return tonumber(0) end local old = 1 for i = 2,10 do if experience < exp_levels and experience >= exp_levels[old] then return tonumber(old) end old = i end end local function getMonsterItemExp (cid,monsterExp) local n = monsterExp * 2.71828182846 local lvl = getPlayerLevel(cid) n = (n / (lvl ^ (2.71828182846/10)))/1000 return math.floor(n) end local function doItemAddExp(cid,item,exp) if item.itemid > 0 and tonumber(exp) then local exp_now = getItemExp(item) local oldLevel = getItemLevel(exp_now) doItemSetAttribute(item.uid, "exp", exp_now + exp) local newLevel = getItemLevel(getItemExp(item)) if oldLevel < newLevel then local isPair = newLevel%2 == 0 and true or false local attribute = isPair and 1 or 2 -- Upar o item local itemName = getItemNameById(item.itemid) doItemSetAttribute(item.uid,"name",itemName.." +"..newLevel) if isShield(item.uid) then local def = getItemAttribute(item.uid, "defense") or getItemInfo(item.itemid).defense doItemSetAttribute(item.uid,"defense", def + attribute) doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_ORANGE,"Seu "..itemName.." upou para o level "..newLevel.." e recebeu +".. attribute .." de defesa.") elseif (isSword(item.uid) or isAxe(item.uid) or isClub(item.uid) or isBow(item.uid)) then local atk = getItemAttribute(item.uid, "attack") or getItemInfo(item.itemid).attack doItemSetAttribute(item.uid,"attack", atk + attribute) doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_ORANGE,"Seu "..itemName.." upou para o level "..newLevel.." e recebeu +".. attribute .." de ataque.") elseif isArmor(item.itemid) then local arm = getItemAttribute(item.uid, "armor") or getItemInfo(item.itemid).armor doItemSetAttribute(item.uid,"armor", arm + attribute) doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_ORANGE,"Seu "..itemName.." upou para o level "..newLevel.." e recebeu +".. attribute .." de arm.") elseif isWand(item.uid) and isInArray(wands,item.itemid) then doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_ORANGE,"Sua "..itemName.." upou para o level "..newLevel.." e recebeu +5% de poder de ataque") end end end return false end function onKill(cid, target, lastHit) if isPlayer(cid) and isMonster(target) then local monsterName = getCreatureName(target) if not monsterName or type(monsterName) ~= "string" then return true end local monster = getMonsterInfo(monsterName) if not monster then return true end local monsterExp = getMonsterInfo(monsterName).experience if not monsterExp then return true end local exp_gain = getMonsterItemExp(cid,monsterExp) if monsterExp >= min_exp then for _,b in pairs(slots) do local item = getPlayerSlotItem(cid, b) if item.uid > 0 then if isArmor(item.itemid) or isShield(item.uid) or isWand(item.uid) or isAxe(item.uid) or isSword(item.uid) or isClub(item.uid) or isBow(item.uid) then doItemAddExp(cid, item, exp_gain) local itemExp = getItemExp(item) --doPlayerSendTextMessage(cid,MESSAGE_EVENT_DEFAULT,"Seu "..getItemNameById(item.itemid).." ganhou "..exp_gain.." pontos de exp ao derrotar um "..monsterName..". Ele tem ["..itemExp.."/".. exp_levels[ getItemLevel(itemExp) +1] .."] pontos atualmente.") end end end end end return true end function onLogin(cid) registerCreatureEvent(cid, "Item level") return true end
  12. @Sttorm estou com esse aki tbm [Error - CreatureScript Interface] data/creaturescripts/scripts/killuaItemUp.lua:onKill Description: (luaGetMonsterInfo) Monster not found -- Itens Upgrade System feito por Killua (Vítor Bertolucci) local min_exp = 2000 -- Exp mínima para o monstro valer (exp que fica no monster.xml) local exp_levels = {100000, 245000, 499500, 743300, 967000, 1317400, 2038000, 3800000, 5214000, 7130000} -- Exp pra upar. A cada vez que um item atingir um desses valores de exp, ele upa 1 lvl. (Tem 10, ou seja, nível máximo do item = 10) Pode por mais leveis se quiser. local slots = {1,4,7,8,5,6} local wands = {7735,7414,7410,7424} local function getItemExp(item) if item.itemid > 0 then return getItemAttribute(item.uid, "exp") or tonumber(0) end return false end local function getItemLevel(experience) if experience < exp_levels[1] then return tonumber(0) end local old = 1 for i = 2,10 do if experience < exp_levels and experience >= exp_levels[old] then return tonumber(old) end old = i end end local function getMonsterItemExp (cid,monsterExp) local n = monsterExp * 2.71828182846 local lvl = getPlayerLevel(cid) n = (n / (lvl ^ (2.71828182846/10)))/1000 return math.floor(n) end local function doItemAddExp(cid,item,exp) if item.itemid > 0 and tonumber(exp) then local exp_now = getItemExp(item) local oldLevel = getItemLevel(exp_now) doItemSetAttribute(item.uid, "exp", exp_now + exp) local newLevel = getItemLevel(getItemExp(item)) if oldLevel < newLevel then local isPair = newLevel%2 == 0 and true or false local attribute = isPair and 1 or 2 -- Upar o item local itemName = getItemNameById(item.itemid) doItemSetAttribute(item.uid,"name",itemName.." +"..newLevel) if isShield(item.uid) then local def = getItemAttribute(item.uid, "defense") or getItemInfo(item.itemid).defense doItemSetAttribute(item.uid,"defense", def + attribute) doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_ORANGE,"Seu "..itemName.." upou para o level "..newLevel.." e recebeu +".. attribute .." de defesa.") elseif (isSword(item.uid) or isAxe(item.uid) or isClub(item.uid) or isBow(item.uid)) then local atk = getItemAttribute(item.uid, "attack") or getItemInfo(item.itemid).attack doItemSetAttribute(item.uid,"attack", atk + attribute) doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_ORANGE,"Seu "..itemName.." upou para o level "..newLevel.." e recebeu +".. attribute .." de ataque.") elseif isArmor(item.itemid) then local arm = getItemAttribute(item.uid, "armor") or getItemInfo(item.itemid).armor doItemSetAttribute(item.uid,"armor", arm + attribute) doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_ORANGE,"Seu "..itemName.." upou para o level "..newLevel.." e recebeu +".. attribute .." de arm.") elseif isWand(item.uid) and isInArray(wands,item.itemid) then doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_ORANGE,"Sua "..itemName.." upou para o level "..newLevel.." e recebeu +5% de poder de ataque") end end end return false end function onKill(cid, target, lastHit) if isPlayer(cid) and isMonster(target) then local monsterName = getCreatureName(target) if not monsterName or type(monsterName) ~= "string" then return true end local monster = getMonsterInfo(monsterName) if not monster then return true end local monsterExp = getMonsterInfo(monsterName).experience if not monsterExp then return true end local exp_gain = getMonsterItemExp(cid,monsterExp) if monsterExp >= min_exp then for _,b in pairs(slots) do local item = getPlayerSlotItem(cid, b) if item.uid > 0 then if isArmor(item.itemid) or isShield(item.uid) or isWand(item.uid) or isAxe(item.uid) or isSword(item.uid) or isClub(item.uid) or isBow(item.uid) then doItemAddExp(cid, item, exp_gain) local itemExp = getItemExp(item) --doPlayerSendTextMessage(cid,MESSAGE_EVENT_DEFAULT,"Seu "..getItemNameById(item.itemid).." ganhou "..exp_gain.." pontos de exp ao derrotar um "..monsterName..". Ele tem ["..itemExp.."/".. exp_levels[ getItemLevel(itemExp) +1] .."] pontos atualmente.") end end end end end return true end function onLogin(cid) registerCreatureEvent(cid, "Item level") return true end no anti entrossa deu esse [Error - GlobalEvent Interface] data/globalevents/scripts/antiEntrosaKillua.lua:onThink Description: data/globalevents/scripts/antiEntrosaKillua.lua:8: attempt to compare nil with number stack traceback: data/globalevents/scripts/antiEntrosaKillua.lua:8: in function <data/globalevents/scripts/antiEntrosaKillua.lua:1> [Error - GlobalEvents::think] Couldn't execute event: Anti Entrosa
  13. lol tem esse aki vazio tbm oque coloco nele local newTab = {}
  14. boa noite estou com ums erros na distro podem me ajudar a resolver? [Error - TalkAction Interface] data/talkactions/scripts/rain_money.lua:onSay Description: data/talkactions/scripts/rain_money.lua:52: attempt to compare number with nil stack traceback: data/talkactions/scripts/rain_money.lua:52: in function <data/talkactions/scripts/rain_money.lua:41> -- Script feito por Vitor Bertolucci -- 18/05/2014 local nme = "Rain Money" local function rainMoney(cid, multiple) if isPlayer(cid) then if getPlayerStorageValue(cid, 1281821) >= 100 * multiple then return true end local pos = getCreaturePosition(cid) local area = {x = math.random(pos.x - 5, pos.x + 5), y = math.random(pos.y - 5, pos.y + 5), z = pos.z} local time_ = math.random(600, 3000) local quant = math.random(1, 5) if not isWalkable(cid, area, false) or getHouseFromPos(area) then local count = 0 while (getHouseFromPos(area) or not isWalkable(cid,area,false)) and count < 10 do count = count + 1 area = {x = math.random(pos.x - 5, pos.x + 5), y = math.random(pos.y - 5, pos.y + 5), z = pos.z} if count == 10 then area = pos end end end if getPlayerStorageValue(cid, 1281821) + quant > 100 * multiple then addEvent(doSendDistanceShoot, time_ - 200, {x = pos.x + 9, y = pos.y - 8, z = pos.z}, area, 28) addEvent(doSendMagicEffect, time_, area, 1) addEvent(doCreateItem, time_, 2160, ((100 * multiple) - getPlayerStorageValue(cid, 1281821)), area) doPlayerSetStorageValue(cid,722521,-1) return true else addEvent(doSendDistanceShoot, time_ - 200, {x = pos.x + 9, y = pos.y - 8, z = pos.z}, area, 28) addEvent(doSendMagicEffect, time_, area, 1) addEvent(doCreateItem, time_, 2160, quant, area) doPlayerSetStorageValue(cid, 1281821, getPlayerStorageValue(cid, 1281821) + quant) end addEvent(rainMoney, 200, cid, multiple) end end function onSay(cid, words, param, channel) if param == "" then doPlayerSendCancel(cid, gTm(cid,nme,1)) return true end if getPlayerStorageValue(cid,722521) == 1 then doPlayerSendCancel(cid,gTm(cid,nme,2)) return true end if tonumber(param) > 0 then if tonumber(param) > 50 then doPlayerSendCancel(cid,gTm(cid,nme,3)) return true end if getPlayerBalance(cid) >= 1000000 * tonumber(param) then doPlayerSetStorageValue(cid,722521,1) doPlayerSetBalance(cid, getPlayerBalance(cid) - 1000000 * tonumber(param)) doPlayerSetStorageValue(cid, 1281821, 0) rainMoney(cid, tonumber(param)) else doPlayerSendCancel(cid, gTm(cid,nme,4)) end else doPlayerSendCancel(cid, gTm(cid,nme,5)) end return true end Ajuda @Sttorm @Vodkart
  15. boa tarde estou com um erro no warantientrosa alguem pode ajudar [Error - GlobalEvent Interface] data/globalevents/scripts/antiEntrosaKillua.lua:onThink Description: data/globalevents/scripts/antiEntrosaKillua.lua:8: attempt to compare nil with number stack traceback: data/globalevents/scripts/antiEntrosaKillua.lua:8: in function <data/globalevents/scripts/antiEntrosaKillua.lua:1> [Error - GlobalEvents::think] Couldn't execute event: Anti Entrosa function onThink(interval, lastExecution, thinkInterval) local storages = {} for a,b in pairs(Entrosa.arenas) do storages[b.number] = b.storage end for x,y in pairs(storages) do local tab_sto = getGlobalTableStorage(y) if tonumber(tab_sto[4]) < os.time() then if tonumber(tab_sto[1]) <= os.time() then for _, pid in pairs(getPlayersOnline()) do if getPlayerStorageValue(pid,Entrosa.sto) == x then doPlayerSetStorageValue(pid,Entrosa.sto,-1) doTeleportThing(pid,getTownTemplePosition(getPlayerTown(cid))) doPlayerSendTextMessage(pid,MESSAGE_STATUS_CONSOLE_ORANGE,"A guerra entre as guilds acabou e você foi trazido para o templo.") end end local newTab = {} for l,t in next, tab_sto do newTab[l] = 0 end setGlobalTableStorage(y,newTab) end end end return true end Ajuda @Vodkart @Sttorm
  16. e ae @Sttorm tem como fazer assim pra min
  17. Um acréscimo @Sttorm Envés de aparecer sóh um baú aparecesse vários ao lado do que tem o prêmio. Asim que clicar no baú errado o player é teleportado p templo podendo tentar outra vez. Quando o player clicasse no baú certo seria teleportado para o templo e não poderia mais participar do evento até o proximo. Tem como?
  18. so colocar no aki <movevent type="DeEquip" itemid="12721" slot="feet" event="script" value="reflec.lua"/> <movevent type="Equip" itemid="12721" slot="feet" event="script" value="reflec.lua"> e criar uma arquivo lua com o codico?
  19. Diga em poucas palavras a base utilizada (Nome do servidor ou nome do website). Ex. TFS 1.3; Base: 8.6 Qual erro está surgindo/O que você procura? tenho uma boot que reflet o dano no meu otserv mas ela funciona normal mas os player coloca 3 botas uma no lugar da flexa e outra no lugar da arma ou shield e o reflet triplica algum pode me ajudar a arrumar issu? quero colocar essa bota para poder ser equipada so no lugar da boots memso tem como? <item id="12721" article="a" name="Reflect Boots"> <attribute key="weight" value="500" /> <attribute key="slotType" value="feet" /> <attribute key="description" value="Reflection Item para poucos, reflete o dobro de todos ataques recebidos para os oponentes." /> <attribute key="reflectpercentall" value="40"/> <attribute key="reflectchanceall" value="70"/> <attribute key="healthGain" value="4600" /> <attribute key="healthTicks" value="2500" /> <attribute key="manaGain" value="4900" /> <attribute key="maxmanapoints" value="5000"/> <attribute key="maxhealthpoints" value="5000"/> <attribute key="manaTicks" value="2500" /> <attribute key="speed" value="950" /> <attribute key="absorbPercentAll" value="15"/> <attribute key="showattributes" value="1" /> </movevent> <movevent type="DeEquip" itemid="12721" slot="feet" event="function" value="onDeEquipItem"/> <movevent type="Equip" itemid="12721" slot="feet" event="function" value="onEquipItem"> </movevent> +REP Você tem o código disponível? Se tiver publique-o aqui: Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
  20. mullino postou uma resposta no tópico em Suporte Tibia OTServer
    alguem??
  21. mullino postou uma resposta no tópico em Suporte Tibia OTServer
    Diga em poucas palavras a base utilizada (Nome do servidor ou nome do website). Ex. TFS 1.3; Base: 8.6 Qual erro está surgindo/O que você procura? por ex: enquanto uso potion não consigo abrir bp, loot, equipar um ring, trocar um equip etc.. vi que tem alguns servidores que não tem este exhaust, por ex os baiaks, style alguem pode me ajudar tirar issu do meu server??
  22. mullino postou uma resposta no tópico em Suporte Tibia OTServer
    vc esta usando uma distro 64 em sistema 32!
  23. mullino postou uma resposta no tópico em Suporte Tibia OTServer
    vc vai ter que procurar teleport por teleport para mudar mas issu e facil............ aperte ctrl +f e pesquise o id do teleporte.................... quando achar vai mostrar todos os teleports do mapa e so vc ir olhando um por 1 e mudando...
  24. mullino postou uma resposta no tópico em Suporte Tibia OTServer
    soh uma duvida simples............ pra que um teleporte pra mesma posição??

Informação Importante

Confirmação de Termo