All pastes #537736 Raw Edit

Something

public text v1 · immutable
·published 2007-06-04 20:43 UTC
rendered paste body
function Vehicle_OnProduce(user, menuitem)
--Talk to him first..
	if (menuitem == 0)then
		user:inventory_modify("Speak with Tavernkeep", -1)
		user:message("Reclick NPC please.")
--Ask about adventure
	elseif (user:inventory_find("Speak with Taverkeep") > 0) then
		if (menuitem == 1) then
		user:message("I heard there was a treasure-loaded fortress around..")
		--vehicles you want to create, there are ways to randomize them through math, im not very familar with it tho. look at scripts etc.
		g_arena:vehicle_create(vehicleID, xCoord, xCoord, rotation) 
		elseif (menuitem == 2) then

		elseif (menuitem == 3) then

		elseif (menuitem == 4) then
		end
	end
end