Brandon
2011-07-10 22:46:48
K guys Im using reflection2 beta to write a script.. so far everything is fine (well except object clicking :c) But I wanna know how to find a player after teleport…
I have:
Help..
I have:
Procedure FillPrayer;
var
InvItem: TInvItem; MyPos: TTile;
begin
if(R_ItemExists(HouseTab, InvItem)) then
Repeat
R_ClickItemBy(HouseTab, true, '');
WaitForAnimation(5000);
Until(CharacterAnimating);
MyPos:= GetMyPos;
If((MyPos = PointToTile(3439,3454)) or (MyPos = PointToTile(3436, 3453))) then
begin
Wait
end;
end;
How do I wait until the player appears in the house?? Every house is different so the Box the player appears in will be different if I were to use SelfInBox: TBox.. to check if they're in the house.. So How would I go about this? Thing is when the player teleports, they animate.. then the screen goes black and u see the house interface thing saying "Home Sweet Home" and during that time, animation is -1.. so basically it doesn't wait till u appear because your no longer animating but rather the function just continues on :cHelp..