Bine sunt 3 functii .... Cea de dat premiu(merge) , cea de inchis ox(merge) , cea de pus intrebare(nu merge)
Cand vreau sa pun intrebarea primesc mesajul din quest : pornirea a esuat. (prima eroare de unload)
Mentionez ca am game 40k iar acesta este questul pe care il folosesc
oxevent.quest
Cod: Selectaţi tot
quest oxevent_manager begin
state start begin
when login with game.get_event_flag("oxevent_status") > 0 and pc.get_map_index() != 113 begin
q.set_icon("scroll_open_blue.tga")
send_letter("*OX event")
end
when button or info begin
----"123456789012345678901234567890123456789012345678901234567890"|
addimage(20, 12, "ox.tga")
say("")
say("")
say("")
say("")
say_title("The OX event")
say("")
say("de 2 ori pe saptamana , cele mai stralucite minti ale regatelor")
say("se aduna la un concurs al inteligentei. in timpul acestui concurs, diferite")
say("intrebari , cu subiecte diferite vor fi afisate. muta-te pe")
say("O daca tu crezi ca intrebarea este adevarata, sau pe x X")
say("daca tu crezi ca este falsa. Doar cei mai buni vor fi rasplatiti")
say("cu premii care depasesc orice imaginatie")
say("")
end
when 20011.chat."OX event" begin
say_title("Uriel:")
----"123456789012345678901234567890123456789012345678901234567890"|
say("")
say("Hey - tu cel de acolo")
say("")
say("da, da, chiar tu - Arati destul de inteligent. Noi avem")
say("un concurs de 2 ori pe saptamana cunoscut drept CONCURSUL OX.")
say("")
say("Te asteapta premii inimaginabile daca reusesti sa castigi !")
say("")
wait()
if game.get_event_flag("oxevent_status") == 0 then
----"123456789012345678901234567890123456789012345678901234567890"|
say_title("Uriel:")
say("")
say("Cand acest concurs incepe ,eu te pot lasa sa participi")
say("dar , poti sa si privesti , bineinteles..")
say("")
say_blue("Pentru a participa , ai nevoie de nivel 20.")
say("")
elseif game.get_event_flag("oxevent_status") == 1 then
if pc.get_level() > 19 then
say_title("Uriel:")
say("")
say("Doresti sa participi chiar acum ?")
say("")
say("Desigur , poti sa si urmaresti si sa inveti !")
say("")
local s = select("Participa", "Urmareste", "Anulare")
if s == 1 then
say_title("Uriel:")
say("")
say("OK , deci vrei sa participi ")
say("Sa incepem atunci !")
say("")
wait()
if game.get_event_flag("oxevent_status") == 1 then
pc.warp(896500, 24600)
else
say("Ai ajuns prea tarziu. Evenimentul deja a")
say("inceput!")
say("")
end
elseif s == 2 then
----"123456789012345678901234567890123456789012345678901234567890"|
say_title("Uriel:")
say("")
say("Urmareste?")
say("")
say("Okay - Poti urmarii de aici. Dar , fi atent pentru ca nu")
say("poti pleca pana cand competitia nu a ajuns la final. Ia aminte ")
say("sa nu deranjezi restul jucatorilor - gardienii te vegheaza!")
say("")
wait()
pc.warp(896300, 28900)
end
else
say_title("Uriel:")
say("")
say("Ai nevoie de nivel 20 pentru a participa.")
say("Dar , daca doresti , poti sa urmaresti.")
say("")
local s = select("Urmareste", "Nu , multumesc")
if s ==1 then
----"123456789012345678901234567890123456789012345678901234567890"|
say_title("Uriel:")
say("")
say("Doresti sa urmaresti ? Foarte bine - Eu sunt de parere ca intotdeauna poti invata")
say("ceva nou! Dar , nu deranja ceilalti jucatori.")
say("")
wait()
pc.warp(896300, 28900)
end
end
elseif game.get_event_flag("oxevent_status") == 2 then
say_title("Uriel:")
say("")
----"123456789012345678901234567890123456789012345678901234567890"|
say("Imi pare rau , dar competitia deja a inceput.")
say("")
say("Curand , va incepe alta, si tu , desigur vei")
say("fi informat. intre timp, doresti sa urmaresti competitia actuala?")
say("")
local s = select("Urmareste", "Anuleaza")
if s == 1 then
say_title("Uriel:")
say("")
say("Deci, doresti sa urmaresti? foarte bine.")
say("")
say("Daca urmaresti de multiple dati , iti va fi benefic cand vei")
say("participa mai tarziu.")
say("")
wait()
pc.warp(896300, 28900)
end
end
end
when 20358.chat."Ox eveniment pentru GM" with pc.is_gm() begin
local stat = oxevent.get_status()
if stat == 0 then
say("acum : OX ia sfarsit")
say("")
local s = select("Start Event", "Opreste")
if s == 1 then
local v = oxevent.open()
if v == 0 then
say("OX quiz nu a putut fi incarcat, verifica")
say("fisierele si incearca din nou.")
say("")
say("")
elseif v == 1 then
say("OX quiz incarcat cu succes.")
say("Incepe eventul!")
say("")
notice_all("Evenimentul ox incepe in cateva minute.")
notice_all("Vorbeste cu Uriel pentru a participa!")
else
say("Eroare eveniment OX")
say("")
end
end
elseif stat == 1 then
say("Acum incepe OX")
say("User count "..oxevent.get_attender().." players")
say("")
local s = select("Inchide portile", "Termina")
if s == 1 then
oxevent.close()
say("Portile sunt inchise , incepe evenimentul.")
say("")
say("")
end
elseif stat == 2 then
say("Poritle ox au fost inchise")
say("")
local s = select("Pune intrebare", "reseteaza evenimentul", "inchide evenimentul", "Sfarsit")
if s == 1 then
local v = oxevent.quiz(1, 30)
if v == 0 then
say("pornirea a esuat")
say("")
elseif v == 1 then
say("a pornit cu succes")
say("")
else
say("Eroare event OX")
say("")
end
elseif s == 2 then
oxevent.end_event()
notice_all("Urmatoarea runda va incepe curand.")
notice_all("Participantii vor fi transportati in Oras.")
say("Resetare event OX")
say("")
elseif s == 3 then
oxevent.end_event()
notice_all("Evenimetul ox a luat sfarsit.")
notice_all("Participantii vor fi transportati in Oras.")
say("Sfarseste evenimentul OX")
say("")
end
elseif stat == 3 then
say("acum : se incarca intrebarea ,rog asteptati")
say("")
say("")
else
say("acum: Eroare")
end
end
when 20358.chat."Inchide evenimentul OX" with pc.is_gm() begin
say("Inchiderea evenimentului poate cauza probleme")
say("esti sigur ca vrei sa continui?")
say("")
say("")
local s = select("da", "nu")
if s == 1 then
oxevent.end_event_force()
say("Eventul OX a fost inchis fortat")
end
end
when 20358.chat."Acorda premiu OX " with pc.is_gm() begin
say("Introdu codul itemului care doresti sa il.")
say("oferi jucatorilor.")
say_reward("De exemplu : 50011 este Cufar Lumina Lunii")
local item_vnum = input()
say_title("Concursul OX")
say("Introdu cantitatea de iteme primite de jucatori.")
say("asupra itemului tastat mai sus.")
say_reward("De exemplu ,daca mai sus ai scris 50011")
say_reward("si aici scrii 200,jucatorii vor primii 200 cufere")
local item_count = input()
oxevent.give_item(item_vnum, item_count)
say("You reward item to "..oxevent.get_attender().." players.")
say("")
notice_all(oxevent.get_attender().." Jucatorii au fost rasplatiti!")
end
end
end
oxevent.quiz
Cod: Selectaţi tot
add_ox_quiz(1, "2x Bear Gall+ are needed to upgrade Tiger Plate Armour to +7.", false)
add_ox_quiz(1, "2x Bear Gall are needed to upgrade Tiger Plate Armour to +7.", true)
add_ox_quiz(1, "Blessing Spell increases reflect chance.", false)
add_ox_quiz(1, "Blessing Spell reduces physical damage.", true)
add_ox_quiz(1, "Cure can also remove poison.", true)
add_ox_quiz(1, "Old Lady wears a skirt.", false)
add_ox_quiz(1, "You need level 69 to wear Black Steel Armour +7.", true)
add_ox_quiz(1, "You need level 66 to wear Black Wind suit +8.", false)
add_ox_quiz(1, "2x White Flag is needed to upgrade War Scythe to +5.", false)
add_ox_quiz(1, "A Jade Necklace +2 gives 9% spell speed.", false)
add_ox_quiz(1, "Biologist Chaegirab wears glasses without lenses.", true)
add_ox_quiz(1, "Uriel wears glasses without lenses.", false)
add_ox_quiz(1, "There are 3 Horses and 3 Ponies at Stable Boy.", false)
add_ox_quiz(1, "There are 2 Horses and 2 Ponies at Stable Boy.", true)
add_ox_quiz(1, "Ah-Yu's baby has black hair.", true)
add_ox_quiz(1, "There are 10 Fishermen in Shinsoo.", true)
add_ox_quiz(1, "There are 9 Fishermen in Shinsoo.", false)
add_ox_quiz(1, "There are 7 Fishermen in Jinno.", false)
add_ox_quiz(1, "There are 8 Fishermen in Jinno.", true)
add_ox_quiz(1, "Wolf can drop an Antler Bow.", false)
add_ox_quiz(1, "Wild Dog is level 2.", false)
add_ox_quiz(1, "P Enchanted Blade absorbs 12% of HP.", true)
add_ox_quiz(1, "P Enchanted Blade absorbs 5% of HP.", false)
add_ox_quiz(1, "P Enchanted Damage absorbs 12% of HP.", false)
add_ox_quiz(1, "Fear increases opponents attack power.", false)
add_ox_quiz(1, "Fear decreases opponents attack power.", true)
add_ox_quiz(1, "Storekeeper holds a butcher knife.", true)
add_ox_quiz(1, "A Band of Oblivion restores 1 skill point.", true)
add_ox_quiz(1, "A Band of Oblivion restores all skill points at once.", false)
add_ox_quiz(1, "Pink Dress is for level 9.", false)
add_ox_quiz(1, "Turquoise Dress is for level 9.", true)
add_ox_quiz(1, "Uriel is a woman.", false)
add_ox_quiz(1, "Uriel is a man.", true)
add_ox_quiz(1, "2x snake tail+ is needed to upgrade a level 48 armour to +6.", false)
add_ox_quiz(1, "2x snake tail+ is needed to upgrade a level 48 armour to +5.", true)
add_ox_quiz(1, "Hong-Hae wears a blue dress.", false)
add_ox_quiz(1, "Armoursmiths name is Stanton.", true)
add_ox_quiz(1, "Armoursmiths name is Stanley.", false)
add_ox_quiz(1, "Scrofa is level 31.", false)
add_ox_quiz(1, "Scrofa is lvl 14.", true)
add_ox_quiz(1, "Metin of Combat is level 15.", false)
add_ox_quiz(1, "Metin of Combat is level 10.", true)
add_ox_quiz(1, "Lykos is level 30.", false)
add_ox_quiz(1, "Lykos is level 12.", true)
add_ox_quiz(1, "Cung-mok is level 9.", true)
add_ox_quiz(1, "Dispirited Mi-Jung is level 23.", true)
add_ox_quiz(1, "Vein of Ebony Ore can only be found in map 2.", false)
add_ox_quiz(1, "Weaponsmiths name is Stanley.", true)
add_ox_quiz(1, "Accessorysmiths name is Stanley.", false)
add_ox_quiz(1, "Joan is in Chunjo.", true)
add_ox_quiz(1, "Joan is in Shinsoo.", false)
add_ox_quiz(1, "Imha is in Shinsoo.", false)
add_ox_quiz(1, "Imha is in Jinno.", true)
add_ox_quiz(1, "Jayang is in Shinsoo.", true)
add_ox_quiz(1, "Jayang is in Chunjo.", false)
add_ox_quiz(1, "Jug-Hyul is level 10.", true)
add_ox_quiz(1, "Betrayers name is Dalso.", false)
add_ox_quiz(1, "General Stores father is Weapon Shop Dealer.", false)
add_ox_quiz(1, "General Stores father is Armour Shop Dealer.", true)
add_ox_quiz(1, "Vein of Fossil Trunk Ore can be found in Ice Mountain.", false)
add_ox_quiz(1, "Goo-Pae cannot be found in map 2.", false)
add_ox_quiz(1, "Black Wind To-Su can drop a Piece of Gem.", false)
add_ox_quiz(1, "White Oath Archer can drop White Flag.", false)
add_ox_quiz(1, "Savage Archer can drop White Flag.", false)
add_ox_quiz(1, "Desert Outlaw can drop white flag.", true)
add_ox_quiz(1, "Evil Bl. Storm Joh-Hwa can drop a Piece of Gem.", true)
add_ox_quiz(1, "Silver Bracelet +7 gives +500 HP.", true)
add_ox_quiz(1, "Silver Bracelet +9 gives +1000 HP.", false)
add_ox_quiz(1, "Gold Bracelet gives poison resistance.", true)
add_ox_quiz(1, "Gold Bracelet gives chance to poison.", false)
add_ox_quiz(1, "Jade Shoes +9 gives 5% chance for double experience.", true)
add_ox_quiz(1, "Jade Shoes +9 gives 5% experience bonus.", false)
add_ox_quiz(1, "White Gold Bracelet +9 gives +1800 HP.", true)
add_ox_quiz(1, "White Gold Bracelet +0 gives +50 HP.", false)
add_ox_quiz(1, "Amethyst Bracelet gives HP restoration.", false)
add_ox_quiz(1, "Amethyst Bracelet gives SP regeneration.", true)
add_ox_quiz(1, "Heaven Tear Bracelet +8 gives 9% chance of Critical.", true)
add_ox_quiz(1, "Heaven Tear Bracelet +9 gives 10% chance of Penetration.", false)
add_ox_quiz(1, "A White Pearl and Demon Gem is needed to upgrade Crystal Bracelet to +7.", false)
add_ox_quiz(1, "2x Snake Skin and a Clam is needed to upgrade Pearl Bracelet to +9.", true)
add_ox_quiz(1, "Bamboo Skin Shoes give Lightning Resistance.", false)
add_ox_quiz(1, "Gold Shoes +6 give 12% moving speed.", true)
add_ox_quiz(1, "Phoenix Shoes +8 give 8% chance to block.", false)
add_ox_quiz(1, "2x Yeti's Fur and a Blue Pearl are required to upgrade Fire Bird Shoes to +8.", true)
add_ox_quiz(1, "The maximum Demi-Human bonus in a weapon is 10%.", true)
add_ox_quiz(1, "It is impossible to get Undead bonus in a bracelet.", false)
add_ox_quiz(1, "The maximum Magic Resistanc bonus in a bracelet is 20%.", false)
add_ox_quiz(1, "Black Round Shield can be worn at level 45.", true)
add_ox_quiz(1, "Black Round Shield can be worn from level 45.", false)
add_ox_quiz(1, "Lion Edge Shield +9 gives 20% resistance to Warriors.", false)
add_ox_quiz(1, "Tiger Monk Shield +7 gives 87 defence and 12% resistance to Assassins.", true)
add_ox_quiz(1, "2x Spider Legs are required to upgrade Dragon Scale Shield to +5.", true)
add_ox_quiz(1, "Silver Necklace +4 gives 8% Spell Speed.", false)
add_ox_quiz(1, "Gold Necklace gives Arrow Resistance.", true)
add_ox_quiz(1, "Jade Necklace +3 gives +2 Strenght.", false)
add_ox_quiz(1, "Ebony Necklace can be worn from level 34.", false)
add_ox_quiz(1, "Pearl Necklace +9 gives +6 Inteligence.", false)
add_ox_quiz(1, "Amethyst Necklace gives HP Regeneration.", true)
add_ox_quiz(1, "2x Unknown Medicine is needed to upgrade Heaven Tear Necklace to +5.", true)
add_ox_quiz(1, "Ebony Earrings +1 give +60 HP.", false)
add_ox_quiz(1, "2x Orc Tooth and a Clam are needed to upgrade Ebony Earrings to +8.", true)
add_ox_quiz(1, "Gold Shoes give Poison Resistance.", false)
add_ox_quiz(1, "It is possible to get a poison resistance bonus.", true)
add_ox_quiz(1, "Only Plagued Archer drops Arrow Heads for a quest.", false)
add_ox_quiz(1, "Only Angry Plagued Archer drops Arrow Heads for a quest.", true)
add_ox_quiz(1, "Demon Tower has a total of eight floors.", false)
add_ox_quiz(1, "Immortal Ghost can only be found on floor 9 of Demon Tower.", false)
add_ox_quiz(1, "Death Reaper can only be found on floor 9 of Demon Tower.", true)
add_ox_quiz(1, "Stone Ape is a boss of easy ape dungeon.", true)
add_ox_quiz(1, "Golden Ape is a boss of easy ape dungeon.", false)
add_ox_quiz(1, "Demon King can drop a box.", false)
add_ox_quiz(1, "Elite Demon King can drop a box.", true)
add_ox_quiz(1, "Metin of Shadow can only be found in Dragon Valley.", false)
add_ox_quiz(1, "Chief Orc has three heads.", false)
add_ox_quiz(1, "Chief Orc has two heads.", true)
add_ox_quiz(1, "Hae-Tae is level 60.", true)
add_ox_quiz(1, "Queen Spider has only 6 legs.", false)
add_ox_quiz(1, "Queen Spider is level 60.", true)
add_ox_quiz(1, "Giant Tortoise is level 69.", false)
add_ox_quiz(1, "Giants can only be found in Giants Wasteland.", false)
add_ox_quiz(1, "Ice Bug has 6 legs.", false)
add_ox_quiz(1, "Ice Bug has 8 legs.", true)
add_ox_quiz(1, "Dragon Valley is made out of 19 islands.", true)
add_ox_quiz(1, "Dragon Valley is made out of 10 islands.", false)
add_ox_quiz(1, "There are 10 platforms in Dark Temple.", true)
add_ox_quiz(1, "There are 8 platforms in Dark Temple.", false)
add_ox_quiz(1, "There are Giants in Snakefield.", true)
add_ox_quiz(1, "It is possible to get Chance of Faint on a Shield.", false)
add_ox_quiz(1, "Heaven Tear Earrings +9 give 12 intelligence.", false)
add_ox_quiz(1, "Flame Warrior has four legs.", false)
add_ox_quiz(1, "Flame Soldier has four legs.", true)
add_ox_quiz(1, "Level 25 is needed to get married.", true)
add_ox_quiz(1, "A maximum of 7 people can be in one party.", false)
add_ox_quiz(1, "A maximum of 8 people can be in one party.", true)
add_ox_quiz(1, "You need 13000 rank points to be Chivarlic.", false)
add_ox_quiz(1, "Desert Fox is level 25.", true)
add_ox_quiz(1, "Metin of Soul can not drop a Soul Stone.", false)
add_ox_quiz(1, "Metin of Shadow can drop a Soul Stone.", true)
add_ox_quiz(1, "Metin of Combat can spawn Tigers.", false)
add_ox_quiz(1, "You can bet for yourself at The Dojang.", true)
add_ox_quiz(1, "You can not vote for yourself in the elections.", false)
add_ox_quiz(1, "There is a Sura Skeleton in Heaven's Lair 2.", true)
add_ox_quiz(1, "There are Aloe Vera plants in the Yongbi Desert.", true)
add_ox_quiz(1, "You can create Red Liquids at Yu-Hwan.", false)
add_ox_quiz(1, "Warrior Ghost lets you enter the Dragon Lair.", false)
add_ox_quiz(1, "You can find 6 Sura Skeletons in Heaven Lair.", true)
add_ox_quiz(1, "You can find 8 Sura Skeletons in Heaven Lair.", false)
add_ox_quiz(1, "Level 65 metins can only be found in Demon Tower.", false)
add_ox_quiz(1, "Black Tunic+8 gives 136 defence.", false)
add_ox_quiz(1, "Black Magic Armour+7 gives 132 defence.", true)
add_ox_quiz(1, "Bestial Captain is level 32.", true)
add_ox_quiz(1, "You need 2x Shuriken to upgrade White Gold Bracelet to +6.", false)
add_ox_quiz(1, "Proud Demon King can spawn his minions.", false)
add_ox_quiz(1, "Demon King can spawn his minions.", true)
add_ox_quiz(1, "Bestial Captain is level 47.", false)
add_ox_quiz(1, "Heuk-Young can upgrade stones.", false)
add_ox_quiz(1, "You neeed 25 Ice Marbles for a Biologist quest.", false)
add_ox_quiz(1, "You need 25 Ghost Tree Branches for a Biologist quest.", true)
add_ox_quiz(1, "You need 2x Snake Tail and a Clam to upgrade Ant Lion suit to +9.", true)
add_ox_quiz(1, "You need 2x Scorpion Needle and a Fishbone to upgrade Leather Shoes to +7", false)
add_ox_quiz(1, "You need a Wedding Ring to get married.", false)
add_ox_quiz(1, "Storekeeper holds the knife in his left hand.", false)
add_ox_quiz(1, "Storekeeper holds the knife in his right hand.", true)
add_ox_quiz(1, "Grilled Grass Carp gives 20% attack speed.", true)
add_ox_quiz(1, "Grilled Grass Carp gives 20% moving speed.", false)
add_ox_quiz(1, "Agility Potion gives 10% moving speed.", false)
add_ox_quiz(1, "Agility Potion gives 15% moving speed.", true)
add_ox_quiz(1, "Agility Potion gives 20% moving speed.", false)
add_ox_quiz(1, "Ape Lord can be found in Honobo Dungeon.", false)
add_ox_quiz(1, "Grilled Mandarin Fish restores 220 SP.", false)
add_ox_quiz(1, "Grilled Loach can make you invisible for 5 minutes.", true)
add_ox_quiz(1, "Grilled Lotus fish restores 1200 HP.", true)
add_ox_quiz(1, "Grilled Striped Bass gives Agility.", false)
add_ox_quiz(1, "Grilled Smelt gives chance to poison.", true)
add_ox_quiz(1, "Grilled Shiri gives strength against monsters.", true)
add_ox_quiz(1, "Grilled Salmon restores 360 SP.", false)
add_ox_quiz(1, "Grilled Pikes increases Agility.", true)
add_ox_quiz(1, "Grilled Catfish restores 500 SP.", true)
add_ox_quiz(1, "Grilled Rainbw Trout restores 600 HP.", false)
add_ox_quiz(1, "Grilled Eel gives strength for 5 minutes.", false)
add_ox_quiz(1, "Grilled Gold Crucian gives resistance against skills.", true)
add_ox_quiz(1, "Grilled Tenchi restores HP.", true)
add_ox_quiz(1, "Grilled Mirrow Carp gives vitality.", false)




