Page 1 of 1

${ini} Bug

Posted: Thu Apr 22, 2004 8:40 pm
by LordGiddion
This is a snipette of the ini

Code: Select all

[shortcut spells]
Lure=Lure Of Thunder
Snare=Atol`s Spectral Shackles
Nuke=Draught of Ice
This is the Code

Code: Select all

Sub BuildShortCuts
	/declare Shortcutlist local
	/varset Shortcutlist "${Ini[@IniFile,shortcut spells,-1,None]}" 
	/echo "@Shortcutlist"
/return
Based on the old $ini function and the TLO Post I expect Shortcutlist to be Lure|Snare|nuke|| what gets echo'd back is just Lure. Am I missing something here or is there some other way to get the list of keys?
BTW also tried it

Code: Select all

/varset Shortcutlist "${Ini[@IniFile,shortcut spells]}" 
With the same results

Posted: Thu Apr 22, 2004 8:43 pm
by Lax
It's designed to work the same as the old $ini, i'll have to look into it some more.

Posted: Fri Apr 23, 2004 2:20 am
by SomeEqDude
snippet from click.ini:

Code: Select all

[config]
usespell=1
Type from within EQ:
/echo ${Ini["click.ini","config","usespell","0"]}

echos the word "config", as if it is reading the first section.

Posted: Fri Apr 23, 2004 2:27 am
by Lax
yeah.. problem is all the quotes arent supported, rip those out ;)

Posted: Fri Apr 23, 2004 2:27 am
by SomeEqDude
Nevermind, guess it works if you remove all the " 's, but rathey icky since you can't include any strings with a comma in it.

Posted: Fri Apr 23, 2004 2:41 am
by Lax
${Ini} used to get a list of the keys will work next zip.