version=2 :if:=true :then @text.show(Please come back~next week for the next~Lucky Number.) :endscript :else @register.registertime(lucky_number_show,1,week) @storage.set(integer,lOT,) @text.show(Hi, are you here for~the Lucky Number Show?*Want me to check the~ID numbers of your Pokémon?*If you get lucky,~you win a prize.~This week's ID number~is .*Let's see if you have~a match.) :if:,has)>=true :then @storage.set(integer,matches,,maxhits)>) @storage.set(string,p_name,,name)>) @text.show(Congratulations!~We have a match with*the ID number of~.) :select: :when:1 @text.show(Ooh, you've matched~the last number.*You've won fifth prize,~a Moomoo Milk.) @item.give(72,1) @item.messagegive(72,1) :when:2 @text.show(Ooh, you've matched~the last two numbers.*You've won fourth prize,~a PP Up.) @item.give(62,1) @item.messagegive(62,1) :when:3 @text.show(Ooh, you've matched~the last three numbers.*You've won third prize,~a Exp. Share.) @item.give(57,1) @item.messagegive(57,1) :when:4 @text.show(Ooh, you've matched~the last four numbers.*You've won second prize,~a Max Revive.) @item.give(40,1) @item.messagegive(40,1) :when:5 @text.show(Wow!~You have a perfect match*of all five numbers!~We have a grand prize winner!*You have won a Master Ball!) @item.give(1,1) @item.messagegive(1,1) :endwhen :else @text.show(Nope, none of your~ID numbers match.) :endif @text.show(Please come back~next week for the next~Lucky Number.) :endif :end