summaryrefslogtreecommitdiff
path: root/npc/easter/2010/eggs.txt
diff options
context:
space:
mode:
authorFreeyorp <Freeyorp101@hotmail.com>2010-04-25 12:59:45 +1200
committerFreeyorp <Freeyorp101@hotmail.com>2010-05-24 23:33:30 +1200
commit0ddffdab42811e72c48ce3a12f0fb0edaaae4f0f (patch)
treede7b90630031ce9655f12aed47e182078cddd397 /npc/easter/2010/eggs.txt
parentd661fae8bf54ed1965e833d58a2caec24b1f8961 (diff)
downloadserverdata-0ddffdab42811e72c48ce3a12f0fb0edaaae4f0f.tar.gz
serverdata-0ddffdab42811e72c48ce3a12f0fb0edaaae4f0f.tar.bz2
serverdata-0ddffdab42811e72c48ce3a12f0fb0edaaae4f0f.tar.xz
serverdata-0ddffdab42811e72c48ce3a12f0fb0edaaae4f0f.zip
Modify the manner in which needles are given out to a more sane method
Diffstat (limited to 'npc/easter/2010/eggs.txt')
-rwxr-xr-xnpc/easter/2010/eggs.txt14
1 files changed, 13 insertions, 1 deletions
diff --git a/npc/easter/2010/eggs.txt b/npc/easter/2010/eggs.txt
index 5f174beb..0b1af508 100755
--- a/npc/easter/2010/eggs.txt
+++ b/npc/easter/2010/eggs.txt
@@ -76,8 +76,20 @@
set @obj, 12;
callfunc "Easter2010Loc_Check1";
if (@result != 0) close;
- if (rand(100) == 0) getitem "BentNeedle", 1;
+ if ((Easter_2010_QuestState >> E10_LOC_NEEDLE_SHIFT) & E10_LOC_NEEDLE_MASK == ($Easter_2010_Npc_State2 >> E10_NEEDLE_SHIFT) & E10_NEEDLE_MASK && rand(100) == 0) goto L_Needle;
close;
+
+L_Needle:
+ getitem "BentNeedle", 1;
+ set Easter_2010_QuestState, Easter_2010_QuestState & ~(E10_LOC_NEEDLE_MASK << E10_LOC_NEEDLE_SHIFT) | (rand(E10_LOC_NEEDLE_MASK) << E10_LOC_NEEDLE_SHIFT);
+ end;
+
+OnInit:
+ initnpctimer;
+
+OnTimer300000:
+ set $Easter_2010_Npc_State2, $Easter_2010_Npc_State2 & ~(E10_NEEDLE_MASK << E10_NEEDLE_SHIFT) | (rand(E10_NEEDLE_MASK) << E10_NEEDLE_SHIFT);
+ setnpctimer 0;
}
008-1.gat,88,48,0 script Target 127,{