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-08-09 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
August 09, 2008, 02:02:35 AM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Current Official Servers:
#1 - 207.210.236.112:27015 Location US
#2 - 85.190.38.232:27015 Location Amsterdam
| Tick@100 | wcs 0.77 | Mani |
Google  
  Home   Forum   Help Search Login Register   *
Pages: [1]   Go Down
  Print  
This topic has not yet been rated! You have not rated this topic. Select a rating:
Author Topic: Team Player - Would it work?  (Read 93 times)
KaBoom
Level 4 Intermediate
****
Offline Offline

United States United States

Posts: 93


Still learning Python. Hold on lol!



famaskaboom
« on: June 18, 2007, 05:44:43 PM »

Would this work? (Of course, with a number.)
The thing I'm mainly wondering about is if the #T would work...


Code:
  {
  "name"              "Team Player"
  "author"            "KaBoom!"
  "shortdescription"  "A very team-oriented race."
  "required_level"    "85"
  "maximum_level"     "0"
  "allow_only"        "0"
  "team_limit"        "1"
  "preloadcmd"        "0"
  "player_spawn_cmd"  "0"
  "round_start_cmd"   "0"
  "round_end_cmd"     "0"
  "numberofskills"    "4"
  "numberoflevels"    "6"
  "skillnames"        "Devotion Aura (Team)|Brilliance Aura|Personal Gain|Sacrifice for the Team"
  "skilldescr"        "Gives your team 5-30 HP at the start of each round.|Gives your team an extra $200-800 at the start of each round.|Gives you a 17-33% chance to gain helpful things when you hit an enemy|Sacrifice $500 to give your entire team 10-20 HP."
  "skillcfg"          "player_spawn|player_spawn|player_attacker|player_ultimate"

  "skill1_setting"    "es_xsetinfo wcs_teamhp 5|es_xsetinfo wcs_teamhp 10|es_xsetinfo wcs_teamhp 15|es_xsetinfo wcs_teamhp 20|es_xsetinfo wcs_teamhp 25|es_xsetinfo wcs_teamhp 30"
  "skill1_cmd"        "es es_xif (server_var(wcs_team) = 2) then es est_healthadd #T server_var(wcs_teamhp);es es_xif (server_var(wcs_team) = 3) then es est_healthadd #CT server_var(wcs_teamhp);es es_xtell event_var(userid) #multi #Lightgreen : Your team gained #Green server_var(wcs_teamhp) HP."
  "skill1_sfx"        "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_userid);es_xmath wcs_z1 + 50;es es_xdelayed 0.1 est_effect 11 #a 0 sprites/purpleglow1.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 4 2 255""

  "skill2_setting"    "es_xsetinfo wcs_teamcash 200|es_xsetinfo wcs_teamcash 300|es_xsetinfo wcs_teamcash 400|es_xsetinfo wcs_teamcash 500|es_xsetinfo wcs_teamcash 600|es_xsetinfo wcs_teamcash 800"
  "skill2_cmd"        "es es_xif (server_var(wcs_team) = 2) then es est_cashadd #T server_var(wcs_teamcash);es es_xif (server_var(wcs_team) = 3) then es est_cashadd #CT server_var(wcs_teamcash);es es_xtell event_var(userid) #multi #Lightgreen : Your team has gained #Green server_var(wcs_teamcash) dollars, thanks to you."
  "skill2_sfx"        "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_userid);es est_effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 20 50 1 60 100 0.8 0 255 255 255 1"
 
  "skill3_setting"    "es_xsetinfo wcs_tphp 1;es_xrand wcs_tpxp 1 5;es_xrand wcs_tpcash 1 20;es_xsetinfo wcs_chance 17|es_xsetinfo wcs_tphp 2;es_xrand wcs_tpxp 5 10;es_xrand wcs_tpcash 20 40;es_xsetinfo wcs_chance 20|es_xsetinfo wcs_tphp 3;es_xrand wcs_tpxp 10 15;es_xrand wcs_tpcash 40 60;es_xsetinfo wcs_chance 20|es_xsetinfo wcs_tphp 4;es_xrand wcs_tpxp 15 20;es_xrand wcs_tpcash 60 80;es_xsetinfo wcs_chance 25|es_xsetinfo wcs_tphp 5;es_xrand wcs_tpxp 20 25;es_xrand wcs_tpcash 80 100;es_xsetinfo wcs_chance 25|es_xsetinfo wcs_tphp 5;es_xrand wcs_tpxp 25 30;es_xrand wcs_tpcash 90 100;es_xsetinfo wcs_chance 33"
  "racealias_tp1"     "es_est_healthadd event_var(attacker) server_var(wcs_tphp);es_est_cashadd event_var(attacker) server_var(wcs_tpcash);es wcs_givexp eventvar(attacker) server_var(wcs_tpxp) 0 0;es es_xformat wcs_lng server_var(wcs_lng) event_var(es_username) server_var(sucxp);es_xtell event_var(attacker) #multi #Lightgreen : You have gained #Green server_var(wcs_tpxp) XP, server_var(wcs_tphp) HP#Lightgreen, and#Green server_var(wcs_tpcash) $$.;es_xformat wcs_lng servervar(wcs_lng) event_var(attackername)"
  "skill3_cmd"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then racealias_tp1"
  "skill3_sfx"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(attacker);es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 event_var(userid); es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then est_effect 3 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(z1) server_var(wcs_x2) server_var(wcs_y2) server_var(z2) 1 3 6 0 255 0 255"

  "skill4_setting"    "es_xsetinfo wcs_ultteamhp 10|es_xsetinfo wcs_ultteamhp 12|es_xsetinfo wcs_ultteamhp 14|es_xsetinfo wcs_ultteamhp 16|es_xsetinfo wcs_ultteamhp 18|es_xsetinfo wcs_ultteamhp 20"
  "skill4_cmd"        "es es_xgetmoney wcs_money server_var(wcs_userid);es es_xif (server_var(wcs_money) >= 500) then est_cash server_var(wcs_userid) - 500;es es_xif (server_var(wcs_money) >= 500) then es es_xif (server_var(wcs_team) = 2) then es est_healthadd #T server_var(wcs_ultteamhp);es es_xif (server_var(wcs_team) = 3) then es est_healthadd #CT server_var(wcs_ultteamhp);es es_xtell event_var(userid) #multi #Lightgreen : Your team gained #Green server_var(wcs_ultteamhp) HP because of your sacrifice."
  "skill4_sfx"        "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_userid);es_xmath wcs_z1 + 40;es est_effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 20 50 3 60 100 0.8 0 200 100 200 1"
  "ultimate_cooldown" "25"
  }
« Last Edit: June 18, 2007, 05:47:46 PM by KaBoom » Logged

Don't reply, unless you have something useful to say.

Don't steal. The government hates competition.

There are 10 kinds of people in this world, those who can read binary and those who can't.
NovaKiller
<WCS coder>
Level 7 Expert
*****
Offline Offline

Denmark Denmark

Posts: 781


Loves WCS. Loves to make races. Loves to play WCS


WWW
PlaxGunner
« Reply #1 on: June 18, 2007, 07:26:13 PM »

That race should work. Nice idea by that race. Only 2 things is need to get added to make it work as it should. Something to so the random xp and cash thing works.

Code:
{
  "name"              "Team Player"
  "author"            "KaBoom!"
  "shortdescription"  "A very team-oriented race."
  "required_level"    "85"
  "maximum_level"     "0"
  "allow_only"        "0"
  "team_limit"        "1"
  "preloadcmd"        "es_xsetinfo wcs_tpxp 0;es_xsetinfo wcs_tpcash 0"
  "player_spawn_cmd"  "0"
  "round_start_cmd"   "0"
  "round_end_cmd"     "0"
  "numberofskills"    "4"
  "numberoflevels"    "6"
  "skillnames"        "Devotion Aura (Team)|Brilliance Aura|Personal Gain|Sacrifice for the Team"
  "skilldescr"        "Gives your team 5-30 HP at the start of each round.|Gives your team an extra $200-800 at the start of each round.|Gives you a 17-33% chance to gain helpful things when you hit an enemy|Sacrifice $500 to give your entire team 10-20 HP."
  "skillcfg"          "player_spawn|player_spawn|player_attacker|player_ultimate"

  "skill1_setting"    "es_xsetinfo wcs_teamhp 5|es_xsetinfo wcs_teamhp 10|es_xsetinfo wcs_teamhp 15|es_xsetinfo wcs_teamhp 20|es_xsetinfo wcs_teamhp 25|es_xsetinfo wcs_teamhp 30"
  "skill1_cmd"        "es es_xif (server_var(wcs_team) = 2) then es est_healthadd #T server_var(wcs_teamhp);es es_xif (server_var(wcs_team) = 3) then es est_healthadd #CT server_var(wcs_teamhp);es es_xtell event_var(userid) #multi #Lightgreen : Your team gained #Green server_var(wcs_teamhp) HP."
  "skill1_sfx"        "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_userid);es_xmath wcs_z1 + 50;es es_xdelayed 0.1 est_effect 11 #a 0 sprites/purpleglow1.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 4 2 255""

  "skill2_setting"    "es_xsetinfo wcs_teamcash 200|es_xsetinfo wcs_teamcash 300|es_xsetinfo wcs_teamcash 400|es_xsetinfo wcs_teamcash 500|es_xsetinfo wcs_teamcash 600|es_xsetinfo wcs_teamcash 800"
  "skill2_cmd"        "es es_xif (server_var(wcs_team) = 2) then es est_cashadd #T server_var(wcs_teamcash);es es_xif (server_var(wcs_team) = 3) then es est_cashadd #CT server_var(wcs_teamcash);es es_xtell event_var(userid) #multi #Lightgreen : Your team has gained #Green server_var(wcs_teamcash) dollars, thanks to you."
  "skill2_sfx"        "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_userid);es est_effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 20 50 1 60 100 0.8 0 255 255 255 1"
 
  "skill3_setting"    "es_xsetinfo wcs_tphp 1;es_xrand wcs_tpxp 1 5;es_xrand wcs_tpcash 1 20;es_xsetinfo wcs_chance 17|es_xsetinfo wcs_tphp 2;es_xrand wcs_tpxp 5 10;es_xrand wcs_tpcash 20 40;es_xsetinfo wcs_chance 20|es_xsetinfo wcs_tphp 3;es_xrand wcs_tpxp 10 15;es_xrand wcs_tpcash 40 60;es_xsetinfo wcs_chance 20|es_xsetinfo wcs_tphp 4;es_xrand wcs_tpxp 15 20;es_xrand wcs_tpcash 60 80;es_xsetinfo wcs_chance 25|es_xsetinfo wcs_tphp 5;es_xrand wcs_tpxp 20 25;es_xrand wcs_tpcash 80 100;es_xsetinfo wcs_chance 25|es_xsetinfo wcs_tphp 5;es_xrand wcs_tpxp 25 30;es_xrand wcs_tpcash 90 100;es_xsetinfo wcs_chance 33"
  "racealias_tp1"     "es_est_healthadd event_var(attacker) server_var(wcs_tphp);es_est_cashadd event_var(attacker) server_var(wcs_tpcash);es wcs_givexp eventvar(attacker) server_var(wcs_tpxp) 0 0;es es_xformat wcs_lng server_var(wcs_lng) event_var(es_username) server_var(sucxp);es_xtell event_var(attacker) #multi #Lightgreen : You have gained #Green server_var(wcs_tpxp) XP, server_var(wcs_tphp) HP#Lightgreen, and#Green server_var(wcs_tpcash) $$.;es_xformat wcs_lng servervar(wcs_lng) event_var(attackername)"
  "skill3_cmd"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then racealias_tp1"
  "skill3_sfx"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(attacker);es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 event_var(userid); es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then est_effect 3 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(z1) server_var(wcs_x2) server_var(wcs_y2) server_var(z2) 1 3 6 0 255 0 255"

  "skill4_setting"    "es_xsetinfo wcs_ultteamhp 10|es_xsetinfo wcs_ultteamhp 12|es_xsetinfo wcs_ultteamhp 14|es_xsetinfo wcs_ultteamhp 16|es_xsetinfo wcs_ultteamhp 18|es_xsetinfo wcs_ultteamhp 20"
  "skill4_cmd"        "es es_xgetmoney wcs_money server_var(wcs_userid);es es_xif (server_var(wcs_money) >= 500) then est_cash server_var(wcs_userid) - 500;es es_xif (server_var(wcs_money) >= 500) then es es_xif (server_var(wcs_team) = 2) then es est_healthadd #T server_var(wcs_ultteamhp);es es_xif (server_var(wcs_money) >= 500) then (server_var(wcs_team) = 3) then es est_healthadd #CT server_var(wcs_ultteamhp);es es_xtell event_var(userid) #multi #Lightgreen : Your team gained #Green server_var(wcs_ultteamhp) HP because of your sacrifice."
  "skill4_sfx"        "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_userid);es_xmath wcs_z1 + 40;es est_effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 20 50 3 60 100 0.8 0 200 100 200 1"
  "ultimate_cooldown" "25"
  }

And yeah the #T and #CT is working. I made a Tauren Shaman that also gave the team you are on hp so that should work. The first and third skill are like mines. The third by you just don't do always and only whit scout.
« Last Edit: June 18, 2007, 07:28:19 PM by NovaKiller » Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
August 08, 2008, 03:50:51 AM
im a a nub with a server, first server i ever had, its a wcs server that sucks lol need to make it better
August 08, 2008, 01:13:42 AM
Hey guys im back finally made some major races im testing them now on my server
August 07, 2008, 07:21:12 PM
harley i think the last 3 words in your name describe you perfectly ^^
August 07, 2008, 11:07:23 AM
I like pie
August 07, 2008, 06:47:26 AM
I sent a few of you coders a PM's. Please check them as you may like what you see and reply. Thanks!
August 06, 2008, 09:43:45 PM
Added IronMan .. enjoy
August 05, 2008, 01:45:06 AM
Awww shit bro theres a tornado at my house west chicago! bbl
Recent
[Today at 02:02:07 AM]

[Today at 12:26:42 AM]

[August 08, 2008, 11:26:18 PM]

[August 08, 2008, 11:01:50 PM]

[August 08, 2008, 09:00:20 PM]

[August 08, 2008, 08:48:51 PM]

[August 08, 2008, 07:29:41 PM]

[August 08, 2008, 07:28:55 PM]

[August 08, 2008, 04:20:47 PM]

[August 08, 2008, 04:07:44 PM]
Theme switch

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.067 seconds with 27 queries.