While .. do and other conditions
SO close to release time for my merchant.
Anyway i'm pulling my hair out over a persistent problem. I have a functioning trader (buying and selling) to and from other players. It all works well if they do their part right lol. The problem occurs when they close the trade window early. I was using a while do loop that checked for the trade screen but it wasn't doing any good.
I had something like
Code:
Procedure BeatTheGame;
begin
While (TradeScreen = True) do
begin
OwnZammy;
TradeScreen;
OwnZezima;
TradeScreen;
GetHotPockets;
TraceScreen;
end;
end;
I thought this was like the best thing ever...until it didn't work.
So i figured it got stuck inside one of my smaller procedures
So i added some more useless stuff like
Code:
Procedure OwnZammy;
begin
while (TradeScreen = True) do
begin
GetHugeKnife;
TradeScreen;
SharpenHugeKnife;
TradeScreen;
DontCutSelf;
TradeScreen;
end;
end;
I thought this would for sure solve it....wrongo :duh:
I went all the way through down to the smallest loop and procedure and i'm down to the point where i would need to edit SRL files to have it check inside those procedure....then i got smart. I went to eat some food. So now i'm here hoping someone can help me.
What i need to do is have the script skip to the end if the trade screen ever goes down. No matter where it gets closed. It's killing me.
Hope you guys can help. The script will be free so I can post it if you want to see. It's probably not up to standards but i plan to clean it up a bit.
Anyway thanks!
Ransom