Prechádzať zdrojové kódy

Fixing minor typo from
L2J/L2J_Server@ac426d90c3f02bb4f1916f1d23314c365c306907 preventing
multisells and other bypasses to be properly formed (NPC Object ID) fron
onTalk().

Zoey76 10 rokov pred
rodič
commit
fbc851dd62

+ 2 - 2
L2J_Server/java/com/l2jserver/gameserver/model/quest/Quest.java

@@ -624,7 +624,7 @@ public class Quest extends AbstractScript implements IIdentifiable
 			return;
 		}
 		player.setLastQuestNpcObject(npc.getObjectId());
-		showResult(player, res);
+		showResult(player, res, npc);
 	}
 	
 	/**
@@ -2643,7 +2643,7 @@ public class Quest extends AbstractScript implements IIdentifiable
 		{
 			if (npc != null)
 			{
-				content = content.replaceAll("%objectId%", Integer.toString(npc.getObjectId()));
+				content = content.replaceAll("%objectId%", String.valueOf(npc.getObjectId()));
 			}
 			
 			if (questwindow && (questId > 0) && (questId < 20000) && (questId != 999))