Jump to content
  • 0

Program for Editing Monsters?


Question

Posted

Is there like a program to edit Monster Data? It's tiring changing numbers in Notepad form.

 

I'm trying to down level every monster to like Max Lv 50~, since i've set max level for players to Lv 50 too.

2 answers to this question

Recommended Posts

Posted (edited)

Hey.. setting all mobs to lvl 50 seems a bit hard to do manually

I wrote you a php script to which does it for you

 

 
it contains a default renewal mob db with max monster lvl 50 too
 
here's the code found in the rar file:
 
<?php

$index = str_replace('\\', '/', realpath(dirname(__FILE__)));

$LV = 50;

$original_mob = "ID,Sprite_Name,kROName,iROName,LV,HP,SP,EXP,JEXP,Range1,ATK1,ATK2,DEF,MDEF,STR,AGI,VIT,INT,DEX,LUK,Range2,Range3,Scale,Race,Element,Mode,Speed,aDelay,aMotion,dMotion,MEXP,MVP1id,MVP1per,MVP2id,MVP2per,MVP3id,MVP3per,Drop1id,Drop1per,Drop2id,Drop2per,Drop3id,Drop3per,Drop4id,Drop4per,Drop5id,Drop5per,Drop6id,Drop6per,Drop7id,Drop7per,Drop8id,Drop8per,Drop9id,Drop9per,DropCardid,DropCardper";
$original_mob = explode(',', $original_mob);
$mob_db = file("".$index."/mob_db.txt");
foreach($mob_db as $mob) {
	$mob2 = explode(',', $mob);
	if(substr($mob, 0, 2) != "//" && count($mob2) == count($original_mob)) {
		for($i = 0; $i < count($mob2); $i++) $mobs[$original_mob[$i]] = $mob2[$i];
		$end = 0;
		foreach($original_mob as $key) {
			if(strpos(nl2br($mobs[$key]), '<br />') !== false) {
				$mobs[$key] = "".str_replace('<br />', '', nl2br($mobs[$key]))."";
				$end = 1;
			}
			if(empty($$key)) {
				echo "".$mobs[$key]."";
			} else {
				if($$key < $mobs[$key]) {
					echo "".$$key."";
				} else {
					echo "".$mobs[$key]."";
				}
			}
			if($end == 1) {	echo "<br>";	$end = 0;	} else {	echo ",";	}
		}
	} else {
		echo "$mob<br>";
	}
}

?>

 

Edited by Sunzuke

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...