From a7c45a192268da2601cef47a4cdba987ae2327ca Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 23 Oct 2022 21:44:22 -0300 Subject: Initial commit (Moubootaur Legends fork) --- npc/027-3/_import.txt | 5 +++ npc/027-3/_warps.txt | 4 ++ npc/027-3/angel.txt | 111 ++++++++++++++++++++++++++++++++++++++++++++++ npc/027-3/luca.txt | 120 ++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 240 insertions(+) create mode 100644 npc/027-3/_import.txt create mode 100644 npc/027-3/_warps.txt create mode 100644 npc/027-3/angel.txt create mode 100644 npc/027-3/luca.txt (limited to 'npc/027-3') diff --git a/npc/027-3/_import.txt b/npc/027-3/_import.txt new file mode 100644 index 0000000..feb1974 --- /dev/null +++ b/npc/027-3/_import.txt @@ -0,0 +1,5 @@ +// Map 027-3: Physical Sciences Classroom +// This file is generated automatically. All manually added changes will be removed when running the Converter. +"npc/027-3/_warps.txt", +"npc/027-3/angel.txt", +"npc/027-3/luca.txt", diff --git a/npc/027-3/_warps.txt b/npc/027-3/_warps.txt new file mode 100644 index 0000000..8f4f474 --- /dev/null +++ b/npc/027-3/_warps.txt @@ -0,0 +1,4 @@ +// This file is generated automatically. All manually added changes will be removed when running the Converter. +// Map 027-3: Physical Sciences Classroom warps +027-3,27,26,0 warp #027-3_27_26 0,0,027-1,46,101 +027-3,24,40,0 warp #027-3_24_40 0,0,027-1,40,116 diff --git a/npc/027-3/angel.txt b/npc/027-3/angel.txt new file mode 100644 index 0000000..b811e3d --- /dev/null +++ b/npc/027-3/angel.txt @@ -0,0 +1,111 @@ +// TMW2 script. +// Author: +// dangerDuck +// Description: +// Angel, of Physical Science Class. + +027-3,36,28,0 script Angel NPC_PLAYER,{ + function basicMagic; + function standardMagic; + function advancedMagic; + if (!MAGIC_LVL) goto L_NoMagic; + mes l(".:: Physical Sciences Class ::."); + mesc l("Specialized in skills with fist-based damage and unarmed mastery."); + next; + mesn; + mesc l("You have @@ magic skill points available.", sk_points()); + select + l("Basic Magic"), + l("Standard Magic"), + l("Advanced Magic"); + //l("Mastery Magic"); + mes ""; + .@lv=@menu; + do + { + // Display appropriate menu + if (.@lv == 1) + basicMagic(); + else if (.@lv == 2) + standardMagic(); + else if (.@lv == 3) + advancedMagic(); + + // Handle result + mes ""; + if (@menuret) { + if (!learn_magic(@menuret)) { + mesc l("You do not meet all requisites for this skill."), 1; + next; + } + } else { + closeclientdialog; + } + + } while (@menuret); + close; + +L_NoMagic: + next; + mesn; + mesq l("You do not have enough magic power for these classes."); + next; + if ($FIRESOFSTEAM < 9) { + mesn; + mesq l("Besides the Magic Council, Andrei Sakar have his own Mana Stone, but I doubt he would train the likes of you, or share his Mana Stone."); + next; + } + mesn; + mesq l("Perhaps, in the city, someone knows rumors about Mana Stones and can teach you. Other than that, you're on your own."); + close; + +function basicMagic { + if (MAGIC_LVL < 1) goto L_NoMagic; + mes l(".:: Brawling ::."); + mesc l("Three powerful consecutive brawn attacks."); + mes ""; + menuint + l("Brawling"), TMW2_BRAWLING, + l("Cancel"), 0; + return; +} + +function standardMagic { + if (MAGIC_LVL < 2) goto L_NoMagic; + mes l(".:: Bear Strike ::."); + mesc l("Five powerful consecutive brawn attacks."); + mes ""; + mes l(".:: Stunning Strike ::."); + mesc l("Three powerful consecutive brawn attacks with a chance to stun target."); + mes ""; + menuint + l("Bear Strike"), TMW2_BEARSTRIKE, + l("Stunning Strike"), TMW2_STUNNINGSTRIKE, + l("Cancel"), 0; + return; +} + +function advancedMagic { + if (MAGIC_LVL < 3) goto L_NoMagic; + mes l(".:: All In One ::."); + mesc l("Seven consecutive brawn attacks of diff. elements."); + mes ""; + menuint + l("All In One"), TMW2_ALLINONE, + l("Cancel"), 0; + return; +} + +OnInit: + .@npcId = getnpcid(.name$); + setunitdata(.@npcId, UDT_HEADTOP, NPCEyes); + setunitdata(.@npcId, UDT_HEADMIDDLE, AssassinChest); + setunitdata(.@npcId, UDT_HEADBOTTOM, AssassinPants); + setunitdata(.@npcId, UDT_WEAPON, AssassinBoots); + setunitdata(.@npcId, UDT_HAIRSTYLE, 20); + setunitdata(.@npcId, UDT_HAIRCOLOR, 7); + + .sex = G_FEMALE; + .distance = 5; + end; +} diff --git a/npc/027-3/luca.txt b/npc/027-3/luca.txt new file mode 100644 index 0000000..eae8824 --- /dev/null +++ b/npc/027-3/luca.txt @@ -0,0 +1,120 @@ +// TMW2 script. +// Author: +// Saulc +// Jesusalva +// Description: +// Luca, of Physical Science Class. + +027-3,24,36,0 script Luca NPC_PLAYER,{ + function basicMagic; + function standardMagic; + function advancedMagic; + if (!MAGIC_LVL) goto L_NoMagic; + mes l(".:: Physical Sciences Class ::."); + mesc l("Specialized in skills with weapon-based damage and Assassination."); + next; + mesn; + mesc l("You have @@ magic skill points available.", sk_points()); + select + l("Basic Magic"), + l("Standard Magic"), + l("Advanced Magic"); + //l("Mastery Magic"); + mes ""; + .@lv=@menu; + do + { + // Display appropriate menu + if (.@lv == 1) + basicMagic(); + else if (.@lv == 2) + standardMagic(); + else if (.@lv == 3) + advancedMagic(); + + // Handle result + mes ""; + if (@menuret) { + if (!learn_magic(@menuret)) { + mesc l("You do not meet all requisites for this skill."), 1; + next; + } + } else { + closeclientdialog; + } + + } while (@menuret); + close; + +L_NoMagic: + next; + mesn; + mesq l("You do not have enough magic power for these classes."); + next; + if ($FIRESOFSTEAM < 9) { + mesn; + mesq l("Besides the Magic Council, Andrei Sakar have his own Mana Stone, but I doubt he would train the likes of you, or share his Mana Stone."); + next; + } + mesn; + mesq l("Perhaps, in the city, someone knows rumors about Mana Stones and can teach you. Other than that, you're on your own."); + close; + +function basicMagic { + if (MAGIC_LVL < 1) goto L_NoMagic; + mes l(".:: Falkon Strike ::."); + mesc l("Bash your weapon against your enemies with raised damage and accuracy."); + mes ""; + mes l(".:: Ground Strike ::."); + mesc l("Hit the ground, exploding the surroundings and disabling enemies."); + mes ""; + mes l(".:: Sharpshooter ::."); + mesc l("Shoot an arrow or bullet which damages everything on its way."); + mes ""; + menuint + l("Falkon Strike"), TMW2_FALKONSTRIKE, + l("Ground Strike"), TMW2_GROUNDSTRIKE, + l("Sharpshooter"), SN_SHARPSHOOTING, + l("Cancel"), 0; + return; +} + +function standardMagic { + if (MAGIC_LVL < 2) goto L_NoMagic; + mes l(".:: Supreme Attack ::."); + mesc l("Cause a very strong attack with lowered accuracy."); + mes ""; + mes l(".:: Arrow Shower ::."); + mesc l("Shoot FIVE arrows or bullets to the air and cause Area Of Effect Damage."); + mes ""; + menuint + l("Supreme Attack"), TMW2_SUPREMEATTACK, + l("Arrow Shower"), TMW2_ARROWSHOWER, + l("Cancel"), 0; + return; +} + +function advancedMagic { + if (MAGIC_LVL < 3) goto L_NoMagic; + mes l(".:: Counter Attack ::."); + mesc l("Retaliates next attack with a critical hit. This instance lasts a second."); + mes ""; + menuint + l("Counter Attack"), KN_AUTOCOUNTER, + l("Cancel"), 0; + return; +} + +OnInit: + .@npcId = getnpcid(.name$); + setunitdata(.@npcId, UDT_HEADTOP, NPCEyes); + setunitdata(.@npcId, UDT_HEADMIDDLE, BromenalChest); + setunitdata(.@npcId, UDT_HEADBOTTOM, JeansShorts); + setunitdata(.@npcId, UDT_WEAPON, DeepBlackBoots); + setunitdata(.@npcId, UDT_HAIRSTYLE, 21); + setunitdata(.@npcId, UDT_HAIRCOLOR, 6); + + .sex = G_MALE; + .distance = 5; + end; +} -- cgit v1.2.3-70-g09d2