Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- quest testevent begin
- state start begin
- when x.chat."start x event" with pc.is_gm() begin
- say_reward(string.format('The current event state is %d',game.get_event_flag('velikonoce')))
- if select('Turn it on','Turn it off') == 1 then
- game.set_event_flag('velikonoce', 1)
- else
- game.set_event_flag('velikonoce', 0)
- end
- end
- when x.chat."Disable my drop event" begin
- local s = select('Disable the event only for me','Enable the event only for me','Exit')
- if s >= 1 and s <= 2 then
- pc.setqf("velikonoce",tonumber(s-1))
- else
- say('cya again')
- end
- end
- when kill with pc.getqf("velikonoce") == 1 and not npc.is_pc() and pc.getqf("velikonoce") == 1 begin
- local s = number(1, 1000)
- if s == 1 then
- game.drop_item(50160,1)
- elseif s == 2 then
- game.drop_item(50161,1)
- elseif s == 3 then
- game.drop_item(50162,1)
- elseif s == 4 then
- game.drop_item(50163,1)
- elseif s == 5 then
- game.drop_item(50164,1)
- elseif s == 6 then
- game.drop_item(50165,1)
- elseif s == 7 then
- game.drop_item(50166,1)
- elseif s == 8 then
- game.drop_item(50167,1)
- elseif s == 9 then
- game.drop_item(50168,1)
- elseif s == 10 then
- game.drop_item(50169,1)
- elseif s == 11 then
- game.drop_item(50170,1)
- elseif s == 12 then
- game.drop_item(50171,1)
- elseif s == 13 then
- game.drop_item(50172,1)
- elseif s == 14 then
- game.drop_item(50173,1)
- elseif s == 15 then
- game.drop_item(50174,1)
- elseif s == 16 then
- game.drop_item(50175,1)
- elseif s == 17 then
- game.drop_item(50176,1)
- elseif s == 18 then
- game.drop_item(50177,1)
- elseif s == 19 then
- game.drop_item(50178,1)
- elseif s == 20 then
- game.drop_item(50179,1)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement