Wyn
2010-09-27 18:47:56
I am working on a random and was wondering how could I could click a door using the tile it's on. (The door has a random id :frusty:)
Please show a example.
Thanks.
Please show a example.
Thanks.
2010-09-27 18:47:56
2010-09-27 20:44:49
2010-09-27 21:10:19
From: i luffs yeww
If you know the tile you should be able to adjust your screen so that you can click on the tile behind the door.
Tile B| Door |Tile A
(From a birds-eye view; camera all the way up, perfect north/south/east/west (depends on the shape of the building etc.).)
Move the camera down and opposite of Tile B, so it's more like..
Tile B
—–
Door
—–
Tile A
(and then camera all the way down; can't show a pseudo-3d view, but I hope you get it..)
Then simply click on Tile B. Realistically, you'd be clicking on the door.
I'm sure there are better ways to do it, but you could use this as a fail safe. Should always work, theoretically.
Good luck.
2010-09-28 22:01:56
2010-09-29 01:52:52
2010-09-29 11:39:59
//Pseudo-code time
if WalkToDoor then
if not ReflectionDoorOpen then ... if not AdjacentDoorFind then ... if not ColorFindDoor then ... if not InRangeOfTile then ....
Which would be the ultimate failsafe almost.
2010-09-29 15:26:54
From: cstrike
i think if there was a combination of a script like thiswhich would be the ultimate failsafe almost.
//pseudo-code time
if walktodoor then
if not reflectiondooropen then ... If not adjacentdoorfind then ... If not colorfinddoor then ... If not inrangeoftile then ....
2010-09-29 15:34:57
2010-10-07 18:25:45
function OpenDoor(id: Integer): Boolean;
var
TheDoor: TRSObject;
MSPos: TPoint;
begin
TheDoor:= GetObjectByID(id, OBJECT_TYPE_INTERACTABLE, 15);
MSPos:= TileToMS(TheDoor.Tile, 10);
Mouse(MSPos.x, MSPos.y, 0, 0, False);
Result:= ChooseOptionMulti(['pen', 'oor']);
end;
Then just call2010-10-09 18:38:04
From: cstrike
1) Get: http://tribot.org/
EDIT: Tribot and RSBot are down… so I don't know how to get object ID's anymore
2010-10-12 07:17:41
From: cstrike
Found the code from a few threads down if this hasn't been answered
1) Get: http://tribot.org/
EDIT: Tribot and RSBot are down… so I don't know how to get object ID's anymore
2) Download, run your character in it and go near the door you want to open
3) There should be a settings option somewhere to show object ID's, play around with the program until you turn it on
4)
Thanks to Shuttleu:Then just callfunction OpenDoor(id: Integer): Boolean;
var
TheDoor: TRSObject;
MSPos: TPoint;
begin
TheDoor:= GetObjectByID(id, OBJECT_TYPE_INTERACTABLE, 15);
MSPos:= TileToMS(TheDoor.Tile, 10);
Mouse(MSPos.x, MSPos.y, 0, 0, False);
Result:= ChooseOptionMulti(['pen', 'oor']);
end;
OpenDoor(Your_Door_ID_Here);
And you're set ;)