All pastes #559500 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-06-11 19:52 UTC
rendered paste body
		elseif (pid == 418) then
		user:setStat(2, vid)
		local oldvid = user:getStat(2)
			if (menuitem == 1) then
				if (user:skillFind(23) == true) then
				user:message("You have already received this certfication.")
				return false
				end
				if (user:inventory_find("Certification Credit") > 0) then
					user:inventory_modify("C- Commando Combat Suit", 1) 
					user:inventory_modify("Certification Credit", -1)
					user:setVehicle(oldvid)
				else user:message("You do not have enough Certification Credits to certify in this.")
				end
			elseif (menuitem == 2) then 
				if (user:skillFind(19) == true) then
				user:message("You have already received this certfication.")
				return false
				end
				if (user:inventory_find("Certification Credit") > 0) then
					user:inventory_modify("C- Reinforced Combat Suit", 1) 
					user:inventory_modify("Certification Credit", -1)
					user:setVehicle(oldvid)
				else user:message("You do not have enough Certification Credits to certify in this.")
				end
			elseif (menuitem == 3) then 
				if (user:skillFind(21) == true) then
				user:message("You have already received this certfication.")
				return false
				end
				if (user:inventory_find("Certification Credit") > 0) then
					user:inventory_modify("C- Agile Combat Suit", 1) 
					user:inventory_modify("Certification Credit", -1)
					user:setVehicle(oldvid)
				else user:message("You do not have enough Certification Credits to certify in this.")
				end
			elseif (menuitem == 4) then 
				if (user:skillFind(20) == true) then
				user:message("You have already received this certfication.")
				return false
				end
				if (user:inventory_find("Certification Credit") > 0) then
					user:inventory_modify("C- Infilitration Suit", 1) 
					user:inventory_modify("Certification Credit", -1)
					user:setVehicle(oldvid)
				else user:message("You do not have enough Certification Credits to certify in this.")
				end
			elseif (menuitem == 5) then 
				if (user:skillFind(22) == true) then
				user:message("You have already received this certfication.")
				return false
				end
				if (user:inventory_find("Certification Credit") > 0) then
					user:inventory_modify("C- Assault Combat Suit", 1) 
					user:inventory_modify("Certification Credit", -1)
					user:setVehicle(oldvid)
				else user:message("You do not have enough Certification Credits to certify in this.")
				end
			end