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 2008-12-11 (original capture). Home · Forum · All archived topics · Downloads

Author Topic: plz help with dalias  (Read 210 times)

Offline Incognito

  • Level 0 Beginner
  • Posts: 9
plz help with dalias
« on: June 07, 2008, 01:35:30 PM »
ok so my server is running wcs .77 and we are trying to get dalias working on the server and the block load is different from the example here is a copy of our block load

[spoiler]block load
{
    es_xexists ex command wcs_mole_activate
  if (server_var(ex) = 0) then es_xregcmd wcs_mole_activate wcs/WCSultimates/wcs_mole_activate "A player becomes a mole"
  es_xexists ex command wcs_regeneration
  if (server_var(ex) = 0) then es_xregcmd wcs_regeneration wcs/WCSultimates/wcs_regeneration "wcs_regeneration <userid> <amount> <time> <maxHP> <maxHeal> <radius> - Regenerate player for the current round"
  es_xexists ex command wcs_warden
  if (server_var(ex) = 0) then es_xregcmd wcs_warden wcs/WCSultimates/wcs_warden "Warden, deals damage on nearby enemies"
    // new event
  es_xloadevents declare addons/eventscripts/wcs/WCSultimates/es_WCSultimates.res
 }[/spoiler]

b/c of this i do not know where to add the
[spoiler]es_xexists wcs_exists command wcs_dalias
  es es_xif (server_var(wcs_exists) = 0) then es_xregcmd wcs_dalias wcs/WCSultimates/wcs_dalias "Executes alias with delay without loosing data"[/spoiler]
command. if i could get some help here i would be very greatfull

incog.

Offline mobsi

  • Level 7 Expert
  • *****
  • Posts: 208
Re: plz help with dalias
« Reply #1 on: June 07, 2008, 02:20:01 PM »
Code: (eventscripts) [Select]
block load
{
  es_xexists ex command wcs_mole_activate
  if (server_var(ex) = 0) then es_xregcmd wcs_mole_activate wcs/WCSultimates/wcs_mole_activate "A player becomes a mole"
  es_xexists ex command wcs_regeneration
  if (server_var(ex) = 0) then es_xregcmd wcs_regeneration wcs/WCSultimates/wcs_regeneration "wcs_regeneration <userid> <amount> <time> <maxHP> <maxHeal> <radius> - Regenerate player for the current round"
  es_xexists ex command wcs_warden
  if (server_var(ex) = 0) then es_xregcmd wcs_warden wcs/WCSultimates/wcs_warden "Warden, deals damage on nearby enemies"
  es_xexists wcs_exists command wcs_dalias
  es es_xif (server_var(wcs_exists) = 0) then es_xregcmd wcs_dalias wcs/WCSultimates/wcs_dalias "Executes alias with delay without loosing data"
    // new event
  es_xloadevents declare addons/eventscripts/wcs/WCSultimates/es_WCSultimates.res
 }
better the devil you know than the devil you don't

Offline Incognito

  • Level 0 Beginner
  • Posts: 9
Re: plz help with dalias
« Reply #2 on: June 07, 2008, 04:07:50 PM »
ok i will try it tonight thx

incog.

Offline mobsi

  • Level 7 Expert
  • *****
  • Posts: 208
Re: plz help with dalias
« Reply #3 on: June 07, 2008, 08:44:02 PM »
it was the solution ^^
was exactly the same as what stinkyfax posted ^^
better the devil you know than the devil you don't