RuneScape:Varbit/11953

From Old School RuneScape Wiki
Jump to: navigation, search

Controls Gregg and Cook (Lumbridge)'s knowledge of Gregg's location at the sheep pen while the 2021 Easter event is active.

Coincidentally can also be used to hint Gregg's visibility at the sheep pen with good accuracy.

Values[edit source]

0
The default value.
If Gregg is not at the kitchen, Gregg is not at the sheep pen and the player has not claimed the 2021 Easter event rewards, the Cook says: How should I know? You should check in Draynor, maybe you'll find him there.
Set to this value when RS:Varbit/11951's value changes to 57 (... boots! after teleportation) or 75 (by asking Thessalia about the Easter event or talking to Gregg at Thessalia's).
1
If Gregg does not have anything to do at Thessalia's Fine Clothes. (or later), Gregg at Draynor will say: I think we were going to the sheep pen north of Lumbridge to get some wool.
If Gregg is not at the kitchen, Gregg is at the sheep pen the player has not claimed the 2021 Easter event rewards, the Cook says: I think he said he was going to the sheep pen north of here.
Set to this value when RS:Varbit/11951's value changes to 27 at the Lumbridge Kitchens: That sounds perfect! I'll meet you there, human!

Relation to varbit 11951 and Gregg's visibility[edit source]

RS:Varbit/11951 may control the visibility of Gregg at the sheep pen, independently from this varbit. This varbit should not be relied upon to determine Gregg's visibility at the sheep pen, although it is normally accurate.

Pseudo-code[edit source]

Gregg (Draynor)[edit source]

// Gregg (Draynor)
if (%varbit11951 > 10 && %varbit11956 != 2) {
  // "Hello human!"
  // "Wait, aren't I supposed to be meeting you somewhere else?"
  // "Yep! But I'm taking a bit of a break, and it would appear you are too, human!"
  // "Can you remind me where I'm meant to be meeting you?"
  
  if (%varbit11955 == 1) {
    // "I think we were going to the lumberyard to the north-east of Varrock to get some planks."
  } elseif (%varbit11954 == 1) {
    // "I think we were going to the clothes shop in the middle of Varrock to get some ribbons."
  } elseif (%varbit11953 == 1) {
    // "I think we were going to the sheep pen north of Lumbridge to get some wool."
  } elseif (%varbit11952 == 1) {
    // "I think we were going to the Lumbridge Kitchens to talk to a cook about some eggs."
  }
}

Cook[edit source]

// The Cook
if (%varbit11956 > 0) { // Ned's door is coloured cyan or Draynor is decorated. (%varbit11951 >= 9)
  // Add an "Ask about the Easter event." option.
  
  // Bug: Correct behaviour would be: (%varbit11951 >= 10 || %varbit11952 == 1)
}

if (%option == EASTER) { // Ask about the Easter event.
  if (%varbit11952 == 0) // Gregg is not at the kitchen.
    // "The eggs you gave Gregg were just rotten ones, weren't they."
    // "Well, he wanted some funny looking eggs, and they were the funniest I had."
    // "Just be thankful he didn't ask for some fancy milk instead!"
    if (%varbit11951 != 1000) { // The player has not claimed the 2021 Easter event rewards.
      // "*sigh* Do you know where he went at least?"
      if (%varbit11953 == 1) {
        // "I think he said he was going to the sheep pen north of here."
      } else {
        // How should I know? You should check in Draynor, maybe you'll find him there.
      }
    }
  } elseif (%varbit11952 == 1) {
    // Gregg is in the kitchen, handle him.
  }
}

Gregg (Lumbridge Kitchen)[edit source]

// Gregg (Lumbridge Kitchen)
if ((%varbit11951 >= 10 && %varbit11951 < 50) || %varbit11952 == 1) {
  // Gregg (10639) is in the kitchen.
} else {
  // null (10646) is in the kitchen.
}

// Talk-to script:
if (%varbit11951 == 26) {
  // [...]

  // "That sounds perfect! I'll meet you there, human!"
  %varbit11951++; // 27
  %varbit11953 = 1;

  // "Yes, go to the sheep pen and out of my kitchen..."
}

Gregg (sheep pen)[edit source]

// Gregg (sheep pen)
if ((%varbit11951 >= 27 && %varbit11951 < 57) && %varbit11953 == 1) {
  // Gregg (10640) is in the sheep pen.
} else {
  // null (10647) is in the sheep pen.
}

// Talk-to script:
  // [...]
  // "Well, that's better than nothing! We'll go to Thessalia's!"
  %varbit11954 = 1; // %varbit11951 == 56
  // [...]
    // Yes.
      // [...]
      // "But I'm not wearing any..."
      // [...]
      teleport(player, (3212, 3416, 0));
      // Wait until the teleport ends
      %varbit11951++; // 57
      %varbit11953 = 0;
      // [...]
      // "... boots!"
      // [...]
  // [...]
// [...]

Gregg (Thessalia)[edit source]

// Gregg (Thessalia)
if ((%varbit11951 >= 56 && %varbit11951 < 100) || %varbit11954 == 1) {
  // Gregg (10641) is at Thessalia's.
} else {
  // null (10648) is at Thessalia's.
}

// Talk-to script:
if (%varbit11951 < 75 && %varbit11954 == 1) {
  %varbit11951 = 75;
  %varbit11953 = 0;
}

Thessalia[edit source]

// Thessalia
if (%varbit11951 >= 56) || %varbit11954 == 1) {
  // Add an "Ask about the Easter event." option.
}

// Talk-to script:
if (%option == EASTER) { // "Ask about the Easter event."
  if (%varbit11951 < 75 && %varbit11954 == 1) {
    %varbit11951 = 75;
    %varbit11953 = 0;
  }
}