Code:
when 20358.chat."GM: Recompensa ao Ganhador" with pc.is_gm() and game.get_event_flag("oxevent_status") == 1 begin
say("")
say("Digite o ID do item: ")
local item_vnum = input()
say("")
say("Qual a quantidade de itens a distribuir?")
local item_count = input()
say("")
say("Digite o nome do ganhador?") -- function?
local name = input() -- function?
say("")
oxevent.give_item(item_vnum, item_count, name)
say("Eles "..oxevent.get_attender().." receberam a recompensa!")
say("")
end






