#! /usr/bin/env python3 # -*- coding: utf8 -*- # # Copyright (C) 2010-2011 Evol Online # Copyright (C) 2018 TMW-2 # Author: Andrei Karas (4144) # Author: Jesusalva # # The use of the data import datetime import sys stgen=True aeros=False bifs=False skipCI=False wikib=open("EleMonsters.html", "w") wikib.write('
"+content+"" return "
"+content+"
" buff+="HP Range: %s ~ %s" return buff def mb_rdstat(mb): buff="
\n" % (lhp, hhp) buff+="ATK Range: %s ~ %s
\n" % (lat, hat) buff+="Maximum XP: %s ~ %s
\n" % (lxp, hxp) buff+="DEF: %s / %s
\n" % (dfn, mdf) buff+="Drop, Move, Elegen, aspd
\n" buff+="
" buff+="%s\n" % (mb.str) buff+="%s\n" % (mb.agi) buff+="%s\n" % (mb.vit) buff+="%s\n" % (mb.int) buff+="%s\n" % (mb.dex) buff+="%s\n" % (mb.luk) buff+="" return buff def mb_rdmisc(mb): buff="" if "agr" in mb.st.lower(): buff+="View Range: %s\n" % (mb.view) buff+="Attack Range: %s\n" % (mb.range) buff+="AtkDelay: %s ms\n" % (mb.delay) buff+="Move speed: %s ms\n" % (mb.move) buff+="Element Level: %d\n" % (mb.elel) return buff def mb_rdrw(mb): buff="" buff+="%s\n" % (mb.xp.replace(' ', ' ')) buff+="%s\n" % (mb.jp.replace(' ', ' ')) try: buff+="MobPoints: %d\n" % (int(mb.mobpt)*11/10) except: pass return buff def mb_rddrop(mb): buff="" tdr=0 for ax in mb.drops: # Ignore disabled drops if ax[0].startswith("//"): continue # Write drop try: buff+=ax[0]+': ' + str(int(ax[1])/100.0) + ' %\n' tdr+=int(ax[1]) except IndexError: print("Fatal: invalid %s mob with %s drops" % (mb.name, str(ax))) exit(1) except: print("[Warning] %s incorrect drop: %s" % (mb.name, str(ax))) buff+=ax[0]+': ' + ax[1] + ' ppm\n' # Save to SysDrops SysDrops.append([ax[0], ax[1], mb.name]) if tdr < 500: print("[INFO] %s has %d/500 drops. Disqualified for Realm of Drops." % (mb.name, tdr)) return buff showHeader() testMobs() wikib.write('
Level | Stats 1 | Stats 2 | Average |
---|---|---|---|
00 | str: 2 agi: 5 vit: 7 int:1 dex: 6 luk: 3 | str: 2 agi: 5 vit: 7 int:1 dex: 6 luk: 3 | str: 2 agi: 5 vit: 7 int:1 dex: 6 luk: 3 |
10 | str:15 agi:10 vit: 5 int:1 dex:10 luk: 4 | str:11 agi:11 vit: 6 int:1 dex:11 luk: 7 | str:13 agi:11 vit: 5 int:1 dex:10 luk: 6 |
20 | str:19 agi:10 vit:10 int:1 dex:20 luk:10 | str:14 agi:19 vit: 8 int:1 dex:17 luk:11 | str:17 agi:14 vit: 9 int:1 dex:18 luk:11 |
30 | str:25 agi:30 vit:10 int:1 dex:20 luk:10 | str:22 agi:28 vit:12 int:1 dex:21 luk:15 | str:24 agi:29 vit:11 int:1 dex:20 luk:13 |
40 | str:38 agi:30 vit:20 int:1 dex:25 luk:17 | str:28 agi:35 vit:14 int:1 dex:32 luk:21 | str:33 agi:33 vit:17 int:1 dex:28 luk:19 |
50 | str:50 agi:40 vit:30 int:1 dex:25 luk:18 | str:41 agi:41 vit:15 int:1 dex:41 luk:26 | str:46 agi:41 vit:22 int:1 dex:33 luk:27 |
60 | str:54 agi:50 vit:40 int:1 dex:35 luk:20 | str:52 agi:52 vit:16 int:1 dex:45 luk:32 | str:53 agi:51 vit:28 int:1 dex:40 luk:26 |
70 | str:60 agi:60 vit:43 int:1 dex:50 luk:20 | str:61 agi:61 vit:22 int:1 dex:51 luk:38 | str:60 agi:61 vit:33 int:1 dex:50 luk:29 |
80 | str:80 agi:60 vit:50 int:1 dex:50 luk:25 | str:65 agi:71 vit:32 int:1 dex:60 luk:41 | str:72 agi:66 vit:41 int:1 dex:55 luk:33 |
90 | str:80 agi:70 vit:60 int:1 dex:60 luk:31 | str:71 agi:71 vit:41 int:1 dex:71 luk:51 | str:76 agi:70 vit:50 int:1 dex:66 luk:41 |
100 | str:90 agi:80 vit:69 int:1 dex:60 luk:31 | str:71 agi:81 vit:42 int:1 dex:81 luk:61 | str:81 agi:80 vit:56 int:1 dex:70 luk:46 |
110 | str:90 agi:90 vit:69 int:1 dex:70 luk:35 | str:82 agi:82 vit:50 int:1 dex:82 luk:65 | str:86 agi:86 vit:60 int:1 dex:76 luk:50 |
120 | str:99 agi:90 vit:69 int:1 dex:70 luk:45 | str:86 agi:86 vit:51 int:1 dex:86 luk:68 | str:93 agi:88 vit:60 int:1 dex:78 luk:56 |
130 | str:99 agi:91 vit:75 int:1 dex:70 luk:55 | str:91 agi:90 vit:51 int:1 dex:90 luk:68 | str:95 agi:91 vit:63 int:1 dex:80 luk:61 |
%s | %02d |
%s | %02d |
%s | %02d |
%s | %02d |
%s | %02d |
%s | %02d |
%s | %02d |
%s | %02d |
%s | %02d |