예제 #1
0
파일: main.cpp 프로젝트: hillwah/darkeden
void executeSlayer()
{
	LuaState L;
	L.init();
	L.dofile("xmasEventCommon.lua");

	LuaTradeEventSlayerItem luaSlayerItem(&L);

	while (1)
	{
		cout << "Input SUM(0 to exit): ";
		int SUM; cin >> SUM;

		if (SUM==0) break;

		luaSlayerItem.setSum(SUM);

		executeSelectItem(luaSlayerItem, "xmasEventSlayer.lua");
	}
}
예제 #2
0
파일: main.cpp 프로젝트: hillwah/darkeden
void executeVampire()
{
	LuaState L;
	L.init();
	L.dofile("xmasEventCommon.lua");

	LuaTradeEventVampireItem luaVampireItem(&L);

	while (1)
	{
		cout << "Input Level(0 to exit): ";
		int Level; cin >> Level;

		if (Level==0) break;

		luaVampireItem.setLevel(Level);

		executeSelectItem(luaVampireItem, "xmasEventVampire.lua");
	}
}