Weiß jemand wie die quest funktion vom ehering heißt? z.b pc.warp_married ...
Will nämlich bestimmte maps verbieten.
Will nämlich bestimmte maps verbieten.
quest ehering2 begin
-- Eheringersatz by Mijago
-- Ehering den Type 18 & Subtype 0 & Antiflag 0 eintragen! [DB]
state start begin
when 70302.use begin
if not pc.is_married() then
chat("Du bist nicht verheiratet.")
return
end
local u_vid = marriage.find_married_vid()
if u_vid == 0 then
chat("Dein Partner ist nicht online.")
return
end
local target = u_vid
local t = pc.select(target)
local p = {}
p.name = pc.get_name()
p.level = pc.get_level()
p.map = pc.get_map_index()
p.x = pc.get_local_x()
p.y = pc.get_local_y()
local disallow = {3,23,43}
if ehering2.table_is_in(disallow,p.map) then
chat("Auf diese Karte kann ich dich nicht Teleportieren.")
return
end
chat('Du wirst zu '..p.name..' (Lv. '..p.level..') teleportiert.')
pc.select(t)
pc.warp_local(p.map, p.x, p.y)
end
function table_is_in(self, test)
for i = 1, table.getn(self) do
if self[i]==test then
return true
end
end
return false
end
end
end
local disallow = {3,23,43}
quest ehering2 begin
-- Eheringersatz by Mijago
-- Ehering den Type 18 & Subtype 0 & Antiflag 0 eintragen! [DB]
state start begin
when 70302.use begin
if not pc.is_married() then
chat("Du bist nicht verheiratet.")
return
end
local u_vid = marriage.find_married_vid()
if u_vid == 0 then
chat("Dein Partner ist nicht online.")
return
end
local target = u_vid
local t = pc.select(target)
local p = {}
p.name = pc.get_name()
p.level = pc.get_level()
p.map = pc.get_map_index()
p.x = pc.get_x()
p.y = pc.get_y()
chat(p.y)
local disallow = {3,23,43}
pc.select(t)
if ehering2.table_is_in(disallow,p.map) then
chat("Auf diese Karte kann ich dich nicht Teleportieren.")
return
end
chat('Du wirst zu '..p.name..' (Lv. '..p.level..') teleportiert.')
pc.warp(p.x*100, p.y*100)
end
function table_is_in(self, test)
for i = 1, table.getn(self) do
if self[i]==test then
return true
end
end
return false
end
end
end
nöö habe nurQuote:
muss nicht ;)
Bei mir klappt es so perfekt
Und deine Quest ist meine quest die du verändert hast, immernoch xD