könnt ihr mich nicht einfach jetzt bitte eine richtige queast geben?
push
push
die ist komplett fertig. Musst nur die npc vnum eintragen. Wenn du es dann ingame startest kannst du jedes mal ne eigene Chance wählenQuote:
Npc eintragen nicht vergessen :PPHP Code:quest dropp begin
state start begin
when vnum.chat."Metin Dropp" with pc.is_gm() begin
if game.get_event_flag("metin_dropp") == 1 then
say('Möchtest du das Event deaktivieren?')
if select('Ja','Nein') == 2 then return end
notice_all("das dropp Event wurde soeben deaktiviert")
game.set_event_flag("metin_dropp", 0)
else
say('Möchtest du das Event aktivieren?')
if select('Ja','Nein') == 2 then return end
say('Gebe die Droppchance an:')
local d = tonumber(input())
if d < 1 then say('ungültig.') return end
notice_all("das dropp Event wurde soeben aktiviert")
game.set_event_flag("metin_dropp", 1)
game.set_event_flag("chance", d)
notice_all("das dropp Event wurde soeben gestartet")
notice_all("ihr könnt nun von 85er und 90er metins mysteriöse Truhen droppen")
end
end
when kill with game.get_event_flag("metin_drop") == 1 and not npc.is_pc() begin
if npc.get_race() == 8026 or npc.get_race() == 8027 then
local s = number(1, 100)
if s < game.get_event_flag("chance") then
game.drop_item_with_ownership(50125, 1)
end
end
end
end
end
Besucht meinen Kanal xD