Allowing commas in perl quest text
Commas haven't been able to be used in quest text because they are used as a delimiter for the command queue. The idea behind this is to always assume that quest::say and quest::echo take a single argument. Parser::ExCommands() seems to handle everything fine as long as num_args is set to 1 for these commands. Changes below:
zone/embparser.cpp, line 387, replace: Code:
size_t num_args = std::count(args.begin(), args.end(), ',') + 1; Code:
size_t num_args = 1; |
This was fixed quite a while ago... what version are you using?
|
I am using 0.5.5-RC2, downloaded from http://cvs.biosprite.net yesterday. This post was in response to http://www.eqemulator.net/forums/viewtopic.php?t=13874 . I tested the script sandy had posted, and it crashed when used in conjunction with other things (handing items to NPCs, summoning items, ...).
|
All times are GMT -4. The time now is 02:39 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.