Illerai:Varbit/11952

From Illerai
Jump to navigation Jump to search
2021_EASTER_EVENT_GREGG_LUMBRIDGE_KITCHEN
TypeVarbit
Index11952
Content2021 Easter event
ClassSwitch
LinkChisel

<mapframe group="pins" align="right" frameless="" plane="0" width="300" y="3215" x="3206" height="300" zoom="2" mapID="0">

{"features":[{"type":"Feature","geometry":{"coordinates":[3206.5,3213.5],"type":"Point"},"properties":{"mapID":0,"providerID":0,"group":"pins","description":"

NPCGregg

X/Y: 3206,3213

","plane":0,"icon":"greenPin"}}],"type":"FeatureCollection"}

</mapframe> Controls Gregg and Cook (Lumbridge)'s knowledge of Gregg's location at the Lumbridge Kitchens while the 2021 Easter event is active.

Coincidentally can also be used to hint Gregg's visibility at the Lumbridge Kitchens with mediocre to good accuracy.

Values

0
The default value.
Set to this value when RS:Varbit/11951's value changes to 50 (the player talks to Gregg at the sheep pen): Human, what is that?
1
Set to this value when RS:Varbit/11951's value changes to 10: Sounds great! I can either teleport us there now, or I can meet you there if you'd prefer.

Relation to varbit 11951 and Gregg's visibility

RS:Varbit/11951 may control the visibility of Gregg at the Lumbridge Kitchens, independently from this varbit. This varbit should not be relied upon to determine Gregg's visibility at the Lumbridge kitchens.

Pseudo-code

Gregg (Draynor)

// 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

// 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)

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