summaryrefslogtreecommitdiff
path: root/npc/quests
diff options
context:
space:
mode:
authorLupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-10-05 04:29:13 +0000
committerLupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-10-05 04:29:13 +0000
commitb62a0d356cf9711c27d4e3d405d4901a5da4f2a2 (patch)
treea5365f485c1722742e4c80f329a20231d30502f0 /npc/quests
parentebd3a5ed1bbbaa904df3a4938c5d98c27f5eb52a (diff)
downloadhercules-b62a0d356cf9711c27d4e3d405d4901a5da4f2a2.tar.gz
hercules-b62a0d356cf9711c27d4e3d405d4901a5da4f2a2.tar.bz2
hercules-b62a0d356cf9711c27d4e3d405d4901a5da4f2a2.tar.xz
hercules-b62a0d356cf9711c27d4e3d405d4901a5da4f2a2.zip
Added official chance of failure to Create Essence (u may get a Garlet instead).Added official random amount to Dismantle Stone
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8935 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc/quests')
-rw-r--r--npc/quests/quests_umbala.txt55
1 files changed, 43 insertions, 12 deletions
diff --git a/npc/quests/quests_umbala.txt b/npc/quests/quests_umbala.txt
index 19f3bd263..b70947bea 100644
--- a/npc/quests/quests_umbala.txt
+++ b/npc/quests/quests_umbala.txt
@@ -3,7 +3,7 @@
//===== By: ==================================================
//= sabernet09 & eAthena Team
//===== Current Version: =====================================
-//= 1.7a
+//= 1.8
//===== Compatible With: =====================================
//= eAthena 7.15 +
//===== Description: =========================================
@@ -26,6 +26,7 @@
//= 1.2-1.6 fixed some Umbalian Language quests [Lupus]
//= 1.7 Moved Umbala Event, Create Essence/Dismantle Stone, and Skeletal Gate from npc/cities/umbala.txt [Evera]
//= 1.7a Removed all custom quests to custom folder [Lupus]
+//= 1.8 Added official chance of failure to Create Essence/Dismantle Stone [Lupus]
//============================================================
@@ -747,9 +748,27 @@ um_in.gat,44,71,2 script Utan Tribe Shaman 782,{
mes "Damtsuha Ombabaraka! Unba! Shi!";
mes "Sukatamba Aburumba! Umba! Shi!";
next;
+ mes "[Putsuchiritan]";
+ if(countitem(.@need)<.@amount){
+ mes "You're An Amba HacK0R!";
+ mes "I'm clearing your mind!";
+ //we reset the whole quest for the hacker
+ set event_umbala,0;
+ emotion e_swt,1;
+ close;
+ }
delitem .@need,.@amount;
+ if(!rand(10)){
+ getitem,910,1; //if failed get Garlet
+ mes "Your inner power has failed";
+ mes "to convert these objects";
+ mes "from nature into elemental essence...";
+ next;
+ mes "[Putsuchiritan]";
+ mes "Purify your mind and try again.";
+ close;
+ }
getitem .@gain,1;
- mes "[Putsuchiritan]";
mes "There. Your inner power has converted";
mes "these objects from nature into";
mes "elemental essence. Put";
@@ -825,10 +844,10 @@ um_in.gat,44,71,2 script Utan Tribe Shaman 782,{
}
mes "[Putsuchiritan]";
switch(.@need) {
- case 997: mes "I will dismantle your earth crystal"; break;
- case 995: mes "I will dismantle your frozen crystal"; break;
- case 994: mes "I will dismantle your heart of flame"; break;
- case 996: mes "I will dismantle your rough wind stone"; break;
+ case 997: mes "I will dismantle your earth crystal"; break;
+ case 995: mes "I will dismantle your frozen crystal"; break;
+ case 994: mes "I will dismantle your heart of flame"; break;
+ case 996: mes "I will dismantle your rough wind stone"; break;
}
mes "into its component essence.";
mes "Choose a number between 1 and 9.";
@@ -854,11 +873,15 @@ um_in.gat,44,71,2 script Utan Tribe Shaman 782,{
}
break;
}
- set .@num,.@num+rand(5);
- if(.@num>10)
- set .@num,.@num-10;
- if(.@num<5)
- set .@num,.@num+5;
+ set .@num,rand(1,10); //official amount chance
+ if(.@num == 1)
+ set .@num,10;
+ else if(.@num == 2 || .@num == 3)
+ set .@num,8;
+ else if(.@num < 7)
+ set .@num,7;
+ else
+ set .@num,6;
mes "[Putsuchiritan]";
mes "Please place the elemental stone";
mes "inside this holy circle. I will chant a";
@@ -872,9 +895,17 @@ um_in.gat,44,71,2 script Utan Tribe Shaman 782,{
mes "Anburaka Taburaka Taburakan! Unba Ra!";
mes "Onbaruzu Zan Kata! Unba Ka!";
next;
+ mes "[Putsuchiritan]";
+ if(countitem(.@need)<1){
+ mes "You're An Amba HacK0R!";
+ mes "I'm clearing your mind!";
+ //we reset the whole quest for the hacker
+ set event_umbala,0;
+ emotion e_swt,1;
+ close;
+ }
delitem .@need,1;
getitem .@gain,.@num;
- mes "[Putsuchiritan]";
mes "The elemental stone has been";
mes "dismantled into its natural";
mes "essence. Please put it to";