diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-04-09 13:33:57 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-04-09 13:33:57 -0300 |
commit | cf18ce071c79ae37e14ea38943e0b1d88da70a7b (patch) | |
tree | f9159c9b60b3018300dd22ffba0d797bc5e828e5 /npc/009-7/battlemaster.txt | |
parent | 8a4bf716002a017de77fe7df301ef8e4aaf00a2e (diff) | |
download | serverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.tar.gz serverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.tar.bz2 serverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.tar.xz serverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.zip |
Override
Diffstat (limited to 'npc/009-7/battlemaster.txt')
-rwxr-xr-x | npc/009-7/battlemaster.txt | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/npc/009-7/battlemaster.txt b/npc/009-7/battlemaster.txt new file mode 100755 index 00000000..d6e43559 --- /dev/null +++ b/npc/009-7/battlemaster.txt @@ -0,0 +1,83 @@ +009-7,40,35,0 script Battle Master#Duels NPC322,{ + if($SANGUINE & $@SV_BMDBit != 0) goto L_Disabled; + mes "[Battle Master]"; + mes "\"Hey, you seem tough enough! Would you like to prove your skills?\""; + next; + menu + "PvP Cave (50gp)", L_Pvp, + "Last Man Standing (150gp)", L_Brodomir, + "Nevermind.", L_Next; + +L_Disabled: + mes "[Battle Master]"; + mes "I am busy, come back later."; + close; + +L_Next: + mes "[Battle Master]"; + mes "\"Ha ha, coward.\""; + close; + +L_Brodomir: + if (Zeny < 150) goto L_NoMoney; + Zeny = Zeny - 150; + mes "[Battle Master]"; + mes "\"Get ready!\""; + close2; + set DUELS, DUELS | $@DuelPvpBit; // tell the arena to send the player back here when he exits + warp "009-6", 33, 37; + savepoint "009-7", 39, 37; + end; + +L_Pvp: + if (Zeny < 50) goto L_NoMoney; + Zeny = Zeny - 50; + mes "[Battle Master]"; + mes "\"Get ready!\""; + close2; + set DUELS, DUELS | $@DuelPvpBit; // tell the arena to send the player back here when he dies + warp "001-3", 0, 0; + savepoint "009-7", 39, 37; + end; + +L_NoMoney: + mes "\"Wait a second, you don't have enough money.\""; + close; +} + + + +function script fightclub_GoBack { + @Duel_PVP = DUELS & $@DuelPvpBit; + if(@Duel_PVP != 0) goto L_GoBack; + return; + +L_GoBack: + DUELS = DUELS &~ $@DuelPvpBit; + warp "009-7", 39, 37; + heal MaxHp, MaxSp; + message strcharinfo(0), "Thank you for participating!"; + return; +} +009-6,36,48,0 script #GoBack2Duels NPC32767,0,1,{ + callfunc "fightclub_GoBack"; + end; +} +009-5,53,74,0 script #GoBack3Duels NPC32767,3,1,{ + callfunc "fightclub_GoBack"; + end; +} +009-3,158,83,0 script #GoBack5Duels NPC32767,7,0,{ + callfunc "fightclub_GoBack"; + end; +} + + +001-2,130,22,0 script #GoBack4Duels NPC32767,1,1,{ + callfunc "fightclub_GoBack"; + end; +} +001-3,73,28,0 script #GoBack1Duels NPC32767,0,1,{ + callfunc "fightclub_GoBack"; + end; +} |