summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-11-16 16:30:28 -0200
committershennetsind <ind@henn.et>2013-11-16 16:30:28 -0200
commit899347ad8a74af01cdeebf24795195cd5a3fdfdc (patch)
treedf53ae694f47a261df35a4a8166f03a6731d46f0 /tools
parentaee2f6317e1c927847993801b5973d7e2e27a418 (diff)
parent4943bc87d899cdc42029a841ff609ebeb55ae489 (diff)
downloadhercules-899347ad8a74af01cdeebf24795195cd5a3fdfdc.tar.gz
hercules-899347ad8a74af01cdeebf24795195cd5a3fdfdc.tar.bz2
hercules-899347ad8a74af01cdeebf24795195cd5a3fdfdc.tar.xz
hercules-899347ad8a74af01cdeebf24795195cd5a3fdfdc.zip
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Diffstat (limited to 'tools')
-rwxr-xr-xtools/itemdbconverter.pl36
1 files changed, 18 insertions, 18 deletions
diff --git a/tools/itemdbconverter.pl b/tools/itemdbconverter.pl
index 54c17262d..13805c09e 100755
--- a/tools/itemdbconverter.pl
+++ b/tools/itemdbconverter.pl
@@ -74,25 +74,25 @@ sub parsedb (@) {
# ID,AegisName,Name,Type,Buy,Sell,Weight,ATK,DEF,Range,Slots,Job,Upper,Gender,Loc,wLV,eLV,Refineable,View,{ Script },{ OnEquip_Script },{ OnUnequip_Script }
if( $_ =~ qr/^
(?<prefix>(?:\/\/[^0-9]*)?)
- (?<ID>[0-9]+),
+ (?<ID>[0-9]+)[^,]*,
(?<AegisName>[^,]+),
- (?<Name>[^,]+),
- (?<Type>[0-9]+),
- (?<Buy>[0-9]*),
- (?<Sell>[0-9]*),
- (?<Weight>[0-9]*),
- (?<ATK>[0-9-]*)(?<hasmatk>:(?<MATK>[0-9-]*))?,
- (?<DEF>[0-9-]*),
- (?<Range>[0-9]*),
- (?<Slots>[0-9]*),
- (?<Job>[x0-9A-Fa-f]*),
- (?<Upper>[0-9]*),
- (?<Gender>[0-9]*),
- (?<Loc>[0-9]*),
- (?<wLV>[0-9]*),
- (?<eLV>[0-9]*)(?<hasmaxlv>:(?<eLVmax>[0-9]*))?,
- (?<Refineable>[0-9]*),
- (?<View>[0-9]*),
+ (?<Name>[^,]+),[\s\t]*
+ (?<Type>[0-9]+)[^,]*,[\s\t]*
+ (?<Buy>[0-9]*)[^,]*,[\s\t]*
+ (?<Sell>[0-9]*)[^,]*,[\s\t]*
+ (?<Weight>[0-9]*)[^,]*,[\s\t]*
+ (?<ATK>[0-9-]*)[^,:]*(?<hasmatk>:[\s\t]*(?<MATK>[0-9-]*))?[^,]*,[\s\t]*
+ (?<DEF>[0-9-]*)[^,]*,[\s\t]*
+ (?<Range>[0-9]*)[^,]*,[\s\t]*
+ (?<Slots>[0-9]*)[^,]*,[\s\t]*
+ (?<Job>[x0-9A-Fa-f]*)[^,]*,[\s\t]*
+ (?<Upper>[0-9]*)[^,]*,[\s\t]*
+ (?<Gender>[0-9]*)[^,]*,[\s\t]*
+ (?<Loc>[0-9]*)[^,]*,[\s\t]*
+ (?<wLV>[0-9]*)[^,]*,[\s\t]*
+ (?<eLV>[0-9]*)[^,:]*(?<hasmaxlv>:[\s\t]*(?<eLVmax>[0-9]*))?[^,]*,[\s\t]*
+ (?<Refineable>[0-9]*)[^,]*,[\s\t]*
+ (?<View>[0-9]*)[^,]*,[\s\t]*
{(?<Script>.*)},
{(?<OnEquip>.*)},
{(?<OnUnequip>.*)}