Code: Select all
MYSQL_RES* result = query.RunQuery2(Q_SELECT, "SELECT `quest_id`, `name`, `type`, `zone`, `level`, `enc_level`, `description`, `lua_script`, `completed_text`, `spawn_id` FROM `quests`");
char* script = 0;
script = row[7];and script will equal what was in row[7] which is the quest luascript ie.. "Quests/zone1/quest1.lua
now my issue is i want to prepend "c:\content\" the the lua script location the "c:\content\" will be either in rules or an ini file (to be determined later)
and will allow me to point the server to a different location for the lua scripts, so when running multiple servers there only has to be one copy of all the script files for this instance c:\content
how do i add to the varible `script` inorder to get the proper path