Postado Novembro 13, 2021 4 anos .Qual servidor ou website você utiliza como base? OTX1264 Qual o motivo deste tópico? Problema com script sem erros, apenas nao executa nada. Está surgindo algum erro? Se sim coloque-o aqui. Citar Você tem o código disponível? Se tiver publique-o aqui: local emperium = CreatureEvent("Emperium") function emperium.onDeath(creature, corpse, killer, mostDamage, unjustified, mostDamage_unjustified) local isGuild = false if killer:isPlayer() == false then if killer:getMaster() == false then return end killer = killer:getMaster() end if killer:getGuild() == nil then return end --PEGAR SE QUEM MATOU É PLAYER SE NÃO, PEGAR O SUMMON if killer ~= nil then if killer:isPlayer() then byPlayer = 1 else local master = killer:getMaster() if master and master ~= killer and master:isPlayer() then killer = master byPlayer = 1 end end killerName = killer:isMonster() and killer:getType():getNameDescription() or killer:getName() else killerName = 'field item' end --PEGAR O MOST DAMAGE local byPlayerMostDamage = 0 local mostDamageKillerName if mostDamageKiller ~= nil then if mostDamageKiller:isPlayer() then byPlayerMostDamage = 1 else local master = mostDamageKiller:getMaster() if master and master ~= mostDamageKiller and master:isPlayer() then mostDamageKiller = master byPlayerMostDamage = 1 end end mostDamageName = mostDamageKiller:isMonster() and mostDamageKiller:getType():getNameDescription() or mostDamageKiller:getName() else mostDamageName = 'field item' end local guildid = killer:getGuild():getId() --table.sort(guilds, function(a,b) return a[2] > b[2] end) db.query("DELETE FROM `castle`") if guildid ~= nil then local info = db.storeQuery("SELECT `name`, `ownerid` FROM `guilds` WHERE `id` = " .. guildid .. " LIMIT 1") local name = result.getString(info, "name") local owner = result.getString(info, "ownerid") db.query("INSERT INTO `castle` VALUES (".. guildid ..", '".. name .."')") broadcastMessage(woe.eventName.." has ended. Congratulations to ".. name .." for claiming ownership of the castle!", MESSAGE_EVENT_ADVANCE) --Tile(woe.castle):getHouse():setOwnerGuid(owner) end --guilds = {} for k,v in pairs(woe.doors) do if Creature(v.name) ~= nil then Creature(v.name):remove() end local door = Game.createItem(v.id, 1, v.pos) door:setActionId(woe.actionid) end end emperium:register() Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui. Tenho esse creaturescript, que tenho tentado adaptar ao OTX1264. Porém, simplesmente não executa, ao matar o monstro Emperium não acontece nada, preciso adicionar alguma linha ao monstro? OU o Script está com problemas? Preciso de uma luz rsrs Segundo passo seria adapta-lo para dar a win a quem deu mais dano, mas primeiro gostaria de entender o porque nao executa nada. xBlackWolf THX @Storm Night Best Avatar Ever
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.