Cerere event paste functional

Totalitatea subiectelor care nu respectă regulamentul vor fi stocate aici.
Deconectat
Avatar utilizator
Warr007
Utilizator interzis !
Utilizator interzis !
Mesaje: 319
Membru din: 29 Iun 2014
Localitate: Undeva pe pamant.
Status: Sunt Okappa.
Server Metin2: World Of Metin2
Regat: Jinno
Mulțumiri acordate: 2
Mulțumiri primite: 2
Contact:

Cerere event paste functional

Mesajde Warr007 » 04 Apr 2015, 13:58

Salut, aveti un event de paste frumos si functional ?
Ultima oară modificat 04 Apr 2015, 20:13 de către Răzvaan, modificat 1 dată în total.
Motiv: Titlu modificat conform regulamentului.
Profesional Graphic Designer.
♥♥Site : www.witind.deviantart.com♥♥
♥♥Email : c.timeflies@gmail.com♥♥
♥♥Skype : c.timeflies♥♥

Deconectat
Avatar utilizator
florin630
Nivel 2
Nivel 2
Mesaje: 154
Membru din: 10 Feb 2014
Localitate: Satu Mare
Status: Expert
Server Metin2: Metin3DarkSouls
Regat: Jinno
Mulțumiri acordate: 0
Mulțumiri primite: 0

Re: Event paste functional

Mesajde florin630 » 04 Apr 2015, 14:50

implementarea oului de paşte

Cod: Selectaţi tot

INSERT INTO `item_proto` VALUES (50162, 'Ou pentru paşte', 'Ou pentru paşte', 23, 0, 0, 1, 0, 4, 0, '', 999999, 100000, 0, 0, 0, 15, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, -1, -1, -1, -1, -1, 0, 0, 0);

----
Instalare : vă conectaţi la navicat - player - item_proto ctrl +q , inserati codul apoi dati Run

Implementarea Iepuraşului de Paşte NPC
Aici este discutabil...majoritatea serverfille-urilor au deja npc-ul. Ideea este ca in cele mai multe cazuri este mob, automat nu va functiona. In cazul in care iepurasul este mob recomand stergerea lui din mob_proto-ul vostru apoi implementat cu acesta.

Cod: Selectaţi tot

INSERT INTO `mob_proto` VALUES (30129, '????? ??', 'Iepuraşul de Paşte', 5, 1, 0, 70, '', 'NOMOVE', 0, '', 'STUN,SLOW,CURSE,TERROR', 0, '', 1, 0, 0, 0, 0, 0, 0, 3954, 3, 1, 24, 24, 1406, 79, 100, 100, 0, 2000, 175, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 0, 0);


mplementare quest drop ouă

Aici, putem spune că nu este foarte extraordinar, astfel dupa trecerea Paştelui majoritatea vor dori sa inchidă eventul dar ouale vor fi in continuare dropabile, cel mai bine dupa terminarea eventului ca dropul sa inceteze sa stergeti din item_proto codul oului (50162).
Quest drop oua

quest oudrop begin
state start begin
when 101.kill or 102.kill or 103.kill or 104.kill or 105.kill or 106.kill or 107.kill or 108.kill or 109.kill or 110.kill or 111.kill or 112.kill or 113.kill or 114.kill or 115.kill or 131.kill or 132.kill or 133.kill or 134.kill or 135.kill or 136.kill or 137.kill or 138.kill or 139.kill or 140.kill or 141.kill or 142.kill or 143.kill or 144.kill or 151.kill or 152.kill or 153.kill or 154.kill or 155.kill or 171.kill or 172.kill or 173.kill or
174.kill or 175.kill or 176.kill or 177.kill or 178.kill or 179.kill or 180.kill or 181.kill or 182.kill or 183.kill or 184.kill or 185.kill or 191.kill or 192.kill or 193.kill or 194.kill or 301.kill or 302.kill or 303.kill or 304.kill or 331.kill or 332.kill or 333.kill or 334.kill or 351.kill or 352.kill or 353.kill or 354.kill or 391.kill or 392.kill or 393.kill or 394.kill or 395.kill or 396.kill or 397.kill or 398.kill or 401.kill or
402.kill or 403.kill or 404.kill or 405.kill or 406.kill or 431.kill or 432.kill or 433.kill or 434.kill or 435.kill begin
if pc.level >= 1 and pc.level <= 30 then
local r=number(1, 50)
if r==1 then
pc.give_item2("50162", 1)
chat("Ai primit un Ou de Paste!")
else

end
end
end
when 436.kill or 451.kill or 452.kill or 453.kill or 454.kill or 455.kill or 456.kill or 491.kill or 492.kill or 493.kill or 494.kill or 501.kill or 502.kill or 503.kill or 504.kill or 531.kill or 532.kill or 533.kill or 534.kill or 551.kill or 552.kill or 553.kill or 554.kill or 591.kill or 595.kill or 601.kill or 602.kill or
603.kill or 604.kill or 631.kill or 632.kill or 633.kill or 634.kill or 635.kill or 636.kill or 637.kill or 651.kill or 652.kill or 653.kill or 654.kill or 655.kill or 656.kill or 657.kill or 691.kill or 692.kill or 693.kill or 701.kill or 702.kill or 703.kill or 704.kill or 705.kill or 706.kill or 707.kill or 731.kill or 732.kill or 733.kill or 734.kill or 735.kill or 736.kill or 737.kill or 751.kill or 752.kill or 753.kill or 754.kill or
755.kill or 756.kill or 757.kill or 771.kill or 772.kill or 773.kill or 774.kill or 775.kill or 776.kill or 777.kill or 791.kill or 792.kill or 793.kill or 794.kill or 795.kill or 796.kill or 901.kill or 902.kill or 903.kill or 904.kill or 905.kill or 906.kill or 907.kill or 931.kill or 932.kill or 933.kill or 934.kill or 935.kill or 936.kill or 937.kill or 991.kill or 992.kill or 993.kill begin
if pc.level >= 31 and pc.level <= 60 then
local r=number(1, 50)
if r==1 then
pc.give_item2("50162", 1)
chat("Ai primit un Ou de Paste!")
else

end
end
end
when 1001.kill or 1002.kill or 1003.kill or 1004.kill or 1031.kill or 1032.kill or 1033.kill or 1034.kill or 1035.kill or 1036.kill or 1037.kill or 1038.kill or 1039.kill or 1040.kill or 1041.kill or 1061.kill or 1062.kill or 1063.kill or 1064.kill or 1065.kill or 1066.kill or 1067.kill or 1068.kill or 1069.kill or 1070.kill or 1071.kill or 1091.kill or 1092.kill or 1093.kill or 1094.kill or 1095.kill or 1101.kill or 1102.kill or 1103.kill or 1104.kill or
1105.kill or 1106.kill or 1107.kill or 1131.kill or 1132.kill or 1133.kill or 1134.kill or 1135.kill or 1136.kill or 1137.kill or 1151.kill or 1152.kill or 1153.kill or 1154.kill or 1155.kill or 1156.kill or 1157.kill or 1171.kill or 1172.kill or 1173.kill or 1174.kill or 1175.kill or 1176.kill or 1177.kill or 1191.kill or 1192.kill or 1301.kill or 1302.kill or 1303.kill or 1304.kill or 1305.kill or 1306.kill or
1307.kill or 1331.kill or 1332.kill or 1333.kill or 1334.kill or 1335.kill or 1401.kill or 1402.kill or 1403.kill or 1501.kill or 1502.kill or 1503.kill or 1601.kill or 1602.kill or 1603.kill or 1901.kill or 1902.kill or 1903.kill or 2001.kill or 2002.kill or 2003.kill or 2004.kill or 2005.kill or 2031.kill or 2032.kill or 2033.kill or 2034.kill or 2035.kill or 2036.kill or 2051.kill or 2052.kill or 2053.kill or
2054.kill or 2055.kill or 2061.kill or 2062.kill or 2063.kill or 2064.kill or 2065.kill or 2071.kill or 2072.kill or 2073.kill or 2074.kill or 2075.kill or 2076.kill or 2091.kill or 2092.kill or 2093.kill or 2101.kill or 2102.kill or 2103.kill or 2104.kill or 2105.kill or 2106.kill or 2107.kill or 2108.kill or 2131.kill or 2132.kill or 2133.kill or 2134.kill or 2135.kill or 2151.kill or 2152.kill or 2153.kill or
2154.kill or 2155.kill or 2156.kill or 2157.kill or 2158.kill or 2191.kill or 2192.kill or 2201.kill or 2202.kill or 2203.kill or 2204.kill or 2205.kill or 2206.kill or 2207.kill or 2231.kill or 2232.kill or 2233.kill or 2234.kill or 2235.kill or 2291.kill or 2301.kill or 2302.kill or 2303.kill or 2304.kill or 2305.kill or 2306.kill or 2307.kill or 2311.kill or 2312.kill or 2313.kill or 2314.kill or 2315.kill or
2401.kill or 2402.kill or 2403.kill or 2404.kill or 2411.kill or 2412.kill or 2413.kill or 2414.kill or 2431.kill or 2432.kill or 2433.kill or 2434.kill or 2451.kill or 2452.kill or 2453.kill or 2454.kill or 2491.kill or 2492.kill or 2493.kill or 2508.kill or 2509.kill or 2510.kill or 2511.kill or 2512.kill or 2513.kill or 2514.kill or 2515.kill or 2516.kill or 2517.kill or 2518.kill or 2519.kill or 2520.kill or
2521.kill or 2522.kill or 2523.kill or 2524.kill or 2525.kill or 2526.kill or 2527.kill or 2528.kill or 2529.kill or 2530.kill or 2531.kill or 2532.kill or 2601.kill or 2602.kill or 2603.kill or 2604.kill or 2605.kill or 2651.kill or 2652.kill or 2653.kill or 2654.kill or 2681.kill or 2682.kill or 2683.kill or 2684.kill or 5001.kill or 5002.kill or 5003.kill or 5004.kill or 5101.kill or 5102.kill or 5103.kill or
5104.kill or 5111.kill or 5112.kill or 5113.kill or 5114.kill or 5115.kill or 5116.kill or 5121.kill or 5122.kill or 5123.kill or 5124.kill or 5125.kill or 5126.kill or 5127.kill or 5131.kill or 5132.kill or 5133.kill or 5134.kill or 5141.kill or 5142.kill or 5143.kill or 5144.kill or 5145.kill or 5146.kill or 5151.kill or 5152.kill or 5153.kill or 5154.kill or 5155.kill or 5156.kill or 5157.kill or 5161.kill or
5162.kill or 5163.kill or 7001.kill or 7002.kill or 7003.kill or 7004.kill or 7005.kill or 7006.kill or 7007.kill or 7008.kill or 7009.kill or 7010.kill or 7012.kill or 7013.kill or 7014.kill or 7015.kill or 7016.kill or 7017.kill or 7018.kill or 7019.kill or 7020.kill or 7021.kill or 7022.kill or 7023.kill or 7024.kill or 7025.kill or 7026.kill or 7027.kill or 7028.kill or 8001.kill or 8002.kill or 8003.kill or
8004.kill or 8005.kill or 8006.kill or 8007.kill or 8008.kill or 8009.kill or 8010.kill or 8011.kill or 8012.kill or 8013.kill or 8014.kill or 8015.kill or 8016.kill or 8017.kill or 8018.kill or 8019.kill or 8020.kill or 8021.kill or 8022.kill or 8024.kill or 8025.kill or 8026.kill or 8027.kill or 2602.kill or 2603.kill or 2604.kill or 2605.kill or 2651.kill or 2652.kill or 2653.kill or 2654.kill or 2681.kill or
2682.kill or 2683.kill or 2684.kill or 8041.kill or 8042.kill or 8043.kill or 8044.kill or 8045.kill or 8046.kill or 8047.kill or 8048.kill or 8049.kill or 8050.kill begin
if pc.level >= 61 and pc.level <= 105 then
local r=number(1, 50)
if r==1 then
pc.give_item2("50162", 1)
chat("Ai primit un Ou de Paste!")
else

end
end
end
when 101.kill with pc.is_gm() begin
--local r=number(1, 1)
--if r==1 then
pc.give_item2("50162", 1)
chat("Ai primit un Ou de Paste!")
--end
end
end
end


Implementare quest Iepuraş ( Cel mai important )
Aici aveti mai multe functii , puteti opri eventul ( dar nu stiu daca ouale vor continua dropul ), probabil v-am plictisit cu atata vorbărie. aşa ca nu o mai lungesc !
quest easter_event begin
state start begin
when 30129.chat."GM: Deschide event-ul de Paste" with pc.is_gm() and game.get_event_flag("easter_start") == 0 begin
say_title(""..mob_name(30129).."")
say_reward("Vrei sa deschizi event-ul de Paste?")
start_event = select("Da", "Nu")
if start_event == 2 then
return;
end
game.set_event_flag("easter_start", 1)
game.set_event_flag("easter_eggs_count", 0)
game.set_event_flag("easter_empty_baskets_count", 0)
game.set_event_flag("easter_egg_baskets_count", 0)
notice("Evenimentul de Paste s-a deschis! Vorbeste cu Iepurasul de Paste!")
end

when 30129.chat."Ouale de Paste" with game.get_event_flag("easter_start") == 1 begin
say_title(""..mob_name(30129).."")
say("Salut!")
say("Se stie in randul nostru ca Iepurasii de Paste")
say("sunt din ce in ce mai putin crezuti de catre")
say("copiii din cele trei regate. De aceea, eu am")
say("fost trimit pentru a va dovedi ca Iepurasii")
say("de Paste exista!")
say_reward("Drept consecinta, am venit cu o armata de pietre")
say_reward("Metin, ca sa ma razbun pe necredinta oamenilor!")

wait()

say_pc_name()
say("")
say("Ma gandesc ca poate Iepurasul s-ar mai linisti")
say("daca oamenii de pretutindeni i-ar aduce oua,")
say("luand exemplu de la el, care in fiecare an")
say("munceste pe rupte ca sa vopseasca ouale")
say("si sa le dea copiiilor...")

wait()

set_state(give_eggs)
end
end

state give_eggs begin
when 30129.chat."Am adus oua de Paste" with game.get_event_flag("easter_start") == 1 begin
say_title(""..mob_name(30129).."")
say("Ai adus oua de Paste? Vai... ce frumos! Si eu")
say("care credeam ca trebuie sa recurg la forta")
say("pentru a convinge oamenii ca exist si eu pe")
say("lume...")

if pc.count_item(50160) != 0 then
say_reward("Multumesc, iti voi da un cadou pentru")
say_reward("acest fapt!")
pc.setqf("easter_egg_vnum", 50160)
elseif pc.count_item(50161) != 0 then
say_reward("Multumesc, iti voi da un cadou pentru")
say_reward("acest fapt!")
pc.setqf("easter_egg_vnum", 50161)
elseif pc.count_item(50162) != 0 then
say_reward("Multumesc, iti voi da un cadou pentru")
say_reward("acest fapt!")
pc.setqf("easter_egg_vnum", 50162)
elseif pc.count_item(50163) != 0 then
say_reward("Multumesc, iti voi da un cadou pentru")
say_reward("acest fapt!")
pc.setqf("easter_egg_vnum", 50163)
elseif pc.count_item(50164) != 0 then
say_reward("Multumesc, iti voi da un cadou pentru")
say_reward("acest fapt!")
pc.setqf("easter_egg_vnum", 50164)
elseif pc.count_item(50165) != 0 then
say_reward("Multumesc, iti voi da un cadou pentru")
say_reward("acest fapt!")
pc.setqf("easter_egg_vnum", 50165)
elseif pc.count_item(50166) != 0 then
say_reward("Multumesc, iti voi da un cadou pentru")
say_reward("acest fapt!")
pc.setqf("easter_egg_vnum", 50166)
elseif pc.count_item(50167) != 0 then
say_reward("Multumesc, iti voi da un cadou pentru")
say_reward("acest fapt!")
pc.setqf("easter_egg_vnum", 50167)
elseif pc.count_item(50168) != 0 then
say_reward("Multumesc, iti voi da un cadou pentru")
say_reward("acest fapt!")
pc.setqf("easter_egg_vnum", 50168)
elseif pc.count_item(50169) != 0 then
say_reward("Multumesc, iti voi da un cadou pentru")
say_reward("acest fapt!")
pc.setqf("easter_egg_vnum", 50169)
elseif pc.count_item(50170) != 0 then
say_reward("Multumesc, iti voi da un cadou pentru")
say_reward("acest fapt!")
pc.setqf("easter_egg_vnum", 50170)
elseif pc.count_item(50171) != 0 then
say_reward("Multumesc, iti voi da un cadou pentru")
say_reward("acest fapt!")
pc.setqf("easter_egg_vnum", 50171)
elseif pc.count_item(50172) != 0 then
say_reward("Multumesc, iti voi da un cadou pentru")
say_reward("acest fapt!")
pc.setqf("easter_egg_vnum", 50172)
elseif pc.count_item(50173) != 0 then
say_reward("Multumesc, iti voi da un cadou pentru")
say_reward("acest fapt!")
pc.setqf("easter_egg_vnum", 50173)
elseif pc.count_item(50174) != 0 then
say_reward("Multumesc, iti voi da un cadou pentru")
say_reward("acest fapt!")
pc.setqf("easter_egg_vnum", 50174)
elseif pc.count_item(50175) != 0 then
say_reward("Multumesc, iti voi da un cadou pentru")
say_reward("acest fapt!")
pc.setqf("easter_egg_vnum", 50175)
elseif pc.count_item(50176) != 0 then
say_reward("Multumesc, iti voi da un cadou pentru")
say_reward("acest fapt!")
pc.setqf("easter_egg_vnum", 50176)
elseif pc.count_item(50177) != 0 then
say_reward("Multumesc, iti voi da un cadou pentru")
say_reward("acest fapt!")
pc.setqf("easter_egg_vnum", 50177)
elseif pc.count_item(50178) != 0 then
say_reward("Multumesc, iti voi da un cadou pentru")
say_reward("acest fapt!")
pc.setqf("easter_egg_vnum", 50178)
elseif pc.count_item(50179) != 0 then
say_reward("Multumesc, iti voi da un cadou pentru")
say_reward("acest fapt!")
pc.setqf("easter_egg_vnum", 50179)
else
say_reward("Of... Nu ai oua??? Eram sigur ca")
say_reward("e prea frumos ca sa fie adevarat...")
return;
end

wait()

say_title(""..mob_name(30129).."")
say("Vrei sa imi dai acest ou in schimbul unui")
say("cadou?")

say_item("Ou de Paste", pc.getqf("easter_egg_vnum"), "")

select_egg = select("Da", "Nu")

if select_egg == 2 then
say_title(""..mob_name(30129).."")
say("Asta e... In viata nu faci doar lucruri care")
say("iti plac...")
return;
else
pc.remove_item(pc.getqf("easter_egg_vnum"), 1)
pc.setqf("easter_egg_vnum", 0)
game.set_event_flag("easter_eggs_count", game.get_event_flag("easter_eggs_count")+1)
say_title(""..mob_name(30129).."")
say("Uite cadoul tau...")
local s = number(1, 43)
if 1 <= s and 5 >= s then
say_item("Elixirul Cercetatorului - 1 buc.", 71035, "")
pc.give_item2(71035,1)
elseif 5 >= s and 10 <= s then
say_item("Medalia Dragonului - 5 buc.", 71004, "")
pc.give_item2(71004,5)
elseif 10 >= s and 5 <= s then
say_item("Coada Scorpion + - 1 buc.", 30081, "")
pc.give_item2(30081,1)
elseif 20 >= s and 10 <= s then
say_item("Busola Pietrelor Metin - 1 buc.", 27989, "")
pc.give_item2(27989,1)
elseif 21 == s then
say_item("Metal Magic - 1 buc.", 25041, "")
pc.give_item2(25041,1)
elseif 22 == s then
say_item("Colier de Lacrima Cer+0 - 1 buc.", 16200, "")
pc.give_item2(16200,1)
elseif 23 == s then
say_item("Cercei de Lacrima Cer+0 - 1 buc.", 17200, "")
pc.give_item2(17200,1)
elseif 24 == s then
say_item("Bratara Lacrima Cer+0 - 1 buc.", 14200, "")
pc.give_item2(14200,1)
elseif 25 == s then
say_item("Papuci de Phoenix+0 - 1 buc.", 15200, "")
pc.give_item2(15200,1)
elseif 26 == s then
say_item("Scut Vultur+0 - 1 buc.", 13060, "")
pc.give_item2(13060,1)
elseif 27 == s then
say_item("Scut Tigru+0 - 1 buc.", 13080, "")
pc.give_item2(13080,1)
elseif 28 == s then
say_item("Scut Leu+0 - 1 buc.", 13100, "")
pc.give_item2(13100,1)
elseif 29 == s then
say_item("Scut Solzi de Dragon+0 - 1 buc.", 13120, "")
pc.give_item2(13120,1)
elseif 30 == s then
say_item("Cartea Comandantului - 1 buc.", 70003, "")
pc.give_item2(70003,1)
elseif 31 == s then
say_item("Lingou 97kk - 1 buc.", 30600, "")
pc.give_item2(30600,1)
elseif 32 == s then
say_item("Perla alba - 1 buc.", 27992, "")
pc.give_item2(27992,1)
elseif 33 == s then
say_item("Perla Albastra - 1 buc.", 27993, "")
pc.give_item2(27993,1)
elseif 34 == s then
say_item("Perla Visinie - 1 buc.", 27994, "")
pc.give_item2(27994,1)
elseif 35 == s then
say_item("Binecuvantarea Vietii - 10 buc.", 71018, "")
pc.give_item2(71018,10)
elseif 36 == s then
say_item("Binecuvantarea Magiei - 15 buc.", 71019, "")
pc.give_item2(71019,15)
elseif 37 == s then
say_item("Binecuvantarea Dragon - 10 buc.", 71020, "")
pc.give_item2(71020,10)
elseif 38 == s then
say_item("Lingou 243kk - 1 buc.", 30601, "")
pc.give_item2(30601,1)
elseif 39 == s then
say_item("Pho-Hwan De Atac Negru - 1 buc.", 436, "")
pc.give_item2(436,1)
elseif 40 == s then
say_item("Otel de war - 1 buc.", 11290, "")
pc.give_item2(11290,1)
elseif 41 == s then
say_item("Otel de ninja - 1 buc.", 11290, "")
pc.give_item2(11490,1)
elseif 42 == s then
say_item("Otel de Sura - 1 buc.", 11690, "")
pc.give_item2(11690,1)
elseif 43 == s then
say_item("Otel de Shaman - 1 buc.", 11890, "")
pc.give_item2(11890,1)
end
end
end

when 30129.chat."Am un cos gol" with pc.count_item(50180) >= 1 and game.get_event_flag("easter_start") == 1 begin
say_title(""..mob_name(30129).."")
say("Ai un cos gol? Daca vrei sa pui oua in el,")
say("da-mi cosul, iar apoi da-mi ouale, le voi")
say("pune eu in cos.")

give_basket = select("Da cosul", "Nu da cosul")

if give_basket == 2 then
return;
else
pc.remove_item(50180, 1)
game.set_event_flag("easter_empty_baskets_count", game.get_event_flag("easter_empty_baskets_count")+1)
say_title("Informatii:")
say("Pentru a-i da ouale Iepurasului de Paste, trage")
say("ouale pe el.")
pc.setqf("easter_make_basket_active", 1)
pc.setqf("easter_make_basket_needed_eggs", 3)
end
end

when 30129.take with pc.getqf("easter_make_basket_active") == 1 and game.get_event_flag("easter_start") == 1 begin
if item.vnum >= 50160 and item.vnum <= 50179 then
if pc.getqf("easter_make_basket_needed_eggs") >= 1 then
pc.setqf("easter_make_basket_needed_eggs", pc.getqf("easter_make_basket_needed_eggs")-1)
pc.remove_item(item.vnum, 1)
game.set_event_flag("easter_eggs_count", game.get_event_flag("easter_eggs_count")+1)
say_title(""..mob_name(30129).."")
if pc.getqf("easter_make_basket_needed_eggs") == 0 then
say("Multumesc! Se pare ca am terminat cosul.")
say("Poftim!")
pc.setqf("easter_make_basket_active", 0)
pc.give_item2(50181,1)
return;
end
say("Multumesc! Mai am nevoie de "..pc.getqf("easter_make_basket_needed_eggs").." oua pentru")
say("a realiza cosul.")
else
say_title(""..mob_name(30129).."")
say("Multumesc! Se pare ca am terminat cosul.")
say("Poftim!")
pc.setqf("easter_make_basket_active", 0)
pc.give_item2(50181,1)
end
else
say_title(""..mob_name(30129).."")
say("Acest obiect nu este un ou. Nu il pot pune in cos.")
end
end

when 30129.chat."Am un cos cu Oua de Paste" with pc.count_item(50181) >= 1 and game.get_event_flag("easter_start") == 1 begin
say_title(""..mob_name(30129).."")
say("Ai un cos cu oua? Ce frumos ar fi")
say("daca mi-ai da acest cos! Iti voi da o recompensa")
say("frumoasa in schimbul lui!")

give_basket = select("Da cosul", "Nu da cosul")

if give_basket == 2 then
return;
else
pc.remove_item(50181, 1)
game.set_event_flag("easter_egg_baskets_count", game.get_event_flag("easter_egg_baskets_count")+1)
say_title(""..mob_name(30129).."")
say("Uite cadoul tau...")
local s = number(1, 43)
if 1 <= s and 5 >= s then
say_item("Elixirul Cercetatorului - 1 buc.", 71035, "")
pc.give_item2(71035,1)
elseif 5 >= s and 10 <= s then
say_item("Medalia Dragonului - 5 buc.", 71004, "")
pc.give_item2(71004,5)
elseif 10 >= s and 5 <= s then
say_item("Coada Scorpion + - 1 buc.", 30081, "")
pc.give_item2(30081,1)
elseif 20 >= s and 10 <= s then
say_item("Busola Pietrelor Metin - 1 buc.", 27989, "")
pc.give_item2(27989,1)
elseif 21 == s then
say_item("Metal Magic - 1 buc.", 25041, "")
pc.give_item2(25041,1)
elseif 22 == s then
say_item("Colier de Lacrima Cer+0 - 1 buc.", 16200, "")
pc.give_item2(16200,1)
elseif 23 == s then
say_item("Cercei de Lacrima Cer+0 - 1 buc.", 17200, "")
pc.give_item2(17200,1)
elseif 24 == s then
say_item("Bratara Lacrima Cer+0 - 1 buc.", 14200, "")
pc.give_item2(14200,1)
elseif 25 == s then
say_item("Papuci de Phoenix+0 - 1 buc.", 15200, "")
pc.give_item2(15200,1)
elseif 26 == s then
say_item("Scut Vultur+0 - 1 buc.", 13060, "")
pc.give_item2(13060,1)
elseif 27 == s then
say_item("Scut Tigru+0 - 1 buc.", 13080, "")
pc.give_item2(13080,1)
elseif 28 == s then
say_item("Scut Leu+0 - 1 buc.", 13100, "")
pc.give_item2(13100,1)
elseif 29 == s then
say_item("Scut Solzi de Dragon+0 - 1 buc.", 13120, "")
pc.give_item2(13120,1)
elseif 30 == s then
say_item("Cartea Comandantului - 1 buc.", 70003, "")
pc.give_item2(70003,1)
elseif 31 == s then
say_item("Lingou 97kk - 1 buc.", 30600, "")
pc.give_item2(30600,1)
elseif 32 == s then
say_item("Perla alba - 1 buc.", 27992, "")
pc.give_item2(27992,1)
elseif 33 == s then
say_item("Perla Albastra - 1 buc.", 27993, "")
pc.give_item2(27993,1)
elseif 34 == s then
say_item("Perla Visinie - 1 buc.", 27994, "")
pc.give_item2(27994,1)
elseif 35 == s then
say_item("Binecuvantarea Vietii - 10 buc.", 71018, "")
pc.give_item2(71018,10)
elseif 36 == s then
say_item("Binecuvantarea Magiei - 15 buc.", 71019, "")
pc.give_item2(71019,15)
elseif 37 == s then
say_item("Binecuvantarea Dragon - 10 buc.", 71020, "")
pc.give_item2(71020,10)
elseif 38 == s then
say_item("Lingou 243kk - 1 buc.", 30601, "")
pc.give_item2(30601,1)
elseif 39 == s then
say_item("Pho-Hwan De Atac Negru - 1 buc.", 436, "")
pc.give_item2(436,1)
elseif 40 == s then
say_item("Otel de war - 1 buc.", 11290, "")
pc.give_item2(11290,1)
elseif 41 == s then
say_item("Otel de ninja - 1 buc.", 11290, "")
pc.give_item2(11490,1)
elseif 42 == s then
say_item("Otel de Sura - 1 buc.", 11690, "")
pc.give_item2(11690,1)
elseif 43 == s then
say_item("Otel de Shaman - 1 buc.", 11890, "")
pc.give_item2(11890,1)
end
end
end

when 30129.chat."GM: Statistici Event de Paste" with pc.is_gm() and game.get_event_flag("easter_start") == 1 begin
local eggs = game.get_event_flag("easter_eggs_count")
local empty_baskets = game.get_event_flag("easter_empty_baskets_count")
local egg_baskets = game.get_event_flag("easter_egg_baskets_count")
say_title(""..mob_name(30129).."")
say_reward("Pana acum, "..eggs.." oua au fost duse la iepuras!")
say("")
say_reward("Pana acum, "..empty_baskets.." cosuri goale au fost duse la iepuras!")
say("")
say_reward("Pana acum, "..egg_baskets.." cosuri cu oua au fost duse la iepuras!")
return;
end

when 30129.chat."GM: Inchide event-ul de Paste" with pc.is_gm() and game.get_event_flag("easter_start") == 1 begin
say_title(""..mob_name(30129).."")
say_reward("Vrei sa inchizi event-ul de Paste?")
close_event = select("Da", "Nu")
if close_event == 2 then
return;
end
say_title(""..mob_name(30129).."")
say_reward("Sigur vrei sa faci acest lucru?")
say_reward("Este ultima sansa de a te razgandi!!!")
close = select("Da", "Nu")
if close_event == 2 then
return;
end
game.set_event_flag("easter_start", 0)
game.set_event_flag("easter_eggs_count", 0)
game.set_event_flag("easter_empty_baskets_count", 0)
game.set_event_flag("easter_egg_baskets_count", 0)
notice_all("Evenimentul de Paste s-a incheiat!")
notice_all("Ouale si cosurile le puteti distruge la Cetateanul Turmentat!")
end

when login with game.get_event_flag("easter_start") == 0 begin
pc.setqf("easter_make_basket_active", 0)
pc.setqf("easter_make_basket_needed_eggs", 0)
set_state(start)
end
end
end
Imagine

Contact:
Y!M: fboss93@yahoo.com
Skype: florin6301
Nr. Telefon: 0741255781 (raspund doar la sms,va rog sa ziceti ca sunteti de pe j4m.)


Înapoi la “Topicuri şi mesaje şterse”

Cine este conectat

Utilizatori ce ce navighează pe acest forum: Bing [Bot], R4uL.T, romici și 52 vizitatori