Nu te inregistra daca esti idiot sau agramat!
AlphaCS.RO[ORIGINAL GAMING]
Thanks:
0
Likes:
0
-
Quest event drop item
Nume: Quest event drop item
Descriere:
Imagini:
Quest/arma/armura/etc: QUest
Download(Optional):
Code:
quest item_drop begin
state start begin
when 20020.chat."Item_Drop" with pc.is_gm() begin
if game.get_event_flag("item_open") == 0 then
say("Hello "..pc.get_name().." ")
say("Metin2Freakz iti prezinta:")
say("NPC GM pentru event drop item")
say("Aici poti activa dropul unui item")
say("vrei sa faci asta?")
if select("da","nu") == 2 then return end
say("Introdu codul itemului care doresti sa fie dropat!")
kill_item = tonumber(input()) or 0
if kill_item == 0 then
say("Datele au fost introduse gresit. Incercati din nou!")
return
end
say("Care vrei sa fie sansa dropului?")
kill_prozent = tonumber(input()) or 0
if kill_prozent == 0 then
say("Datele au fost introduse gresit. Incercati din nou!")
return
end
say("Cat timp vrei sa se dropeze? Minute!")
zeit = tonumber(input()) or 0
if zeit == 0 then
say("Datele au fost introduse gresit. Incercati din nou!")
return
end
game.set_event_flag("item_time", get_time()+zeit*60)
game.set_event_flag("item_open", 1)
notice_all("Item drop activat")
notice_all("Itemul "..item_name(kill_item).." este dropabil la toti monstri din joc.")
notice_all("Pentru "..zeit.." Minute")
else
say("Eventul item drop este deja activ")
say("Opriti eventul?")
if select("Da", "NU")==2 then return end
game.set_event_flag("item_open", 0)
kill_prozent, kill_item = nil, nil
end
end
when kill with game.get_event_flag("item_open") == 1 and not npc.is_pc() begin
if kill_prozent == nil then game.set_event_flag("item_open", 0) return end
if game.get_event_flag("item_time") < get_time() then
notice_all("Eventul dropului de iteme a luat sfarsit")
notice_all("Multumim farmerilor ce sunt alatori de Metin2Freakz la evenimente!")
game.set_event_flag("item_open", 0)
kill_prozent, kill_item = nil, nil
return
end
local s=number(1, 101-kill_prozent)
if s==1 then
game.drop_item_with_ownership(kill_item, 1)
end
end
when login with game.get_event_flag("item_open") == 1 begin
notice("Event item drop este activat")
notice("Itemul "..item_name(kill_item).." este dropabil la toti monstri din joc.")
end
end
end
Tutorial instalare quest:
? Salvati continutul quest-ului într-un fisier text numit de exemplu nume_quest.quest
? Va conectati la filezilla / winscp si întrati în /usr/home/game/share/locale/germany/quest (depinde ce server aveti).
? Îl puneti acolo (sa fie .quest sau .lua) si da-ti permisiuni 777.
? Te loghezi în FreeBSD / putty si scrii în felul urmator: cd /usr/home/game/share/locale/germany/quest apoi ./qc nume_quest.quest
? Intrati pe server si scrieti /reload q
? Testati quest-ul.
Similar Threads
-
By Jack in forum Quest-uri
Replies: 0
Last Post: 07-04-17, 16:23
-
By Mihai.!? in forum Quest-uri
Replies: 0
Last Post: 27-03-17, 12:49
-
By Mihai.!? in forum Resurse Metin2
Replies: 0
Last Post: 23-01-17, 18:34
-
By Mihai.!? in forum Quest-uri
Replies: 0
Last Post: 17-12-16, 15:30
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules