Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- -- Init - Azrael Catacomb class
- ]]
- AzraelCatacomb = {};
- AzraelCatacomb.ReturnData = function()
- if (AzraelCatacomb.data == nil) then
- AzraelCatacomb.data = {
- ["min_level"] = 75,
- ["inside_index"] = 216,
- ["outside_index"] = 65,
- ["enter_Pos"] = {["x"] = 3145, ["y"] = 13188},
- ["outside_Pos"] = {["x"] = 5919, ["y"] = 1002},
- ["NeededItem"] = {["vnum"] = 30319, ["count"] = 1},
- ["MinimumMemebersParty"] = 2,
- ["boss_Posit"] = {["x"] = 74, ["y"] = 1104},
- ["KingVnum"] = 2591,
- ["AzraelVnum"] = 2598,
- ["time_until_you_got_kicked"] = time_min_to_sec(20),
- ["time_after_you_complete_the_dungeon"] = time_min_to_sec(60)
- };
- end
- return AzraelCatacomb.data;
- end
- AzraelCatacomb.isInDungeon = function()
- local pMapIndex = pc.get_map_index();
- local map_index = AzraelCatacomb.ReturnData()["inside_index"];
- return pc.in_dungeon() and pMapIndex >= map_index*10000 and pMapIndex < (map_index+1)*10000;
- end
- AzraelCatacomb.ClearDungeon = function()
- if (pc.in_dungeon()) then
- d.clear_regen();
- d.kill_all();
- end
- end
- AzraelCatacomb.setWatingTime = function(pids)
- local data = AzraelCatacomb.ReturnData();
- local ownPid = pc.get_player_id();
- if party.is_party() then
- for index, pid in next, pids, nil do
- return game.set_event_flag("devilcatacomb_cooldown_"..pid.."", data["time_after_you_complete_the_dungeon"] + get_time());
- end
- end
- return game.set_event_flag("devilcatacomb_cooldown_"..ownPid.."", data["time_after_you_complete_the_dungeon"] + get_time());
- end
- AzraelCatacomb.CheckInfo = function()
- local data = AzraelCatacomb.ReturnData();
- local dataMinLev = data["min_level"];
- local dataItem = data["NeededItem"];
- if party.is_party() then
- local pids = party_get_member_pids();
- local timeTable, timeCheck, minLev, minLevCheck, itemNeed, itemNeedCheck = {}, true, {}, true, {}, true;
- if (not party.is_leader()) then
- say("Would you like to enter Azrael Dungeon,[ENTER]let me speak with the leader first!")
- return false;
- end
- if (party.get_near_count() < data["MinimumMemebersParty"]) then
- say(string.format("To enter the Devil's Catacomb,[ENTER]you need %d players in your group", data["MinimumMemebersParty"]))
- return false;
- end
- for index, pid in ipairs(pids) do
- q.begin_other_pc_block(pid);
- if (pc.get_level() < dataMinLev) then
- table.insert(minLev, pc.get_name());
- minLevCheck = false;
- end
- local cd_flag = game.get_event_flag("devilcatacomb_cooldown_"..pid.."");
- local cur_time = get_time();
- if (cd_flag > cur_time) then
- table.insert(timeTable, string.format("%s - %s", pc.get_name(), get_time_format(cd_flag - cur_time)));
- timeCheck = false;
- end
- if (pc.count_item(dataItem["vnum"]) < dataItem["count"]) then
- table.insert(itemNeed, string.format("%s", pc.get_name()));
- itemNeedCheck = false;
- end
- q.end_other_pc_block();
- end
- if (not timeCheck) then
- say(string.format("To enter the Devil's Catacomb,[ENTER]each member needs to wait %s.[ENTER][ENTER]The next members didn't wait long enough::", get_time_format(data["time_after_you_complete_the_dungeon"])))
- for i, str in next, timeTable, nil do
- say(string.format("- %s", str))
- end
- return false;
- end
- if (not minLevCheck) then
- say(string.format("To enter the Devil's Catacomb,[ENTER]each member needs to have the level %d.[ENTER][ENTER]The next members don't have the required level:", dataMinLev))
- for i, str in next, minLev, nil do
- say(string.format("- %s", str))
- end
- return false;
- end
- if (not itemNeedCheck) then
- say(string.format("To enter the Devil's Catacomb,[ENTER]each member needs to have x%d - %s.[ENTER][ENTER]The next members don't have", dataItem["count"], item_name(dataItem["vnum"])))
- for i, str in next, itemNeed, nil do
- say(string.format("- %s", str))
- end
- return false;
- end
- return true;
- end
- if (pc.get_level () <dataMinLev) then
- say (string.format ("Minimum level to enter Devil's Catacomb [ENTER] is% d.", dataMinLev))
- returns false;
- The end
- local ownPid = pc.get_player_id ();
- local cd_flag = game.get_event_flag ("devilcatacomb_cooldown _" .. ownPid .. "");
- local cur_time = get_time ();
- if (cd_flag> cur_time) then
- say (string.format ("To enter the Devil's Catacomb [ENTER] you still have to wait% s.", get_time_format (cd_flag - cur_time)))
- returns false;
- The end
- if (pc.count_item (dataItem ["vnum"]) <dataItem ["count"]) then
- say (string.format ("To enter the Devil's Catacomb [ENTER] you must have x% d -% s.", dataItem ["count"], item_name (dataItem ["vnum"])))
- returns false;
- The end
- true return;
- The end
- AzraelCatacomb.EnterInDungeon = function()
- local data = AzraelCatacomb.ReturnData();
- local dataItem = data["NeededItem"];
- local enter_coords = data["enter_Pos"];
- if party.is_party() then
- local pids = party_get_member_pids();
- for i, pid in next, pids, nil do
- q.begin_other_pc_block(pid)
- pc.remove_item(dataItem["vnum"], dataItem["count"])
- q.end_other_pc_block()
- end
- return d.new_jump_party(data["inside_index"], enter_coords["x"], enter_coords["y"]);
- end
- return d.new_jump(data["inside_index"], enter_coords["x"]*100, enter_coords["y"]*100), pc.remove_item(dataItem["vnum"], dataItem["count"]);
- end
- DragonLair = {};
- DragonLair.ReturnData = function()
- if (DragonLair.data == nil) then
- DragonLair.data = {
- ["min_level"] = 75,
- ["inside_index"] = 207,
- ["outside_index"] = 73,
- ["enter_Pos"] = {["x"] = 8432, ["y"] = 10669},
- ["outside_Pos"] = {["x"] = 1815, ["y"] = 12206},
- ["NeededItem"] = {["vnum"] = 30179, ["count"] = 3},
- ["Blue_DragonVnum"] = 2493,
- ["time_until_you_got_kicked"] = time_min_to_sec(20),
- };
- end
- return DragonLair.data;
- end
- DragonLair.isInDungeon = function()
- local pMapIndex = pc.get_map_index();
- local map_index = DragonLair.ReturnData()["inside_index"];
- return pc.in_dungeon() and pMapIndex >= map_index*10000 and pMapIndex < (map_index+1)*10000;
- end
- DragonLair.ClearDungeon = function()
- if (pc.in_dungeon()) then
- d.clear_regen();
- d.kill_all();
- end
- end
- DragonLair.isInDragonRoom = function()
- local pMapIndex = pc.get_map_index();
- local map_index = DragonLair.ReturnData()["inside_index"];
- return not pc.in_dungeon() and pMapIndex == map_index;
- end
- DragonLair.getRoomPassword = function()
- return game.get_event_flag("DragonLairRoomPass");
- end
- DragonLair.isRoomBlocked = function()
- return game.get_event_flag("DragonLairRoomBlocked") ~= 0;
- end
- DragonLair.DragonLairInput = function(inp)
- if (tonumber(inp) == nil) or tonumber(inp) > 50000 or tonumber(inp) <= 0 then
- say("Oops, there was an error, try again later[ENTER]adding a new code!")
- return false;
- end
- return true;
- end
- DragonLair.MakeDragonLairDungeon = function(inp)
- game.set_event_flag("DragonLairRoomPass", inp);
- game.set_event_flag("DragonLairRoomBlocked", 1);
- game.set_event_flag("DragonLairFirstLevelTime", get_time() + 300);
- notice_all(string.format("Dragon's room was locked by %s on channel %d!", pc.get_name(), pc.get_channel_id()))
- end
- DragonLair.EnterAfterCode = function(inp)
- local data = DragonLair.ReturnData();
- pc.setqf("DragonLairWarpFrom", 0);
- pc.warp(data["enter_Pos"]["x"]*100, data["enter_Pos"]["y"]*100);
- end
- DragonLair.CheckInfo = function(mbVnum)
- local data = DragonLair.ReturnData();
- say_title(string.format("%s:[ENTER]", mob_name(mbVnum)))
- if get_time() > game.get_event_flag("DragonLairFirstLevelTime") and DragonLair.isRoomBlocked() then
- say("The previous player stayed for too long at[ENTER]the first level, time expired and now the room is clear.")
- return game.set_event_flag("DragonLairRoomBlocked", 0);
- end
- if pc.get_level() < data["min_level"] then
- say(string.format("To enter inside the Dragon Cave, you need[ENTER]to have a minimum level of %d.", data["min_level"]))
- return false;
- end
- if pc.count_item(data["NeededItem"]["vnum"]) < data["NeededItem"]["count"] then
- say(string.format("To enter inside the Dragon Cave, you need[ENTER]to have x%d - %s.", data["NeededItem"]["count"], item_name(data["NeededItem"]["vnum"])))
- return false;
- end
- if not DragonLair.isRoomBlocked() then
- say("The room is free, write a code if you'd like [ENTER]to block the room so you and your [ENTER]friends can enter...")
- local str_input = input();
- if not DragonLair.DragonLairInput(str_input) then
- return false;
- end
- if DragonLair.isRoomBlocked() then
- say("The room was locked in[ENTER]by another person, if you'd like[ENTER]you can write the code inserted by the [ENTER]player and move on.")
- return false;
- end
- return DragonLair.MakeDragonLairDungeon(tonumber(str_input));
- end
- local roomPass = DragonLair.getRoomPassword();
- say("The room was locked, if you'd like to enter[ENTER]enter the code choosen by other person[ENTER]locked the room...")
- local str_input = input();
- if not DragonLair.DragonLairInput(str_input) then
- return false;
- end
- if tonumber(str_input) ~= roomPass then
- say("The password was wrong[ENTER]try again later.")
- return false;
- end
- if not DragonLair.isRoomBlocked() then
- say("The room was unlocked meanwhile,[ENTER]now you can write your own password[ENTER]for your and your team")
- return false;
- end
- return DragonLair.EnterAfterCode(), pc.remove_item(data["NeededItem"]["vnum"] ,data["NeededItem"]["count"]);
- end
- BlazingPurgatory = {};
- BlazingPurgatory.ReturnData = function()
- if (BlazingPurgatory.data == nil) then
- BlazingPurgatory.data = {
- ["min_level"] = 90,
- ["inside_index"] = 235,
- ["outside_index"] = 62,
- ["enter_Pos"] = {["x"] = 8111, ["y"] = 6864},
- ["outside_Pos"] = {["x"] = 5993, ["y"] = 7072},
- ["NeededItem"] = {["vnum"] = 71173, ["count"] = 1},
- ["MinimumMemebersParty"] = 2,
- ["boss_Posit"] = {["x"] = 686, ["y"] = 620},
- ["PurgatoryKing"] = 6091,
- ["time_until_you_got_kicked"] = time_min_to_sec(20),
- ["time_after_you_complete_the_dungeon"] = time_min_to_sec(60)
- };
- end
- return BlazingPurgatory.data;
- end
- BlazingPurgatory.isInDungeon = function()
- local pMapIndex = pc.get_map_index();
- local map_index = BlazingPurgatory.ReturnData()["inside_index"];
- return pc.in_dungeon() and pMapIndex >= map_index*10000 and pMapIndex < (map_index+1)*10000;
- end
- BlazingPurgatory.ClearDungeon = function()
- if (pc.in_dungeon()) then
- d.clear_regen();
- d.kill_all();
- end
- end
- BlazingPurgatory.setWatingTime = function(pids)
- local data = BlazingPurgatory.ReturnData();
- local ownPid = pc.get_player_id();
- if party.is_party() then
- for index, pid in next, pids, nil do
- return game.set_event_flag("blazingpurgatory_cooldown_"..pid.."", data["time_after_you_complete_the_dungeon"] + get_time());
- end
- end
- return game.set_event_flag("blazingpurgatory_cooldown_"..ownPid.."", data["time_after_you_complete_the_dungeon"] + get_time());
- end
- BlazingPurgatory.CheckInfo = function()
- local data = BlazingPurgatory.ReturnData();
- local dataMinLev = data["min_level"];
- local dataItem = data["NeededItem"];
- if party.is_party() then
- local pids = party_get_member_pids();
- local timeTable, timeCheck, minLev, minLevCheck, itemNeed, itemNeedCheck = {}, true, {}, true, {}, true;
- if (not party.is_leader()) then
- say("If you would like to enter Razador's[ENTER]Purgatory,[ENTER]let me speak with the group leader first")
- return false;
- end
- if (party.get_near_count() < data["MinimumMemebersParty"]) then
- say(string.format("If you would like to enter Razador's[ENTER]Purgatory,[ENTER]the %d players around you need to be in the same group with you.", data["MinimumMemebersParty"]))
- return false;
- end
- for index, pid in ipairs(pids) do
- q.begin_other_pc_block(pid);
- if (pc.get_level() < dataMinLev) then
- table.insert(minLev, pc.get_name());
- minLevCheck = false;
- end
- local cd_flag = game.get_event_flag("blazingpurgatory_cooldown_"..pid.."");
- local cur_time = get_time();
- if (cd_flag > cur_time) then
- table.insert(timeTable, string.format("%s - %s", pc.get_name(), get_time_format(cd_flag - cur_time)));
- timeCheck = false;
- end
- if (pc.count_item(dataItem["vnum"]) < dataItem["count"]) then
- table.insert(itemNeed, string.format("%s", pc.get_name()));
- itemNeedCheck = false;
- end
- q.end_other_pc_block();
- end
- if (not timeCheck) then
- say(string.format("If you would like to enter Razador's[ENTER]Purgatory,[ENTER]each member needs to wait %s.[ENTER][ENTER]The next members didn't wait long enough", get_time_format(data["time_after_you_complete_the_dungeon"])))
- for i, str in next, timeTable, nil do
- say(string.format("- %s", str))
- end
- return false;
- end
- if (not minLevCheck) then
- say(string.format("If you would like to enter Razador's[ENTER]Purgatory,[ENTER]each member needs to have the minimum level of %d.[ENTER][ENTER]The next members don't have the required level.", dataMinLev))
- for i, str in next, minLev, nil do
- say(string.format("- %s", str))
- end
- return false;
- end
- if (not itemNeedCheck) then
- say(string.format("If you would like to enter Razador's[ENTER]Purgatory,[ENTER]each member needs to have x%d - %s.[ENTER][ENTER]The next members don't have", dataItem["count"], item_name(dataItem["vnum"])))
- for i, str in next, itemNeed, nil do
- say(string.format("- %s", str))
- end
- return false;
- end
- return true;
- end
- if (pc.get_level() < dataMinLev) then
- say(string.format("The minimum level to enter in the Razador's[ENTER]Purgatory is %d.", dataMinLev))
- return false;
- end
- local ownPid = pc.get_player_id();
- local cd_flag = game.get_event_flag("blazingpurgatory_cooldown_"..ownPid.."");
- local cur_time = get_time();
- if (cd_flag > cur_time) then
- say(string.format("If you would like to enter Razador's[ENTER]Purgatory, you need to wait %s.", get_time_format(cd_flag - cur_time)))
- return false;
- end
- if (pc.count_item(dataItem["vnum"]) < dataItem["count"]) then
- say(string.format("If you would like to enter Razador's[ENTER]Purgatory, you need to have x%d - %s.", dataItem["count"], item_name(dataItem["vnum"])))
- return false;
- end
- return true;
- end
- BlazingPurgatory.EnterInDungeon = function()
- local data = BlazingPurgatory.ReturnData();
- local dataItem = data["NeededItem"];
- local enter_coords = data["enter_Pos"];
- if party.is_party() then
- local pids = party_get_member_pids();
- for i, pid in next, pids, nil do
- q.begin_other_pc_block(pid)
- pc.remove_item(dataItem["vnum"], dataItem["count"])
- q.end_other_pc_block()
- end
- return d.new_jump_party(data["inside_index"], enter_coords["x"], enter_coords["y"]);
- end
- return d.new_jump(data["inside_index"], enter_coords["x"]*100, enter_coords["y"]*100), pc.remove_item(dataItem["vnum"], dataItem["count"]);
- end
- SnowDungeon = {};
- SnowDungeon.ReturnData = function()
- if (SnowDungeon.data == nil) then
- SnowDungeon.data = {
- ["min_level"] = 90,
- ["inside_index"] = 240,
- ["outside_index"] = 61,
- ["enter_Pos"] = {["x"] = 5120+928, ["y"] = 1536+390},
- ["outside_Pos"] = {["x"] = 4321, ["y"] = 1649},
- ["NeededItem"] = {["vnum"] = 71173, ["count"] = 1},
- ["MinimumMemebersParty"] = 2,
- ["boss_Posit"] = {["x"] = 927, ["y"] = 323},
- ["TowerKing"] = 6191,
- ["time_until_you_got_kicked"] = time_min_to_sec(20),
- ["time_after_you_complete_the_dungeon"] = time_min_to_sec(60)
- };
- end
- return SnowDungeon.data;
- end
- SnowDungeon.isInDungeon = function()
- local pMapIndex = pc.get_map_index();
- local map_index = SnowDungeon.ReturnData()["inside_index"];
- return pc.in_dungeon() and pMapIndex >= map_index*10000 and pMapIndex < (map_index+1)*10000;
- end
- SnowDungeon.ClearDungeon = function()
- if (pc.in_dungeon()) then
- d.clear_regen();
- d.kill_all();
- end
- end
- SnowDungeon.setWatingTime = function(pids)
- local data = SnowDungeon.ReturnData();
- local ownPid = pc.get_player_id();
- if party.is_party() then
- for index, pid in next, pids, nil do
- return game.set_event_flag("snowdungeon_cooldown_"..pid.."", data["time_after_you_complete_the_dungeon"] + get_time());
- end
- end
- return game.set_event_flag("snowdungeon_cooldown_"..ownPid.."", data["time_after_you_complete_the_dungeon"] + get_time());
- end
- SnowDungeon.CheckInfo = function()
- local data = SnowDungeon.ReturnData();
- local dataMinLev = data["min_level"];
- local dataItem = data["NeededItem"];
- if party.is_party() then
- local pids = party_get_member_pids();
- local timeTable, timeCheck, minLev, minLevCheck, itemNeed, itemNeedCheck = {}, true, {}, true, {}, true;
- if (not party.is_leader()) then
- say("If you want to enter in Nemere's[ENTER]Tower,[ENTER]let me speak with the group leader first!")
- return false;
- end
- if (party.get_near_count() < data["MinimumMemebersParty"]) then
- say(string.format(""If you want to enter in Nemere's[ENTER]Tower,[ENTER]the players around you need %d to be in the same group as you!", data["MinimumMemebersParty"]))
- return false;
- end
- for index, pid in ipairs(pids) do
- q.begin_other_pc_block(pid);
- if (pc.get_level() < dataMinLev) then
- table.insert(minLev, pc.get_name());
- minLevCheck = false;
- end
- local cd_flag = game.get_event_flag("snowdungeon_cooldown_"..pid.."");
- local cur_time = get_time();
- if (cd_flag > cur_time) then
- table.insert(timeTable, string.format("%s - %s", pc.get_name(), get_time_format(cd_flag - cur_time)));
- timeCheck = false;
- end
- if (pc.count_item(dataItem["vnum"]) < dataItem["count"]) then
- table.insert(itemNeed, string.format("%s", pc.get_name()));
- itemNeedCheck = false;
- end
- q.end_other_pc_block();
- end
- if (not timeCheck) then
- say(string.format(""If you want to enter in Nemere's[ENTER]Tower, [ENTER]each member needs to wait %s.[ENTER][ENTER]The next members didn't wait long enough", get_time_format(data["time_after_you_complete_the_dungeon"])))
- for i, str in next, timeTable, nil do
- say(string.format("- %s", str))
- end
- return false;
- end
- if (not minLevCheck) then
- say(string.format(""If you want to enter in Nemere's[ENTER]Tower, [ENTER]eachj member needs to have a minimum level of %d.[ENTER][ENTER]The following members don't have the required level:", dataMinLev))
- for i, str in next, minLev, nil do
- say(string.format("- %s", str))
- end
- return false;
- end
- if (not itemNeedCheck) then
- say(string.format(""If you want to enter in Nemere's[ENTER]Tower, [ENTER]each member needs to have x%d - %s.[ENTER][ENTER]Next members don't have the neccessary objects", dataItem["count"], item_name(dataItem["vnum"])))
- for i, str in next, itemNeed, nil do
- say(string.format("- %s", str))
- end
- return false;
- end
- return true;
- end
- if (pc.get_level() < dataMinLev) then
- say(string.format("The minimum level to enter into the Nemere's[ENTER]Tower is %d.", dataMinLev))
- return false;
- end
- local ownPid = pc.get_player_id();
- local cd_flag = game.get_event_flag("snowdungeon_cooldown_"..ownPid.."");
- local cur_time = get_time();
- if (cd_flag > cur_time) then
- say(string.format(""If you want to enter in Nemere's[ENTER]Tower you need to wait %s.", get_time_format(cd_flag - cur_time)))
- return false;
- end
- if (pc.count_item(dataItem["vnum"]) < dataItem["count"]) then
- say(string.format(""If you want to enter in Nemere's[ENTER]Tower, you need to have x%d - %s.", dataItem["count"], item_name(dataItem["vnum"])))
- return false;
- end
- return true;
- end
- SnowDungeon.EnterInDungeon = function()
- local data = SnowDungeon.ReturnData();
- local dataItem = data["NeededItem"];
- local enter_coords = data["enter_Pos"];
- if party.is_party() then
- local pids = party_get_member_pids();
- for i, pid in next, pids, nil do
- q.begin_other_pc_block(pid)
- pc.remove_item(dataItem["vnum"], dataItem["count"])
- q.end_other_pc_block()
- end
- return d.new_jump_party(data["inside_index"], enter_coords["x"], enter_coords["y"]);
- end
- return d.new_jump(data["inside_index"], enter_coords["x"]*100, enter_coords["y"]*100), pc.remove_item(dataItem["vnum"], dataItem["count"]);
- end
- DeleteTimeScroll = {};
- DeleteTimeScroll.ReturnData = function()
- if (DeleteTimeScroll.data == nil) then
- DeleteTimeScroll.data = {
- ["dungeonTimerData"] = {"snowdungeon_cooldown_", "blazingpurgatory_cooldown_", "devilcatacomb_cooldown_", "spidernest_cooldown_"},
- ["dungeonsName"] = {"Nemere's Tower", "Razador's Purgatory", "Devil's Catacomb", "Spider cave"},
- };
- end
- return DeleteTimeScroll.data;
- end
- DeleteTimeScroll.InsertWindow = function()
- local data = DeleteTimeScroll.ReturnData();
- local ownPid = pc.get_player_id();
- local window = {["data"] = {}, ["index"] = {}};
- for index, value in ipairs(data["dungeonTimerData"]) do
- if game.get_event_flag(""..value..""..ownPid.."") > 0 then
- table.insert(window["data"], string.format("%s - %s", data["dungeonsName"][index], get_time_format(game.get_event_flag(""..value..""..ownPid.."")-get_time())))
- table.insert(window["index"], index)
- end
- end
- table.insert(window["data"], "Renunta");
- return window;
- end
- DeleteTimeScroll.MainWindow = function(iNum)
- local data = DeleteTimeScroll.ReturnData();
- local InsertedWindowTable = DeleteTimeScroll.InsertWindow()["data"];
- local ownPid = pc.get_player_id();
- say_title(string.format("%s:[ENTER]", item_name(iNum)))
- if (table.getn(InsertedWindowTable) < 2) then
- say("You don't need to wait[ENTER]for any dungeon.")
- return false;
- end
- say("Choose the dungeon you would like to reset the time:")
- local FirstWindow = select_table(InsertedWindowTable);
- if (FirstWindow != table.getn(InsertedWindowTable)) then
- local InsertedWindowIndex = DeleteTimeScroll.InsertWindow()["index"][FirstWindow];
- say(string.format("You need to wait %s to enter into the %s...[ENTER]would you like to reset the time?", get_time_format(game.get_event_flag(""..data["dungeonTimerData"][InsertedWindowIndex]..""..ownPid.."")-get_time()), data["dungeonsName"][InsertedWindowIndex]))
- if (select("Da", "Nu") == 1) then
- say(string.format("Time was reseted succesfuly, now[ENTER]now you can enter again %s", data["dungeonsName"][InsertedWindowIndex]))
- return game.set_event_flag(""..data["dungeonTimerData"][InsertedWindowIndex]..""..ownPid.."", 0), pc.remove_item(iNum, 1);
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement