Jelajahi Sumber

- Updated docs about strmobinfo.
- Fixed an exploit in jobmaster.txt

Capuche 11 tahun lalu
induk
melakukan
45a7abcf4e
2 mengubah file dengan 4 tambahan dan 1 penghapusan
  1. 2 0
      doc/script_commands.txt
  2. 2 1
      npc/custom/jobmaster.txt

+ 2 - 0
doc/script_commands.txt

@@ -5637,6 +5637,8 @@ command, simply use 1 for type. Any other number won't be recognized.
 
 This function will return information about a monster record in the database, as 
 per 'db/(pre-)re/mob_db.txt'. Type is the kind of information returned. Valid types are:
+It will return 0 if there is no such monster (or the type value is invalid),
+or an empty string if you requested the monster's name.
 
  1 - 'english name' field in the database, a string.
  2 - 'japanese name' field in the database, a string.

+ 2 - 1
npc/custom/jobmaster.txt

@@ -131,7 +131,8 @@ function Job_Menu {
 			mes "You are now "+callfunc("F_InsertArticle",jobname(.@i))+"!";
 			if (.@i==4001 && .LastJob) set lastJob, Class;
 			jobchange .@i;
-			if (.@i==4001 || .@i==4023) resetlvl(1);
+			if (.@i==4001) resetlvl(1);
+			else if (.@i==Job_Baby) resetstatus;
 			specialeffect2 EF_ANGEL2; specialeffect2 EF_ELECTRIC;
 			if (.Platinum) callsub Get_Platinum;
 			close;