Jump to content
  • 0

Program for Editing Monsters?


a p

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   0
  • Joined:  09/15/13
  • Last Seen:  

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.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  76
  • Reputation:   3
  • Joined:  02/24/12
  • Last Seen:  

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
Link to comment
Share on other sites

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.

×
×
  • Create New...