Ejemplo n.º 1
0
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");
	}
}
Ejemplo n.º 2
0
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");
	}
}