SRL Archive - OSR Help

gametab problem


traveler

2010-09-04 20:40:55

i have 4 lines of code here that do not seem to work.

  if(not(GetCurrentTab = tab_Inv)) then
begin
MSI_SubDebug('Inventory not open! fixing....');
GameTab(tab_Inv);
end;

i am trying to fix a small bug in part of the MSI scripting where it doesnt open the inventory back up when it does a anti-ban. unfortunately, it does not open the gametab when it goes into this if statement. From what i understand, all I have to do to open the inventory is put this statement GameTab(tab_Inv);

am i wrong?

NCDS

2010-09-04 20:47:01

Nope your right. Actually, the only thing necessary is

GameTab(tab_Inv);
as the GameTab function already checks to see if the specified tab is already open before clicking it.

traveler

2010-09-04 20:53:59

thanks for the fast reply, but its still not opening the gametab. just sits on the quests tab or whatever other tab i have open.

NCDS

2010-09-05 08:50:51

I'll see if I can't figure something out when I edit mining later, though I don't think anyone else has had this problem.