diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-03-16 18:55:48 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-03-16 18:55:48 -0300 |
commit | 38a302bbc302ca51090e3f669a3d34ba8c7884b7 (patch) | |
tree | bdc9e4e0e612c99f2c4cddce70a17d19f7c745d9 /npc/005-1/ayasha.txt | |
parent | 8c86bd3259eac948f8926f23182f6d329dc8f6bb (diff) | |
download | serverdata-38a302bbc302ca51090e3f669a3d34ba8c7884b7.tar.gz serverdata-38a302bbc302ca51090e3f669a3d34ba8c7884b7.tar.bz2 serverdata-38a302bbc302ca51090e3f669a3d34ba8c7884b7.tar.xz serverdata-38a302bbc302ca51090e3f669a3d34ba8c7884b7.zip |
Add another secret siege panel to Ayasha, but Candor invasion is much easier.
Diffstat (limited to 'npc/005-1/ayasha.txt')
-rw-r--r-- | npc/005-1/ayasha.txt | 122 |
1 files changed, 122 insertions, 0 deletions
diff --git a/npc/005-1/ayasha.txt b/npc/005-1/ayasha.txt index 0c7b49aa6..cb49ce315 100644 --- a/npc/005-1/ayasha.txt +++ b/npc/005-1/ayasha.txt @@ -15,6 +15,7 @@ 005-1,52,81,0 script Ayasha NPC_HUMAN_FEMALE_NOOB,{ showavatar NPC_HUMAN_FEMALE_NOOB; // this is handled by avatars.xml + if (strcharinfo(2) == "Monster King") goto L_MKControl; function quest_findAllKids { @@ -129,6 +130,127 @@ L_DoRent: mesq l("Here it is. Take care with it!"); close; + + + +L_MKControl: + mesn; + mes l("Oh noes! You've found the Candor control panel!"); + menu + l("Initiate small siege (lv. 5)"), L_MKSmall, + l("Abort"), -; + close; + +L_MKSmall: + pvpon("005-1"); + announce(l("##1WARNING! WARNING! Siege starting at Candor!!"), bc_all); + areamonster("005-1", 0, 0, 105, 105, l("Black Scorpion"), 1074, 1, "Ayasha::OnBlackScorpionDeath"); + areamonster("005-1", 0, 0, 105, 105, ("House Maggot"), 1084, 3, "Ayasha::OnHouseMaggotDeath"); + initnpctimer; + close; + + +OnBlackScorpionDeath: + areamonster("005-1", 0, 0, 105, 105, l("Black Scorpion"), 1074, 1, "Ayasha::OnBlackScorpionDeath"); + if (rand(10000) <= 900) + getitem StrangeCoin, 1; + end; + +OnManaGhostDeath: + areamonster("005-1", 0, 0, 105, 105, l("Mana Ghost"), 1068, 1, "Ayasha::OnManaGhostDeath"); + if (rand(10000) <= 500) + getitem StrangeCoin, 1; + end; + +OnHouseMaggotDeath: + areamonster("005-1", 0, 0, 105, 105, l("House Maggot"), 1068, 1, "Ayasha::OnManaGhostDeath"); + if (rand(10000) <= 400) + getitem StrangeCoin, 1; + end; + + +OnTimer5000: + areamonster("005-1", 0, 0, 105, 105, "Black Scorpion", 1074, 1, "Ayasha::OnBlackScorpionDeath"); + areamonster("005-1", 0, 0, 105, 105, ("House Maggot"), 1084, 10, "Ayasha::OnHouseMaggotDeath"); + mapannounce("003-1", "##2Message to all Candor NPCs: Take shelter!", bc_map); + disablenpc "Ayasha"; + disablenpc "Charda"; + disablenpc "Faris"; + disablenpc "Ghada"; + disablenpc "Latif"; + disablenpc "Rasin"; + disablenpc "Lilly"; + disablenpc "Zegas"; + disablenpc "Vincent"; + disablenpc "Liana"; + disablenpc "Maya"; + disablenpc "Sailors#005-1"; + disablenpc "Magic Barrier"; + disablenpc "Tolchi"; + disablenpc "Rosen"; + disablenpc "Nylo"; + disablenpc "Cynric"; + disablenpc "Morgan"; + disablenpc "Zitoni"; + disablenpc "Trainer"; + end; + +OnTimer60000: + areamonster("005-1", 0, 0, 105, 105, "Black Scorpion", 1074, 1, "Ayasha::OnBlackScorpionDeath"); + areamonster("005-1", 0, 0, 105, 105, ("Mana Ghost"), 1068, 3, "Ayasha::OnManaGhostDeath"); + areamonster("005-1", 0, 0, 105, 105, ("House Maggot"), 1084, 5, "Ayasha::OnHouseMaggotDeath"); + end; + +OnTimer120000: +OnTimer180000: +OnTimer240000: +OnTimer300000: +OnTimer360000: +OnTimer420000: +OnTimer480000: + areamonster("005-1", 0, 0, 105, 105, ("Slime Blast"), 1090, 1); + areamonster("005-1", 0, 0, 105, 105, ("Mana Ghost"), 1068, 1, "Ayasha::OnManaGhostDeath"); + areamonster("005-1", 0, 0, 105, 105, ("House Maggot"), 1084, 1, "Ayasha::OnHouseMaggotDeath"); + end; + +OnTimer540000: + mapannounce("005-1", "##1The Monster Army is getting tired of resistance!", bc_map); + areamonster("005-1", 0, 0, 105, 105, ("Slime Blast"), 1090, 5); + areamonster("005-1", 0, 0, 105, 105, ("Mana Ghost"), 1068, 1, "Ayasha::OnManaGhostDeath"); + areamonster("005-1", 0, 0, 105, 105, ("House Maggot"), 1084, 1, "Ayasha::OnHouseMaggotDeath"); + end; + +OnTimer600000: + mapannounce("005-1", "##1The Monster King army is preparing to withdraw!", bc_map); + end; + +OnTimer630000: + killmonsterall("005-1", 0); + pvpoff("005-1"); + announce(("Candor siege is over!"), bc_all); + enablenpc "Ayasha"; + enablenpc "Charda"; + enablenpc "Faris"; + enablenpc "Ghada"; + enablenpc "Latif"; + enablenpc "Rasin"; + enablenpc "Lilly"; + enablenpc "Zegas"; + enablenpc "Vincent"; + enablenpc "Liana"; + enablenpc "Maya"; + enablenpc "Sailors#005-1"; + enablenpc "Magic Barrier"; + enablenpc "Tolchi"; + enablenpc "Rosen"; + enablenpc "Nylo"; + enablenpc "Cynric"; + enablenpc "Morgan"; + enablenpc "Zitoni"; + enablenpc "Trainer"; + stopnpctimer; + end; + OnInit: .sex = G_FEMALE; .distance = 5; |