L2JMobius

Vanguard search.cmd

champzix1 · 2 · 1713

Offline champzix1

  • Baron
  • *****
    • Posts: 232
Additions for search.cmd to support spaces, we can now search any text with spaces. eg. "scroll of escape"

Code: [Select]
diff --git a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/stats/items/search.cmd b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/stats/items/search.cmd
index 4afd43d..ab4332b 100644
--- a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/stats/items/search.cmd
+++ b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/stats/items/search.cmd
@@ -5,6 +5,6 @@
 set /p text="Enter search text: "
 echo.
 echo.search text "%text%" result:
-findstr /I /N %text% *.xml
+findstr /I /N /C:"%text%" *.xml
 echo.
 goto search
\ No newline at end of file
diff --git a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/stats/npcs/search.cmd b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/stats/npcs/search.cmd
index 4afd43d..ab4332b 100644
--- a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/stats/npcs/search.cmd
+++ b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/stats/npcs/search.cmd
@@ -5,6 +5,6 @@
 set /p text="Enter search text: "
 echo.
 echo.search text "%text%" result:
-findstr /I /N %text% *.xml
+findstr /I /N /C:"%text%" *.xml
 echo.
 goto search
\ No newline at end of file
diff --git a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/stats/skills/search.cmd b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/stats/skills/search.cmd
index 4afd43d..ab4332b 100644
--- a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/stats/skills/search.cmd
+++ b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/stats/skills/search.cmd
@@ -5,6 +5,6 @@
 set /p text="Enter search text: "
 echo.
 echo.search text "%text%" result:
-findstr /I /N %text% *.xml
+findstr /I /N /C:"%text%" *.xml
 echo.
 goto search
\ No newline at end of file