diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-02-18 04:02:52 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-02-18 04:02:52 -0300 |
commit | 802c15e6a7f4c07b7fe0a7ed47d1defbcce4824d (patch) | |
tree | e09b3aafeaad9251fbcdcf146960bab4df12f0ee /npc/025-2-4 | |
parent | e28a3651adad1c976e5286c356e7eca21f6234cf (diff) | |
download | serverdata-802c15e6a7f4c07b7fe0a7ed47d1defbcce4824d.tar.gz serverdata-802c15e6a7f4c07b7fe0a7ed47d1defbcce4824d.tar.bz2 serverdata-802c15e6a7f4c07b7fe0a7ed47d1defbcce4824d.tar.xz serverdata-802c15e6a7f4c07b7fe0a7ed47d1defbcce4824d.zip |
Aegis Shield Blackbox
Diffstat (limited to 'npc/025-2-4')
-rw-r--r-- | npc/025-2-4/_import.txt | 1 | ||||
-rw-r--r-- | npc/025-2-4/tree.txt | 39 |
2 files changed, 39 insertions, 1 deletions
diff --git a/npc/025-2-4/_import.txt b/npc/025-2-4/_import.txt index a012b10d4..e9181f3b4 100644 --- a/npc/025-2-4/_import.txt +++ b/npc/025-2-4/_import.txt @@ -1,5 +1,6 @@ // Map 025-2-4: Mana Tree Cave // This file is generated automatically. All manually added changes will be removed when running the Converter. +"npc/025-2-4/025-2-4_aegis_blackbox.txt", "npc/025-2-4/_mobs.txt", "npc/025-2-4/_warps.txt", "npc/025-2-4/tree.txt", diff --git a/npc/025-2-4/tree.txt b/npc/025-2-4/tree.txt index bc6544889..1087346c0 100644 --- a/npc/025-2-4/tree.txt +++ b/npc/025-2-4/tree.txt @@ -5,17 +5,54 @@ // Pinkie Cave Tree is part of Legendary Weapons 025-2-4,39,33,0 script Mana Tree NPC_MANATREE,{ + function manatreeOff; + function manatreeAgain; + function manatreeAegis; + setpcblock(PCBLOCK_HARD, true); mesc l("A tree glows in this dark cave, surrounded by mana lanes."); next; mesc l("This might be the place of a great secret, but yet, all you can do is stare."); next; - mesc l("...for now."); + if (!true) manatreeOff(); + else if ($AEGIS_HOLDER$ == "" && @manacool < gettimetick(2)) manatreeAegis(); + else manatreeAgain(); + next; setpcblock(PCBLOCK_HARD, false); closeclientdialog; close; +function manatreeOff { + mesc l("...for now."); + return; +} + +function manatreeAgain { + // TODO: getitem Manapple, 1; // Maybe can obtain one daily/weekly? + return; +} + +function manatreeAegis { + mesc l("For which player do you wish to pray?"); + next; + input .@prayer$; + if (.@prayer$ == strcharinfo(0)) { + mesc l("The tree doesn't likes your selfishness."); + percentheal -20, -50; + return; + } + @manacool=gettimetick(2)+30; + .@cid=getcharid(3, .@prayer$); + if (.@cid < 1) { + mesc l("Did you just make up that someone?"); + return; + } + 02524_Tree_BlackBox(.@prayer$, .@cid); + @manacool+=150; + return; +} + OnInit: .sex = G_OTHER; .distance = 2; |