Page 1 of 1

instance diffuculty

Posted: Sun Apr 01, 2012 4:57 pm
by kuripot
i have problem in instance difficulty maybe my xbar addon.. i try to eliminate auto normal to use "autoinstancedifficulty" addon and send command to set in easy mode... but sometimes it failed and i die in GC because accidentally set in normal..
my question is... how to pause and reset to easy mode before i start

Re: instance diffuculty

Posted: Tue Apr 03, 2012 3:59 pm
by kuripot
what i mean to say is... how can i make command in given mode..
example:
if difficulty is on normal mode

Code: Select all

__WPL:setWaypointIndex(1);
which is

Code: Select all

	<!-- #  1 --><waypoint x="-8472" z="45468" y="758">
sendMacro("LeaveParty();");
SlashCommand("aid easy")
yrest(200)
player:update();
while not RoMScript("UnitExists('party1')") do
SlashCommand("ILG inv")
SlashCommand("aid easy")
yrest(5000)
SlashCommand("aid easy")
end 
</waypoint>
if difficulty is on easy mode

Code: Select all

__WPL:setWaypointIndex(3);
which is

Code: Select all

	<!-- #  3 --><waypoint x="-8460" z="45524" y="758">
   keyboardPress(key.VK_S);keyboardPress(key.VK_W);keyboardPress(key.VK_S);
   if not waitForLoadingScreen(10) then
      cprintf(cli.red,"Trouble getting thru the doors - will retry last 3 waypoints.\n");
        __WPL:setWaypointIndex(2);
    end
	</waypoint>

Code: Select all

<!-- #  2 --><waypoint x="-8472" z="45468" y="758">			</waypoint>
<!-- # 2 --> one step backward from <!-- # 3 -->

Re: instance diffuculty

Posted: Tue Apr 03, 2012 4:29 pm
by kkulesza

Code: Select all

difficulty=sendMacro("GetInstanceLevel()")
but imo it would be easier to configure or deinstall the addon that keeps changing this.

Re: instance diffuculty

Posted: Tue Apr 03, 2012 6:19 pm
by kuripot
i cant live without xbar :(
is this is auto normal of xbar??

Code: Select all

------------------------
-- Instance Auto-Normal
------------------------
local schwierigkeit = "normal";

function AutoNormal_OnEvent(this,event)
	SetInstanceLevel(schwierigkeit);
end

function AutoNormal_OnLoad(this)
	AutoNormalFrame:RegisterEvent("PARTY_MEMBER_CHANGED");		
end

function AutoNormal_normal()
	if(schwierigkeit == "normal") then
		schwierigkeit = "easy"
		DEFAULT_CHAT_FRAME:AddMessage("XBar: Instance EASY");
	else
		schwierigkeit = "normal"
		DEFAULT_CHAT_FRAME:AddMessage("XBar: Instance NORMAL");
	end
end
how to set...

Re: instance diffuculty

Posted: Tue Apr 03, 2012 7:31 pm
by kkulesza
1. you can change code like this:

Code: Select all

function AutoNormal_OnEvent(this,event)

	--SetInstanceLevel(schwierigkeit);  --comment this line
end

function AutoNormal_OnLoad(this)
	--AutoNormalFrame:RegisterEvent("PARTY_MEMBER_CHANGED");	  --comment this line	
end
2. You can delete the autonormal file from xbar directory, xbar still should work
3. You can upgrade your xbar addon. I have new version from curse.com and there is no autonormal