User panel stuff on forum
  14 posts on 1 page  1
Advanced Configuration
2007-10-14, 03:07
Member
137 posts

Registered:
Sep 2006
Ok this is what i got(from strife eq260.cfg).
Who could help me add the lines to make it report cells and/or rox if over 10 and got no weapon? So its easier to shot m8s for ammo.
Im redoing this script but i post original so other also can change ez if they want, guessing alot of ppl base their cfg's on this one. (im not good at this codethingy i just change the colours and add and remove stuff

Would be very appriciated

edit: Oh, and it should seperate from the other cells and rox, as in having a weapon. So that i could colour theese rox and cells. But still not have to have coloured if carrying a rl or lg. Mayby if health under 10 carrying lg and got more then 20cells (this last is utopia i guess But i want it to differ from $rockets.

alias _report "if $health < 1 then _lost else _report1"
alias _report1 "if $qt$powerups$qt = $qt$tp_name_none$qt then _report2 else _reportp2"
alias _report2 "if $bestweapon isin $tp_name_sg|$tp_name_ng then .report3 else if $tp_name_lg isin $qt$weapons$qt then _report4 else .report2"
alias _report4 "if $cells > 14 then _report5 else .report2"
alias _report5 "if $bestweapon = $qt$tp_name_lg$qt then .report2 else .report"
alias _reportp2 "if $bestweapon isin $tp_name_sg|$tp_name_ng then _reportpow else if $tp_name_lg isin $qt$weapons$qt then _reportp4 else _reportpowwpn"
alias _reportp4 "if $cells > 14 then _reportp5 else _reportpowwpn"
alias _reportp5 "if $bestweapon = $qt$tp_name_lg$qt then _reportpowwpn else _reportpowrlg"
alias _reportpow "if $qt$powerups$qt == $qt$tp_name_quad$qt then .reportpowq else _reportpow2"
alias _reportpow2 "if $qt$powerups$qt == $qt$tp_name_pent$qt then .reportpowp else _reportpow3"
alias _reportpow3 "if $qt$powerups$qt == $qt$tp_name_ring$qt then .reportpowr else _reportpow4"
alias _reportpow4 "if $qt$tp_name_quad$qt !isin $qt$powerups$qt then .reportpowpr else _reportpow5"
alias _reportpow5 "if $qt$tp_name_ring$qt !isin $qt$powerups$qt then .reportpowqp else _reportpow6"
alias _reportpow6 "if $qt$tp_name_pent$qt !isin $qt$powerups$qt then .reportpowqr else .reportpowqpr"
alias _reportpowwpn "if $qt$powerups$qt == $qt$tp_name_quad$qt then .reportpowwpnq else _reportpowwpn2"
alias _reportpowwpn2 "if $qt$powerups$qt == $qt$tp_name_pent$qt then .reportpowwpnp else _reportpowwpn3"
alias _reportpowwpn3 "if $qt$powerups$qt == $qt$tp_name_ring$qt then .reportpowwpnr else _reportpowwpn4"
alias _reportpowwpn4 "if $qt$tp_name_quad$qt !isin $qt$powerups$qt then .reportpowwpnpr else _reportpowwpn5"
alias _reportpowwpn5 "if $qt$tp_name_ring$qt !isin $qt$powerups$qt then .reportpowwpnqp else _reportpowwpn6"
alias _reportpowwpn6 "if $qt$tp_name_pent$qt !isin $qt$powerups$qt then .reportpowwpnqr else .reportpowwpnqpr"
alias _reportpowrlg "if $qt$powerups$qt == $qt$tp_name_quad$qt then .reportpowrlgq else _reportpowrlg2"
alias _reportpowrlg2 "if $qt$powerups$qt == $qt$tp_name_pent$qt then .reportpowrlgp else _reportpowrlg3"
alias _reportpowrlg3 "if $qt$powerups$qt == $qt$tp_name_ring$qt then .reportpowrlgr else _reportpowrlg4"
alias _reportpowrlg4 "if $qt$tp_name_quad$qt !isin $qt$powerups$qt then .reportpowrlgpr else _reportpowrlg5"
alias _reportpowrlg5 "if $qt$tp_name_ring$qt !isin $qt$powerups$qt then .reportpowrlgqp else _reportpowrlg6"
alias _reportpowrlg6 "if $qt$tp_name_pent$qt !isin $qt$powerups$qt then .reportpowrlgqr else .reportpowrlgqpr"


alias .report "say_team $\$nick $eq_blue %A%a/%h $l rlg:$rockets"
alias .report2 "say_team $\$nick $eq_blue %A%a/%h $l %b"
alias .report3 "say_team $\$nick $eq_blue %A%a/%h $l"
alias .reportpowq "say_team $\$nick $eq_blue {q} %A%a/%h $l"
alias .reportpowp "say_team $\$nick $eq_blue {p} %A%a/%h $l"
alias .reportpowr "say_team $\$nick $eq_blue {r} %A%a/%h $l"
alias .reportpowqp "say_team $\$nick $eq_blue {qp} %A%a/%h $l"
alias .reportpowqr "say_team $\$nick $eq_blue {qr} %A%a/%h $l"
alias .reportpowpr "say_team $\$nick $eq_blue {pr} %A%a/%h $l"
alias .reportpowqpr "say_team $\$nick $eq_blue {qpr} %A%a/%h $l"
alias .reportpowwpnq "say_team $\$nick $eq_blue {q} %A%a/%h $l %b"
alias .reportpowwpnp "say_team $\$nick $eq_blue {p} %A%a/%h $l %b"
alias .reportpowwpnr "say_team $\$nick $eq_blue {r} %A%a/%h $l %b"
alias .reportpowwpnqp "say_team $\$nick $eq_blue {qp} %A%a/%h $l %b"
alias .reportpowwpnqr "say_team $\$nick $eq_blue {qr} %A%a/%h $l %b"
alias .reportpowwpnpr "say_team $\$nick $eq_blue {pr} %A%a/%h $l %b"
alias .reportpowwpnqpr "say_team $\$nick $eq_blue {qpr} %A%a/%h $l %b"
alias .reportpowrlgq "say_team $\$nick $eq_blue {q} %A%a/%h $l rlg:$rockets"
alias .reportpowrlgp "say_team $\$nick $eq_blue {p} %A%a/%h $l rlg:$rockets"
alias .reportpowrlgr "say_team $\$nick $eq_blue {r} %A%a/%h $l rlg:$rockets"
alias .reportpowrlgqp "say_team $\$nick $eq_blue {qp} %A%a/%h $l rlg:$rockets"
alias .reportpowrlgqr "say_team $\$nick $eq_blue {qr} %A%a/%h $l rlg:$rockets"
alias .reportpowrlgpr "say_team $\$nick $eq_blue {pr} %A%a/%h $l rlg:$rockets"
alias .reportpowrlgqpr "say_team $\$nick $eq_blue {qpr} %A%a/%h $l rlg:$rockets"
2007-10-14, 10:50
Member
126 posts

Registered:
Jun 2007
I think thats way to farfetched, easier to just report on ventrilo, and on mixes it's usually unclear even with this script.
2007-10-14, 12:38
Member
284 posts

Registered:
Oct 2006
alias .reportAmmo "if $rockets > 10 then .something else .somethingElse"

And for all those things you want to do, I really recommend you learn simple scripting and macros, ezquake manual is a good source and all you need.

A much easier option that pretty much does the same thing is to add that functionality to take-my-pack message:

take my pack rl:rox
take my pack lg:cells
take my pack rlg:rox/cells
take my pack rox
take my pack cells
take my pack rox/cells

I think that the burden is on the one who has something to give and for the one that needs something to spam need...
2007-10-14, 13:53
Member
126 posts

Registered:
Jun 2007
alias _bore "if $health < 1 then _bore2 else if $qt$tp_name_rl$qt isin $qt$weapons$qt then _bore1 else _bore2"
alias _bore1 "say_team $\$nick {&c0ffdropping pack&cfff} $[{%l}$]"
alias _bore2 "say_team $\$nick {&c0ffpacks&cfff} $[{%d}$] %E"

My pack script, in case you wanna follow up on niomics idea.
2007-10-14, 16:50
Member
137 posts

Registered:
Sep 2006
Well, help appriciated. BUT, i have no interest in learning to program this kind of stuff to get one thing accomplished (im guessing its 10min work for someone skilled, and would take me 2 full days to learn if lucky, just to not use it again when done..
And i dont want the "take pack" as it demand someone to press just that, when most ppl use report allways(and would remain on the same button, just enhanced) (take pack @ also somewhat puts u in a spot where u need to remain in that loc, as a simple report give the other guys the option to kill u, but not thinking u will reamain where reported, but play along as normal or seeking u out)
There are to many different kind of mess i think already, so getting like pink ammo for ppl without weapon in the report would clean things up, and give ppl a chance to see where xtra ammo may be without the need for mate to willingly press kill me or take my pack(or know what gooing on).. Should be faster and not be in the way.
Im 99.5% satisfied with my cfg now, this is the only remaining part

oh marshall, what would be unclear about mar @ [sng tele] cells:35 ? for a m8 with lg without cells at ra.. he would kill u faster then fast (if reading at all) And we dont use vent in my team.

Is this possible, or should i forget about this? Dont want any new buttons.

Im guessing what niomic wrote is somekind of start? =) alias .reportAmmo "if $rockets > 10 then .something else .somethingElse" Could i just paste .reportAmmo in everyline then of my reports? and make alias for .something n .somethingElse?
2007-10-14, 17:02
Member
126 posts

Registered:
Jun 2007
Hoder can you pastebin your config somewhere pls?

http://pastebin.com/m2fe9a36d is mine but i just incorporated your report in it
2007-10-14, 17:11
Member
518 posts

Registered:
Jan 2006
I think this will work Hoder, remove the old .report3 alias and replace it with this. ( I didn't test it )


alias .report3 "if $rockets > 0 then .report3c else if $cells > 0 then .report3d else .report3b"

alias .report3b "say_team $\$nick $eq_blue %A%a/%h $l"
alias .report3c "say_team $\$nick $eq_blue %A%a/%h $l rox:$rockets"
alias .report3d "say_team $\$nick $eq_blue %A%a/%h $l cells:$cells"
2007-10-14, 17:26
Member
137 posts

Registered:
Sep 2006
cool, ill test in in an hour let u know then
2007-10-14, 17:34
Member
137 posts

Registered:
Sep 2006
YESSA, thx murdoc. Seems to do the trick No new fancy report, just enhanced the previos report. Watch out ppl with ammo and no weapons
2007-10-14, 17:38
Member
518 posts

Registered:
Jan 2006
2007-10-14, 17:45
Member
137 posts

Registered:
Sep 2006
Doh, allmost possible to make it report both also? when got both? and never get like rox:0 cells:10

Now it only show one of the ammotypes. Its great but not perfect


edit: hmm it doesnt report cells or rox after taking sng guessing the same goes for all weapons.. i just want lg and rl to change this. edit2: ng i can take without blocking this info
2007-10-14, 18:09
Member
137 posts

Registered:
Sep 2006
hmm, i actually think ill make it show both, as its easier to see rox:0 cell:10 and know what up, then cell:10. But that the weaponpickup blocks ammo to be shown needs fixin


edit: =) i changed back to not showing nonexisting ammo.

guess there is some simpler way but this is what i can make from what murdoc gave me:

(working script!)
alias .report3 "if $rockets > 4 then .report3c else if $cells > 10 then .report3d else .report3b"
alias .report3b "say_team $\$nick $eq_blue %A%a/%h $l"
alias .report3c "if $cells > 10 then .report3f else .report3g"
alias .report3d "if $rockets > 5 then .report3f else .report3h"
alias .report3e "say_team $\$nick $eq_blue %A%a/%h $l rox:$rockets:$cells"
alias .report3f "say_team $\$nick $eq_blue %A%a/%h $l rox:$rockets:$cells"
alias .report3g "say_team $\$nick $eq_blue %A%a/%h $l rox:$rockets"
alias .report3h "say_team $\$nick $eq_blue %A%a/%h $l cells:$cells"

couldent get "and" statement to work (not possible?)

do i have to add this to theese too? to get this info if carrying ssg or sng? My mind is getting dark now, so ill give this a rest for a day again i think :-) how can ppl like writing this crappy code crap shit hate :>


alias _report "if $health < 1 then _lost else _report1"
alias _report1 "if $qt$powerups$qt = $qt$tp_name_none$qt then _report2 else _reportp2"
alias _report2 "if $bestweapon isin $tp_name_sg|$tp_name_ng then .report3 else if $tp_name_lg isin $qt$weapons$qt then _report4 else .report2"
alias _report4 "if $cells > -1 then _report5 else .report2"
alias _report5 "if $bestweapon = $qt$tp_name_lg$qt then .report2 else .report"
alias _reportp2 "if $bestweapon isin $tp_name_sg|$tp_name_ng then _reportpow else if $tp_name_lg isin $qt$weapons$qt then _reportp4 else _reportpowwpn"
alias _reportp4 "if $cells > 14 then _reportp5 else _reportpowwpn"
alias _reportp5 "if $bestweapon = $qt$tp_name_lg$qt then _reportpowwpn else _reportpowrlg"
alias _reportpow "if $qt$powerups$qt == $qt$tp_name_quad$qt then .reportpowq else _reportpow2"
alias _reportpow2 "if $qt$powerups$qt == $qt$tp_name_pent$qt then .reportpowp else _reportpow3"
alias _reportpow3 "if $qt$powerups$qt == $qt$tp_name_ring$qt then .reportpowr else _reportpow4"
alias _reportpow4 "if $qt$tp_name_quad$qt !isin $qt$powerups$qt then .reportpowpr else _reportpow5"
alias _reportpow5 "if $qt$tp_name_ring$qt !isin $qt$powerups$qt then .reportpowqp else _reportpow6"
alias _reportpow6 "if $qt$tp_name_pent$qt !isin $qt$powerups$qt then .reportpowqr else .reportpowqpr"
alias _reportpowrlg "if $qt$powerups$qt == $qt$tp_name_quad$qt then .reportpowrlgq else _reportpowrlg2"
alias _reportpowrlg2 "if $qt$powerups$qt == $qt$tp_name_pent$qt then .reportpowrlgp else _reportpowrlg3"
alias _reportpowrlg3 "if $qt$powerups$qt == $qt$tp_name_ring$qt then .reportpowrlgr else _reportpowrlg4"
alias _reportpowrlg4 "if $qt$tp_name_quad$qt !isin $qt$powerups$qt then .reportpowrlgpr else _reportpowrlg5"
alias _reportpowrlg5 "if $qt$tp_name_ring$qt !isin $qt$powerups$qt then .reportpowrlgqp else _reportpowrlg6"
alias _reportpowrlg6 "if $qt$tp_name_pent$qt !isin $qt$powerups$qt then .reportpowrlgqr else .reportpowrlgqpr"
alias _reportpowwpn "if $qt$powerups$qt == $qt$tp_name_quad$qt then .reportpowwpnq else _reportpowwpn2"
alias _reportpowwpn2 "if $qt$powerups$qt == $qt$tp_name_pent$qt then .reportpowwpnp else _reportpowwpn3"
alias _reportpowwpn3 "if $qt$powerups$qt == $qt$tp_name_ring$qt then .reportpowwpnr else _reportpowwpn4"
alias _reportpowwpn4 "if $qt$tp_name_quad$qt !isin $qt$powerups$qt then .reportpowwpnpr else _reportpowwpn5"
alias _reportpowwpn5 "if $qt$tp_name_ring$qt !isin $qt$powerups$qt then .reportpowwpnqp else _reportpowwpn6"
alias _reportpowwpn6
2007-10-14, 20:05
Member
518 posts

Registered:
Jan 2006
you have to edit this line to make the message report work after picking up sng

alias _report2 "if $bestweapon isin $tp_name_sg|$tp_name_ssg|$tp_name_ng|$tp_name_sng then .report3 else if $tp_name_lg isin $qt$weapons$qt then _report4 else .report2"


I think this will work for you hoder


alias .report3 "if $rockets > 0 then .reportcheck else if $cells > 0 then .reportcheck2 else .report3b"


alias .reportcheck "if $cells < 1 then .reportrockets else .reportcheck2"
alias .reportcheck2 "if $rockets < 1 then .reportcells else .reportboth"

alias .report3b "say_team $\$nick $eq_blue %A%a/%h $l"
alias .reportrockets "say_team $\$nick $eq_blue %A%a/%h $l rox:$rockets"
alias .reportcells "say_team $\$nick $eq_blue %A%a/%h $l cells:$cells"
alias .reportboth "say_team $\$nick $eq_blue %A%a/%h $l rox:$rockets cells:$cells"
2007-10-14, 20:44
Member
137 posts

Registered:
Sep 2006
YES
Thank you murdoc, now it works perfect
  14 posts on 1 page  1