diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-05-22 10:27:57 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-05-22 10:27:57 -0300 |
commit | 5cd797d7e89b1e320cd37e385ca20bb7d8d7920a (patch) | |
tree | d2a9b830b5fbd3d3eb842e0d1fae6457c4ab36bc /npc | |
parent | c5dcb8abaeb18eaddf792ad27f02f353cdb9b5e0 (diff) | |
download | serverdata-5cd797d7e89b1e320cd37e385ca20bb7d8d7920a.tar.gz serverdata-5cd797d7e89b1e320cd37e385ca20bb7d8d7920a.tar.bz2 serverdata-5cd797d7e89b1e320cd37e385ca20bb7d8d7920a.tar.xz serverdata-5cd797d7e89b1e320cd37e385ca20bb7d8d7920a.zip |
Populate 020-7-2
Diffstat (limited to 'npc')
-rw-r--r-- | npc/020-7-1/janitors.txt | 21 | ||||
-rw-r--r-- | npc/020-7-2/_import.txt | 3 | ||||
-rw-r--r-- | npc/020-7-2/_mobs.txt | 8 | ||||
-rw-r--r-- | npc/020-7-2/connor.txt | 9 | ||||
-rw-r--r-- | npc/020-7-2/parcival.txt | 9 |
5 files changed, 45 insertions, 5 deletions
diff --git a/npc/020-7-1/janitors.txt b/npc/020-7-1/janitors.txt index 617028cd0..8b2583480 100644 --- a/npc/020-7-1/janitors.txt +++ b/npc/020-7-1/janitors.txt @@ -24,11 +24,11 @@ function askQuestion { .@q2=getq2(NivalisQuest_BlueSage); .@q3=getq3(NivalisQuest_BlueSage); .@qs=BSQuestion(getq(NivalisQuest_BlueSage)); - .@qt=getq3(NivalisQuest_BlueSage); + .@qt=getq2(NivalisQuest_BlueSageSlimes); next; mes ""; select - rif(.@qt < 255, "What are you doing?"), + rif(.@qt < BS_SNESTALL, "What are you doing?"), rif(.@qs & BS_QVISITOR, l("Do you know anything about the strange visitor?")), rif(.@qs & BS_QHELPER, l("What's your opinion of Peetu and his work?")), any(l("I need to leave."), l("See you."), l("Bye.")); @@ -56,6 +56,17 @@ function askQuestion { close; } +OnSlimeDeath: + if (playerattached()) { + getmapxy(.@m$, .@x, .@y, 0); + // Capped at ~10% drop chance of book pages + if (rand(0,10000) <= 360+(readparam(bLuck)*7)) + makeitem SpellBookPage, 1, .@m$, .@x, .@y; + if (rand(0,10000) <= 100) + makeitem Candy, 1, .@m$, .@x, .@y; + } + end; + OnInit: .bsId=BS_NPC06; .sex=G_MALE; @@ -130,7 +141,7 @@ function askQuestion { } mes ""; select - rif(.@qt < 255, ""), + rif(.@qt < BS_SNESTALL, ""), rif(.@qs & BS_QVISITOR, l("Do you know anything about the strange visitor?")), rif(.@qs & BS_QHELPER, l("What's your opinion of Peetu and his work?")), any(l("I need to leave."), l("See you."), l("Bye.")); @@ -234,7 +245,7 @@ function askQuestion { next; mes ""; select - rif(.@qt < 255, ""), + rif(.@qt < BS_SNESTALL, ""), rif(.@qs & BS_QVISITOR, l("Do you know anything about the strange visitor?")), rif(.@qs & BS_QHELPER, l("What's your opinion of Peetu and his work?")), any(l("I need to leave."), l("See you."), l("Bye.")); @@ -334,7 +345,7 @@ function askQuestion { } mes ""; select - rif(.@qt < 255, ""), + rif(.@qt < BS_SNESTALL, ""), rif(.@qs & BS_QVISITOR, l("Do you know anything about the strange visitor?")), rif(.@qs & BS_QHELPER, l("What's your opinion of Peetu and his work?")), any(l("I need to leave."), l("See you."), l("Bye.")); diff --git a/npc/020-7-2/_import.txt b/npc/020-7-2/_import.txt index db78130d1..6d305d4eb 100644 --- a/npc/020-7-2/_import.txt +++ b/npc/020-7-2/_import.txt @@ -1,3 +1,6 @@ // Map 020-7-2: Ice cave // This file is generated automatically. All manually added changes will be removed when running the Converter. +"npc/020-7-2/_mobs.txt", "npc/020-7-2/_warps.txt", +"npc/020-7-2/connor.txt", +"npc/020-7-2/parcival.txt", diff --git a/npc/020-7-2/_mobs.txt b/npc/020-7-2/_mobs.txt new file mode 100644 index 000000000..a522ab6f5 --- /dev/null +++ b/npc/020-7-2/_mobs.txt @@ -0,0 +1,8 @@ +// This file is generated automatically. All manually added changes will be removed when running the Converter. +// Map 020-7-2: Ice cave mobs +020-7-2,57,92,40,26 monster Blue Slime 1087,30,35000,450000,Pyry::OnSlimeDeath +020-7-2,60,88,40,26 monster White Slime 1094,15,45000,450000,Pyry::OnSlimeDeath +020-7-2,56,97,38,26 monster Black Slime 1178,50,35000,450000 +020-7-2,36,68,18,55 monster Santa Slime 1096,9,35000,450000 +020-7-2,66,74,29,55 monster Cave Bat 1039,16,35000,450000 +020-7-2,52,34,40,26 monster Azul Slime 1095,7,35000,450000 diff --git a/npc/020-7-2/connor.txt b/npc/020-7-2/connor.txt new file mode 100644 index 000000000..536d2b3cb --- /dev/null +++ b/npc/020-7-2/connor.txt @@ -0,0 +1,9 @@ +// TMW2 scripts. +// Authors: +// Jesusalva +// TMW LoF (Paxel) +// Description: +// Makes Raw Coal to fool the Blue Sage + + + diff --git a/npc/020-7-2/parcival.txt b/npc/020-7-2/parcival.txt new file mode 100644 index 000000000..92aae41ef --- /dev/null +++ b/npc/020-7-2/parcival.txt @@ -0,0 +1,9 @@ +// TMW2 scripts. +// Authors: +// Jesusalva +// TMW LoF (Paxel) +// Description: +// Informs about the Slime Cage + + + |