23 Jun 13, 08:08PM
Thats a nice idea @ DrauL/-xW-#KrAyC3*, quite simple to do, too.
The only major code change necessary to the script is function (alias) "loc".
Currently, its:
[cubescript]loc = [if $menuLocations [result (concatword (cl 5) "(" (cl 3) $arg1 (cl 5) ")")]][/cubescript]
Change it to:
[cubescript]loc = [
num = $numargs
if $num [
a1 = $arg1
if (> $num 1) [
a2 = $arg2
] [ a2 = [] ]
if $menuLocations [
result (concatword (cl 5) "(" (cl 3) $a1 (cl 5) ")" (if (&& (> $num 1) $a2) [result (concatword (cl 5) " [" (cl 4) "hitfixed" (cl 5) "]")]))
]
]
][/cubescript]
Now to actually make the w00p clan menu item show the "hitfixed" flag, all you have to do is provide a non-zero 2nd argument to the "loc" function.
Currently, its:
[cubescript]menuitemvar [concatword (cl 1) "w00p " (loc "FR/UK")][showmenu "w00p"][/cubescript]
Change it to:
[cubescript]menuitemvar [concatword (cl 1) "w00p " (loc "FR/UK" 1)][showmenu "w00p"][/cubescript]
Notice the extra 1 in there. Simply add a 1 to the proper servers throughout the script. Assuming you do it right, you'll see something like this:
I also did it to Noobicus's server just as another example. Here is the full script if you don't wanna bother with manually making the edits. Also, have a diff.
The only major code change necessary to the script is function (alias) "loc".
Currently, its:
[cubescript]loc = [if $menuLocations [result (concatword (cl 5) "(" (cl 3) $arg1 (cl 5) ")")]][/cubescript]
Change it to:
[cubescript]loc = [
num = $numargs
if $num [
a1 = $arg1
if (> $num 1) [
a2 = $arg2
] [ a2 = [] ]
if $menuLocations [
result (concatword (cl 5) "(" (cl 3) $a1 (cl 5) ")" (if (&& (> $num 1) $a2) [result (concatword (cl 5) " [" (cl 4) "hitfixed" (cl 5) "]")]))
]
]
][/cubescript]
Now to actually make the w00p clan menu item show the "hitfixed" flag, all you have to do is provide a non-zero 2nd argument to the "loc" function.
Currently, its:
[cubescript]menuitemvar [concatword (cl 1) "w00p " (loc "FR/UK")][showmenu "w00p"][/cubescript]
Change it to:
[cubescript]menuitemvar [concatword (cl 1) "w00p " (loc "FR/UK" 1)][showmenu "w00p"][/cubescript]
Notice the extra 1 in there. Simply add a 1 to the proper servers throughout the script. Assuming you do it right, you'll see something like this:
I also did it to Noobicus's server just as another example. Here is the full script if you don't wanna bother with manually making the edits. Also, have a diff.