From 7a19fe62e46d85a134cf37825ce1374054211978 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 20 Dec 2018 03:08:00 -0200 Subject: Register new Python formula, fix an error on Aeros Event Master --- npc/018-2-2/main.txt | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'npc/018-2-2') 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 */ -- cgit v1.2.3-70-g09d2