You sure you don't have any code without a break in your objects like
Code:if (xDiff <= 1 && yDiff <=1) { }
|
The object click I set is not working, It only lets me click the object when I am 1 square away from the Coordinate it has been spawned at.
Code:case 4622: if (absX == 2212 && absY == 4940 || absX == 2213 && absY == 4940) { Teleport(absX, absY +4, 1); } else if (absX == 2205 && absY == 4939 || absX == 2206 && absY == 4939) { Teleport(absX, absY -4, 1); sendMessage("testing"); } break;
You sure you don't have any code without a break in your objects like
Code:if (xDiff <= 1 && yDiff <=1) { }
Uploaded info --
go to case 132:
and add
if (objectID == 1733) {
if (heightLevel == -4){
Teleport(absX, absY +4, 1);
} else {
Teleport(absX, absY -4, 1);
}
}
Let me explain a little more.
Objects itself, no matter the objectSize, always land in one co-ordinate square.
If I mapped my object at 3000 3000, and it was your staircase, the staircase may cover 3000-3003 and 3000-3002.
If you have a code such as
You will have to be standing 1 square or on square 3000,3000 if you get what I mean, as it reads that from where you placed the object rather than where the object covers.Code:if (xDiff <= 1 && yDiff <=1) { }
You will need to look under the "atObject" packet, for a seperate code like the one I described.
I don't have a case 32. I think the problem is because the object is rotated. ?
Please try what I said...
All I found with "atObject" is stuff likeAnd sorry, 32 was a typo. Didn't find 132.Code:if (useItemID == 4667 && (atObjectID == 6437 || atObjectID == 6438))
Source is RichScape
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |