Jump to content
Sign in to follow this  
Aurora

Evento de Rana

Recommended Posts

quest asd begin

state start begin

when 11505.kill begin

local items = {19,29}

local prob = math.random(1,2)

if prob == 1 then

game.drop_item_with_ownership(items[1], 1)

elseif prob == 2 then

game.drop_item_with_ownership(items[2], 1)

end

end

end

end

end

end

Creo q me va mal este quest y me puede correguir por favor

Share this post


Link to post
Share on other sites
Spoiler
quest rana_oro begin
state start begin
when npc.chat."evento rana oro" with pc.is_gm() begin
say("texto")
local s = select("Activar","Cancelar","Cerrar")
if s == 3 then return
	elseif s == 1 then
		game.set_event_flag("evento1",1)
		notice_all("on")
		elseif s == 2 then
			game.set_event_flag("evento1",0)
			notice_all("off")
		end
	end
	when idmob.kill with game.get_event_flag("evento1")== 1 begin
	local items = {19,29,39,49,59}
	local aleatorio = math.random(1,5)
	game.drop_item_with_ownership(items[aleatorio], 1)
end
end
end

 

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...