Jump to content

Recommended Posts

Posted

Играю с

 

local frame = CreateFrame("Frame", "AutoRelease")

function eventHandler(self, event, arg1)

if event == "PLAYER_DEAD" then

local InstStat, InstType = IsInInstance();

if InstStat == 1 and InstType == "pvp" then

-- Check for soulstone

if not (HasSoulstone()) then

RepopMe();

end

end

return

end

end

frame:SetScript("OnEvent", eventHandler)

frame:RegisterEvent("PLAYER_DEAD")

 

и таких проблем нет)

Posted
Играю с

 

local frame = CreateFrame("Frame", "AutoRelease")

function eventHandler(self, event, arg1)

if event == "PLAYER_DEAD" then

local InstStat, InstType = IsInInstance();

if InstStat == 1 and InstType == "pvp" then

-- Check for soulstone

if not (HasSoulstone()) then

RepopMe();

end

end

return

end

end

frame:SetScript("OnEvent", eventHandler)

frame:RegisterEvent("PLAYER_DEAD")

 

и таких проблем нет)

 

и думаешь он понял?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Who's Online   1 Member, 0 Anonymous, 217 Guests (See full list)

×
×
  • Create New...