PHP Code:
quest npc_spawn begin
state start begin
when 30162.use begin
local npc1 = 9003
local npc2 = 9001
local npc3 = 9012
local npc4 = 9004
local npc5 = 20016
local npc6 = 20087
local npc7 = 9004
local npc8 = 9010
local npc9 = 9009
local npc10 = 20011
local npc11 = 20094
local npc12 = 20349
say_title("NPC Spawner")
say("")
say("Welchen NPC willst du rufen?")
say("Wähle aus:")
local s = select("Gemi","Waffenhaendler","Ruestungshaendler","Teleporter","Schmied","NPCs verschwinden lassen", "Weitere", "Abbrechen")
if s == 1 then
mob.spawn(npc1, pc.get_local_x(), pc.get_local_y(), 0)
elseif s == 2 then
mob.spawn(npc2, pc.get_local_x(), pc.get_local_y(), 0)
elseif s == 3 then
mob.spawn(npc3, pc.get_local_x(), pc.get_local_y(), 0)
elseif s == 4 then
mob.spawn(npc4, pc.get_local_x(), pc.get_local_y(), 0)
elseif s == 5 then
mob.spawn(npc5, pc.get_local_x(), pc.get_local_y(), 0)
elseif s == 6 then
kill_all_in_map(pc.get_map_index())
elseif s == 7 then
say_title("NPC Spawner")
say("")
say("Welchen NPC willst du rufen?")
say("Wähle aus:")
local s = select(mob_name(Special Tele), mob_name(Ereignishelfer), mob_name(Item-Shop), mob_name(Fischer), mob_name(Uriel), mob_name(Steine Frau), mob_name(Stalli), "NPCs verschwinden lassen", "Abbrechen")
if s == 1 then
mob.spawn(npc6, pc.get_local_x(), pc.get_local_y(), 0)
elseif s==2 then
mob.spawn(npc7, pc.get_local_x(), pc.get_local_y(), 0)
elseif s==3 then
mob.spawn(npc8, pc.get_local_x(), pc.get_local_y(), 0)
elseif s==4 then
mob.spawn(npc9, pc.get_local_x(), pc.get_local_y(), 0)
elseif s==5 then
mob.spawn(npc10, pc.get_local_x(), pc.get_local_y(), 0)
elseif s==6 then
mob.spawn(npc11, pc.get_local_x(), pc.get_local_y(), 0)
elseif s==7 then
mob.spawn(npc12, pc.get_local_x(), pc.get_local_y(), 0)
elseif s==8 then
kill_all_in_map(pc.get_map_index())
elseif s==9 then
end
elseif s == 8 then
end
end
end
end
Greatz Benhero
PHP Code:
quest durchsage begin
state start begin
when 30163.use with pc.is_gm() begin
say_title("Willst du eine Durchsage durchführen?")
local s=select("Ja", "Nein")
if s==1 then
say("Text der Durchsage?")
local text_msg = input("")
notice_all("###" .. text_msg .. "###")
elseif s==2 then
else
end
end
end
end
Greatz Benhero