antiblock
Cyphriun
  • Chatbox

    Did you check out our Discord? https://discord.gg/FFdvMjk9xA
    You don't have permission to chat.
    Load More
Sign in to follow this  
Unk3n0w7

Userpainel < Quest

1 post in this topic

[*]

-- ######################################################################-- #		 -----------------------------------						#-- #			      Copyright © Exodius  								#-- #				   by iSouli										#-- #    	------------------------------------- 		     			#-- ######################################################################quest exo_userpanel begin	state start begin		when letter begin			cmdchat("userpanel "..q.getcurrentquestindex())		end				when button or info begin			exo_userpanel.UserpanelStart()		end				function UserpanelStart()			say_title("Userpanel - Exodius")			say()			say("Was möchtest du tun?")			say()			local a = select("Teleportieren","Lager öffnen","Abbrechen")			if a == 3 then 				return			elseif a == 2 then				exo_userpanel.OpenSafebox()			elseif a == 1 then				exo_userpanel.UserWarp()			end		end				function OpenSafebox()			if not in_table(pc.get_map_index(),{1, 21, 41, 3, 23, 43}) then chat("Du darfst auf dieser Map das Lager nicht öffnen!") return end			game.open_safebox()					end				function UserWarp()			local map_select =			{					[1] = {[1] = {"rotes Reich Map1 (ab 1)", 474107, 954645, 1},[2] = {"gelbes Reich Map1 (ab 1)", 63294, 165936, 1},[3] = {"blaues Reich Map1 (ab 1)", 959569, 269075, 1},[4] = {"Zurück"},[5] = {"Abbrechen"}},				[2] = {[1] = {"Wüste (ab 15)", 296397, 547365, 10},[2] = {"Orktal (ab 15)", 332942, 746975, 15},[3] = {"Feuerland (ab 50)", 600906, 686661, 50},[4] = {"Eisland (ab 50)", 436269, 215805, 50},[5] = {"Geisterwald (ab 70)", 290328, 5920, 70},[6] = {"roter Wald (ab 75)", 1119342, 70092, 75},[7] = {"Zurück"},[8] = {"Abbrechen"}},				[3] = {[1] = {"SpinnendungeonI (ab 50)", 60000, 496200, 50}, [2] = {"SpinnendungeonII(ab 65)", 703605, 462962, 65}, [3] = {"SpinnendungeonII Nr.2(ab 65)", 813747, 622877, 65}, [4] = {"SpinnendungeonIII(ab 75)", 97320, 571277, 75}, [5] = {"Dämonenturm(ab 50)", 590594, 110550, 50}, [6] = {"Grotte der Heiligen(75)", 241700, 1274900, 75}, [7] = {"Zurück"},[8] = {"Abbrechen"}}, 				[4] = {[1] = {"palkische Gebirge(ab 75)", 1065100, 1702900, 75}, [2] = {"eisige Stadt(ab 75)", 664875, 828649, 75}, [3] = {"Naga-Tal(ab 75)", 6672900, 6690700, 75}, [4] = {"Zurück"},[5] = {"Abbrechen"}}, 				[5] = {[1] = {"OX-Wettbewerb", 896500, 24600, 1}, [2] = {"Zurück"},[3] = {"Abbrechen"}}, 			}			say_title("Teleportieren")			say()			say("Wähle die Map-Kategorie aus!")			say()			local a = select("Heimatstädte", "normale Maps", "Dungeons", "neue Maps", "Eventmaps", "Abbrechen")			if a == 6 then  return end			local tab_warp = {4}			for b = 1, table.getn(map_select[a]) do				table.insert(tab_warp, map_select[a][b][1])			end			say_title("Teleportieren")			say()			say("Such dir die Map deiner Wahl aus!")			say()			local c = select2(tab_warp)			if map_select[a][c][1] == "Abbrechen" then return  end			if map_select[a][c][1] == "Zurück" then return exo_userpanel.UserWarp() end			if map_select[a][c][1] == "OX-Wettbewerb" and game.get_event_flag("oxevent_status") ~= map_select[a][c][4] and not pc.is_gm() then  return chat("Der OX-Wettbewerb ist derzeit nicht aktiv!") end 			if map_select[a][c][1] == "OX-Wettbewerb" and pc.is_gm() then pc.warp(896446, 21593) return end			if pc.get_level() < map_select[a][c][4] then  return chat("Dein Level ist zu niedrieg!") end			pc.warp(map_select[a][c][2], map_select[a][c][3])		end	endend						Créditos : Exodius

Share this post


Link to post
Share on other sites
antiblock
Elveron

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this