exp=random(1,20)
money=random(1,15)
switch(mt)
	case 1
		addexp(40*mg*(100-exp)*mn*exptime/100)
		addJB(5*mg*(100-money)*mn*moneytime/100)
                addGold(exp*money/(exp+money)+money+1)
		if (probability(25))
			ID=random(3)+1
			addGoods(ID,3,random(1,3))
		endif

		if (probability(9))
			ID=random(3)+4
			addGoods(ID,3,random(1,2))
		endif

		if (probability(2))
			ID=random(3)+7
			addGoods(ID,3,1)
		endif

		if (probability(45))
			ID=random(6)+1
			addGoods(ID,0,random(1,2))
		endif

		if (probability(40))
			if(mg<7)
				lv=1
			else
				lv=(mg/6)*6+1
			endif
			addGoods(getEquiID(lv,random(5)),1,random(5),random(1,5))
		endif

	case 2
		addexp(50*mg*(100-exp)*mn*exptime/100)
		addJB(7*mg*(100-money)*mn*moneytime/100)
		addGold(exp*money/(exp+money)*3+1)
		if (probability(35))
			ID=random(3)+1
			addGoods(ID,3,random(1,3))
		endif

		if (probability(20))
			ID=random(3)+4
			addGoods(ID,3,random(1,2))
		endif

		if (probability(4))
			ID=random(3)+7
			addGoods(ID,3,1)
		endif

		if (probability(25))
			ID=random(4)+10
			addGoods(ID,3,1)
		endif

		if (probability(55))
			ID=random(6)+1
			addGoods(ID,0,random(1,3))
		endif

		if (probability(60))
			if(mg<7)
				lv=1
			else
				lv=(mg/6)*6+1
			endif
			addGoods(getEquiID(lv,random(5)),1,random(5),random(1,5))
		endif

		if (probability(5))
			ID=random(6)+20
			addGoods(ID,2,1)
		endif

	case 3
		addexp(60*mg*(100-exp)*3*exptime/100)
		addJB(10*mg*(100-money)*3*moneytime/100)
		addGold(exp*money/(exp+money)*5+3)
		if (probability(30))
			ID=random(3)+7
			addGoods(ID,3,random(1,2))
		endif

		if (probability(60))
			ID=random(3)+4
			addGoods(ID,3,random(1,2))
		endif

		if (probability(75))
			ID=random(6)+1
			addGoods(ID,0,random(1,3))
		endif
	
		if (probability(75))
			ID=random(4)+18
			addGoods(ID,0,random(1,2))
		endif

		if(mg<7)
			lv=1
		else
			lv=(mg/6)*6+1
		endif
		addGoods(getEquiID(lv,random(5)),1,random(5),random(1,5))

		if (probability(20))
			ID=random(6)+20
			addGoods(ID,2,1)
		endif

endswitch
