En muchos de los emuladores como Trinity, Mango o Ascent, el hechizo Shattered Barrier tiene un bug, con este LUA Scripts se arreglara este hechizo.

SCRIPT LUA:

s = {}
barrs = {11426, 13031, 13032, 13033, 27134, 33405, 43038, 43039}
s[tostring(player)] = nil -- I KNOW THIS ISNT NEEDED ;D

shat = {}

function shat.Hook(event, player, spellid)
	if type(s[tostring(player)]) ~= "table" then
		s[tostring(player)] = {}
	end
	
	if (player:HasSpell(54787) == true) then
		for k, v in pairs(barrs) do
			if (spellid == v) then
				s[tostring(player)]["var"] = 1
				s[tostring(player)]["ID"] = spellid
				RegisterTimedEvent("shat.Timerone", 1000, 60, player)
			end
		end
	elseif (player:HasSpell(44745) == true) then
		for k, v in pairs(barrs) do
			if (spellid == v) then
				s[tostring(player)]["var"] = 1
				s[tostring(player)]["ID"] = spellid
				local chance = math.random(1, 2)
				if (chance == 1) then
					RegisterTimedEvent("shat.Timertwo", 1000, 60, player)
					else
				end
			end
		end
	end
end

function shat.Timerone(player, event)
	if (player:HasAura(s[tostring(player)]["ID"]) == false) and
	(s[tostring(player)]["var"] == 1) and
	(player:IsInCombat() == true) then
		s[tostring(player)]["var"] = 0
		player:CastSpell(55080)
	end
end

function shat.Timertwo(player, event)
	if (player:HasAura(s[tostring(player)]["ID"]) == false) and
	(s[tostring(player)]["var"] == 1) and
	(player:IsInCombat() == true) then
		s[tostring(player)]["var"] = 0
		player:CastSpell(55080)
	end
end


RegisterServerHook(10, "shat.Hook")

logcol(4+8)
print("Brathus Lua spellfix for Shattered Barrier(Talent) has been sucessfully loaded")
logcol(7)

DEJA UNA RESPUESTA

Please enter your comment!
Please enter your name here