TseTse
05-19-2006, 11:09 PM
EDIT:
http://ui.worldofwar.net/ui.php?id=1948
http://ui.worldofwar.net/ui.php?id=998
SSPVP along with BGAssist have done most of what i wanted.
However, i now want to add a feature to AUTO-take screen shots at the end of a match.
I'm gonna just hack SSPVP. SSPVP.lua
function SSPVP_AcceptBattlefieldPo rt( index, accept, ignoreConfirm )
if( ignoreConfirm == nil and not ignoreConfirm and accept == nil ) then
_, mapName = GetBattlefieldStatus( index );
local dialog = StaticPopup_Show("CONFIRM_BATTLEFIELD_LEAVE", mapName, "", index );
if( dialog ) then
dialog.data = index;
end
else
if( ignoreConfirm and accept == nil ) then
StaticPopup_Hide( "CONFIRM_BATTLEFIELD_ENTRY", index );
end
Orig_AcceptBattlefieldPor t( index, accept );
end
end
Can i just toss in "Screenshot();" ???
function SSPVP_AcceptBattlefieldPo rt( index, accept, ignoreConfirm )
if( ignoreConfirm == nil and not ignoreConfirm and accept == nil ) then
_, mapName = GetBattlefieldStatus( index );
local dialog = StaticPopup_Show("CONFIRM_BATTLEFIELD_LEAVE", mapName, "", index );
Screenshot();
if( dialog ) then
dialog.data = index;
end
else
if( ignoreConfirm and accept == nil ) then
StaticPopup_Hide( "CONFIRM_BATTLEFIELD_ENTRY", index );
end
Orig_AcceptBattlefieldPor t( index, accept );
end
end
Correct?
Could you further have it target the NPC and automatically re-queue? :D
http://ui.worldofwar.net/ui.php?id=1948
http://ui.worldofwar.net/ui.php?id=998
SSPVP along with BGAssist have done most of what i wanted.
However, i now want to add a feature to AUTO-take screen shots at the end of a match.
I'm gonna just hack SSPVP. SSPVP.lua
function SSPVP_AcceptBattlefieldPo rt( index, accept, ignoreConfirm )
if( ignoreConfirm == nil and not ignoreConfirm and accept == nil ) then
_, mapName = GetBattlefieldStatus( index );
local dialog = StaticPopup_Show("CONFIRM_BATTLEFIELD_LEAVE", mapName, "", index );
if( dialog ) then
dialog.data = index;
end
else
if( ignoreConfirm and accept == nil ) then
StaticPopup_Hide( "CONFIRM_BATTLEFIELD_ENTRY", index );
end
Orig_AcceptBattlefieldPor t( index, accept );
end
end
Can i just toss in "Screenshot();" ???
function SSPVP_AcceptBattlefieldPo rt( index, accept, ignoreConfirm )
if( ignoreConfirm == nil and not ignoreConfirm and accept == nil ) then
_, mapName = GetBattlefieldStatus( index );
local dialog = StaticPopup_Show("CONFIRM_BATTLEFIELD_LEAVE", mapName, "", index );
Screenshot();
if( dialog ) then
dialog.data = index;
end
else
if( ignoreConfirm and accept == nil ) then
StaticPopup_Hide( "CONFIRM_BATTLEFIELD_ENTRY", index );
end
Orig_AcceptBattlefieldPor t( index, accept );
end
end
Correct?
Could you further have it target the NPC and automatically re-queue? :D