' instead of " in player:target_NPC and player:merchant
Posted: Mon Mar 29, 2010 7:40 pm
I noticed I've been encountering more and more NPCs with " in their names such as "Anemone" Tadesha.
When running createpath.lua and pressing keypad 4 or 5 it creates waypoint entries that wont work. For instance;
I've been changing them manually like so;
but it would be good if createpath.lua used ' by default. I can't see any downside, off the top of my head.
You just need to change lines 29 and 30 of createpath.lua to;
Thank you.
When running createpath.lua and pressing keypad 4 or 5 it creates waypoint entries that wont work. For instance;
Code: Select all
player:target_NPC(""Anemone" Tadesha");
player:merchant(""Anemone" Tadesha");Code: Select all
player:target_NPC('"Anemone" Tadesha');
player:merchant('"Anemone" Tadesha');You just need to change lines 29 and 30 of createpath.lua to;
Code: Select all
p_merchant_command = "player:merchant(\'%s\');";
p_targetNPC_command = "player:target_NPC(\'%s\');";