Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (*(byte *)(behaviour + 0x48) == 0) {
- if (checkFlag(0x31>1,'Permanent') == 0) { // Rareware GB Room Open flag is not set (aka haven't opened the door)
- *(byte *)(behaviour + 0x4B) = 1
- }
- }
- if (*(byte *)(behaviour + 0x48) == 1) {
- if (isPlayerWithinDistanceOfObject(100) !== 0) { // If within 100 units of Rareware GB
- if (checkFlag(0x31>1,'Permanent') == 0) { // If you haven't opened the door
- // Make Rareware GB disappear
- *(byte *)(behaviour + 0x60) = 1
- *(ushort *)(behaviour + 0x62) = 0
- *(byte *)(behaviour + 0x66) = 40
- *(byte *)(behaviour + 0x4B) = 2
- }
- }
- }
- if (*(byte *)(behaviour + 0x48) == 2) {
- if (isPlayerWithinDistanceOfObject(140) == 0) { // If not within 140 units of Rareware GB
- // Make Rareware GB reappear
- *(byte *)(behaviour + 0x60) = 1
- *(ushort *)(behaviour + 0x62) = 255
- *(byte *)(behaviour + 0x66) = 40
- *(byte *)(behaviour + 0x4B) = 1
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment