summaryrefslogtreecommitdiff
path: root/npc/018-2-2/main.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-12-20 03:08:00 -0200
committerJesusaves <cpntb1@ymail.com>2018-12-20 03:08:00 -0200
commit7a19fe62e46d85a134cf37825ce1374054211978 (patch)
tree823a5f90bccf5636b74921e406c916f0a57712b1 /npc/018-2-2/main.txt
parent06a78b572711e952474962aa76ed976d2e164a52 (diff)
downloadserverdata-7a19fe62e46d85a134cf37825ce1374054211978.tar.gz
serverdata-7a19fe62e46d85a134cf37825ce1374054211978.tar.bz2
serverdata-7a19fe62e46d85a134cf37825ce1374054211978.tar.xz
serverdata-7a19fe62e46d85a134cf37825ce1374054211978.zip
Register new Python formula, fix an error on Aeros Event Master
Diffstat (limited to 'npc/018-2-2/main.txt')
-rw-r--r--npc/018-2-2/main.txt11
1 files changed, 6 insertions, 5 deletions
diff --git a/npc/018-2-2/main.txt b/npc/018-2-2/main.txt
index 2d0c819c5..b4978d3ed 100644
--- a/npc/018-2-2/main.txt
+++ b/npc/018-2-2/main.txt
@@ -299,16 +299,17 @@ OnMaster14:
}
/*python
-df=[('Novice', 21),
- ('Intermed', 20),
- ('Advanc', 18),
- ('Expert', 15),
- ('Master', 15)]
+df=[('Novice', 21, 1),
+ ('Intermed', 20, 10),
+ ('Advanc', 18, 100),
+ ('Expert', 15, 1000),
+ ('Master', 15, 10000)]
for a in df:
i=0
while (i < a[1]):
print('On%s%d:' % (a[0], i))
+ print(' if (rand(0, 2000) >= readparam(Luk)+(strmobinfo(3,.%s_Mobs[%d])*5)+strmobinfo(7,.%s_Mobs[%d])) {getmapxy(.@m$, .@x, .@y, 0); makeitem(HeroCoin, %s, .@m$, .@x, .@y);}' % (a[0], i, a[0], i, a[2]))
print(' areamonster "018-2-2@%s", 20, 20, 220, 220, strmobinfo(1, .%s_Mobs[%d]), .%s_Mobs[%d], .%s_Ammo[%d], "#HH_CONTROLLER01::On%s%d"; end;' % (a[0][:1],a[0],i,a[0],i,a[0],i,a[0],i))
i+=1
*/