Archived copy of warcraft-source.com, the Warcraft: Source (WCS) forum (2007–2011), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2010-09-01 (original capture). Home · Forum · All archived topics · Downloads

Author Topic: Fixing your raceinfo say command.  (Read 134 times)

MiB

  • Custom Coder
  • Level 7 Expert
  • Posts: 1039
Fixing your raceinfo say command.
« on: July 26, 2010, 07:02:13 AM »
First find this line in your es_WCSraces.txt file.
Code: [Select]
  es_xexists wcs_exists command raceinfo
  if (server_var(wcs_exists) = 0) then es_xregsaycmd raceinfo wcs/WCSraces/wcs_showraceinfo "Shows detail info about the races"
Now change that to this line.
Code: [Select]
es_xexists wcs_exists command raceinfo
if (server_var(wcs_exists) = 0) then es_xregsaycmd raceinfo wcs/WCSraces/sraceinfo "Shows detail info about the races"
Now add this block above the wcs_showraceinfo block in your es_WCSraces.txt.
Code: [Select]
block sraceinfo
{
es_xset wcs_userid 0
es_xset wcs_exists 0
es_xset wcs_page 0
es_xgetcmduserid wcs_userid
es_keygetvalue wcs_page WCSuserdata server_var(wcs_userid) race
es_xmath wcs_page - 1
es_keysetvalue WCSuserdata server_var(wcs_userid) page server_var(wcs_page)
es wcs_showraceinfo server_var(wcs_userid)
}
After that you just need to restart your server and then you are done.

~MiB
« Last Edit: August 07, 2010, 08:14:38 PM by MiB »

~The Sig Changes Each Time~
~The Sigs Them Selfs Are By Hybrid Click The Sigs To See His Other Sigs~

^[Psycho]^

  • Level 7 Expert
  • Posts: 205
  • ~~~~~~~~
Re: Fixing your raceinfo say command.
« Reply #1 on: July 26, 2010, 08:54:25 AM »
nice, thanks alot m8,
btw how about the other say commands? showskills, playerinfo, etc