From c0f923fa1ea18d59a92803643c2e4840f560a030 Mon Sep 17 00:00:00 2001 From: Kaan Soral Date: Sat, 7 Dec 2019 21:47:55 +0300 Subject: [PATCH] Update happy_holidays.js --- examples/happy_holidays.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/happy_holidays.js b/examples/happy_holidays.js index 49448fb..ce996c2 100644 --- a/examples/happy_holidays.js +++ b/examples/happy_holidays.js @@ -2,14 +2,14 @@ var attack_mode=true function happy_holidays() { - if(!G.maps.main.ref.xmas_tree) return; // If this happens, the event is over - if(character.s.xmas2) return; // If you already have the buff, no need to get re-buffed - G.maps.main.ref.xmas_tree.return=true; + if(!G.maps.main.ref.newyear_tree) return; // If this happens, the event is over + if(character.s.holidayspirit) return; // If you already have the buff, no need to get re-buffed + G.maps.main.ref.newyear_tree.return=true; // If first argument of "smart_move" includes "return" // You are placed back to your original point - smart_move(G.maps.main.ref.xmas_tree,function(){ + smart_move(G.maps.main.ref.newyear_tree,function(){ // This executes when we reach our destination - parent.socket.emit("interaction",{type:"xmas_tree"}); + parent.socket.emit("interaction",{type:"newyear_tree"}); say("Happy Holidays!"); }); }