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 2009-08-30 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
August 30, 2009, 03:40:23 PM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: WCS Tournament being opened for applications!

Post here for signups!
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: Gold Grochu, help me:)  (Read 107 times)
Niczyji
Level 0 Beginner

Offline Offline

Poland Poland

Posts: 3



« on: June 15, 2009, 01:03:24 PM »

I have troubles with that code, can you check where's the error


Code:
  "10"
  {
    "name"              "Gold Grochu"
    "author"            "Grochu"
    "required_level"    "0"
    "allow_only"        "0"
    "preloadcmd"        "es_xsetinfo wcs_target 0;es_xsetinfo wcs_team 0;es_xsetinfo wcs_team2 0"
    "player_spawn_cmd"  "0"
    "round_start_cmd"   "0"
    "round_end_cmd"     "0"
    "numberofskills"    "8"
    "numberoflevels"    "6"
    "skillnames"        "1|2|3|4|5|6|7|8|"
    "skilldescr"        "speed, gravity|drug|steal money|anty headshot|Heal hp|invisible|protect ultimate|resu|"
    "skillcfg"          "player_spawn|player_attacker|player_attacker|player_spawn|player_ultimate|player_spawn|player_spawn|player_death|"
   
    "skill1_setting"    "es_xset wcs_multiplier 0.8;es_xset wcs_gravity 1.20;es_xset wcs_speed 1.2|es_xset wcs_multiplier 1.1;es_xset wcs_gravity 1.10;es_xset wcs_speed 1.4|es_xset wcs_multiplier 1.3;es_xset wcs_gravity 0.90;es_xset wcs_speed 1.6|es_xset wcs_multiplier 1.6;es_xset wcs_gravity 0.80;es_xset wcs_speed 1.8|es_xset wcs_multiplier 1.65;es_xset wcs_gravity 0.80;es_xset wcs_speed 2.0|es_xset wcs_multiplier 1.70;es_xset wcs_gravity 0.80;es_xset wcs_speed 2.1"
    "skill1_cmd"        "es es_xkeysetvalue WCSuserdata event_var(userid) longjump server_var(wcs_multiplier);es est_gravity event_var(userid) server_var(wcs_gravity);es est_speed event_var(userid) server_var(wcs_speed);es es_xtell event_var(userid) #lightgreen You have now gravity, longjump and speed!"
    "skill1_sfx"        "0"

    "skill2_setting"    "es_xrand wcs_rand 1 40;es_xsetinfo wcs_time 1.4|es_xrand wcs_rand 1 35;es_xsetinfo wcs_time 1.8|es_xrand wcs_rand 1 30;es_xsetinfo wcs_time 2.2|es_xrand wcs_rand 1 25;es_xsetinfo wcs_time 2.6|es_xrand wcs_rand 1 20;es_xsetinfo wcs_time 5.00|es_xrand wcs_rand 1 15;es_xsetinfo wcs_time 6.4"
    "skill2_cmd"        "es es_xif (server_var(wcs_rand) <= 10) then est_drug event_var(userid) server_var(wcs_time);es es_xif (server_var(wcs_rand) <= 10) then es_xtell event_var(userid) : Got banished by event_var(es_attackername) for server_var(wcs_time) seconds.;es es_xif (server_var(wcs_rand) <= 10) then es_xtell event_var(attacker) : You banished event_var(es_username) for server_var(wcs_time) seconds."
    "skill2_sfx"        "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(attacker);es es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 event_var(userid);es es_xmath wcs_z1 + 40;es es_xmath wcs_z2 + 40;es es_xif (server_var(wcs_rand) <= 10) then est_effect 3 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 1 20 0 50 255 255 150;es es_xmath wcs_z1 + 40;es es_xmath wcs_z2 + 40;es es_xif (server_var(wcs_rand) <= 10) then est_effect 3 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 1 0 20 0 255 255 150"
   
    "skill3_setting"    "es_xrand wcs_rand 1 60;es_xsetinfo wcs_money 100|es_xrand wcs_rand 1 50;es_xsetinfo wcs_money 125|es_xrand wcs_rand 1 40;es_xsetinfo wcs_money 200|es_xrand wcs_rand 1 30;es_xsetinfo wcs_money 300|es_xrand wcs_rand 1 20;es_xsetinfo wcs_money 450|es_xrand wcs_rand 1 10;es_xsetinfo wcs_money 500"
    "skill3_cmd"        "es_xsetinfo wcs_cash 0;es es_xif (server_var(wcs_rand) <= 10) then es_xgetmoney wcs_cash event_var(userid);es es_xif (server_var(wcs_cash) >= server_var(wcs_money)) then es_xtell event_var(attacker) : You have stolen $ server_var(wcs_money).;es es_xif (server_var(wcs_cash) >= server_var(wcs_money)) then es_xtell event_var(userid) : Someone stole you $ server_var(wcs_money);es es_xif (server_var(wcs_cash) >= server_var(wcs_money)) then est_cashadd event_var(attacker) server_var(wcs_money);es es_xif (server_var(wcs_cash) < server_var(wcs_money)) then es_xsetinfo wcs_money 0;es es_xif (server_var(wcs_money) != 0) then es_xformat wcs_money -%1 server_var(wcs_money);es es_xif (server_var(wcs_money) != 0) then est_cashadd event_var(userid) server_var(wcs_money)"
    "skill3_sfx"        "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(attacker);es es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 event_var(userid);es es_xmath wcs_z1 + 40;es es_xmath wcs_z2 + 40;es es_xif (server_var(wcs_rand) <= 10) then est_effect 3 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 1 3 6 255 255 0 255"

    "skill4_setting"    "es_xsetinfo wcs_chance 90|es_xsetinfo wcs_chance 91|es_xsetinfo wcs_chance 92|es_xsetinfo wcs_chance 94|es_xsetinfo wcs_chance 96|es_xsetinfo wcs_chance 99"
    "racealias_hs1"     "es_set wcs_dmg event_var(dmg_health);es_keygetvalue wcs_tmp WCSuserdata event_var(userid) realhp;es_math wcs_tmp - wcs_dmg;es_xkeysetvalue WCSuserdata event_var(userid) realhp wcs_tmp;if (server_var(wcs_tmp) <= 0 then wcs_dealdamage event_var(attacker) event_var(userid) 512;if (server_var(wcs_tmp) >= 0 then est_Health event_var(userid) + event_var(dmg_health);if (server_var(wcs_tmp) >= 0 then es_tell event_var(userid) #multi #green Immune to headshots"
    "skill4_cmd"        "if (server_var(wcs_dice) <= server_var(wcs_chance)) if (event_var(hitgroup) = 1) then racealias_hs1"
    "skill4_sfx"        "if (server_var(wcs_dice) <= server_var(wcs_chance)) then if (event_var(hitgroup) = 1) then es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(attacker);if (server_var(wcs_dice) <= server_var(wcs_chance)) then if (event_var(hitgroup) = 1) then es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 event_var(userid);if (server_var(wcs_dice) <= server_var(wcs_chance)) then if (event_var(hitgroup) = 1) then effect 3 #a 0 sprites/yellowflare.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 1 5 5 255 255 255 255"

    "skill5_setting"    "es_xsetinfo wcs_hpmana 50|es_xsetinfo wcs_hpmana 70|es_xsetinfo wcs_hpmana 100|es_xsetinfo wcs_hpmana 130|es_xsetinfo wcs_hpmana 165|es_xsetinfo wcs_hpmana 200"
    "skill5_cmd"        "es_xsetinfo wcs_money 0;es es_xgetmoney wcs_money server_var(wcs_userid);es_xsetinfo wcs_health 0;es es_xif (server_var(wcs_money) >= 75) then est_cash server_var(wcs_userid) - 75;es es_xif (server_var(wcs_money) >= 75) then est_gethealth wcs_health server_var(wcs_userid);es es_xif (server_var(wcs_money) >= 75) then es_xmath wcs_health + server_var(wcs_hpmana);es es_xif (server_var(wcs_money) >= 75) then est_RoundDecimal wcs_health server_var(wcs_health) 0;es es_xif (server_var(wcs_money) >= 75) then est_sethealth server_var(wcs_userid) server_var(wcs_health);es es_xif (server_var(wcs_money) >= 75) then es_xtell server_var(wcs_userid) : You sacrificed 75 Money to get a health potion.You now got server_var(wcs_health) HP."
    "skill5_sfx"        "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_userid);es es_xmath wcs_z1 + 50;es es_xif (server_var(wcs_money) >= 50) then est_effect 11 #a 0 sprites/purpleglow1.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 4 2 255"
    "ultimate_cooldown" "0"

    "skill6_setting"    "es_xsetinfo wcs_invis 85;es_xsetinfo wcs_alpha 70|es_xsetinfo wcs_invis 70;es_xsetinfo wcs_alpha 80|es_xsetinfo wcs_invis 50;es_xsetinfo wcs_alpha 90|es_xsetinfo wcs_invis 7;es_xsetinfo wcs_alpha 100|es_xsetinfo wcs_invis 5;es_xsetinfo wcs_alpha 110|es_xsetinfo wcs_invis 2;es_xsetinfo wcs_alpha 120"
    "skill6_cmd"        "es_xcopy wcs_tmp wcs_invis;es_xmath wcs_tmp float;es_xmath wcs_tmp / -2.55;es_xmath wcs_tmp + 100;es est_rounddecimal wcs_tmp server_var(wcs_tmp) 0;es es_xkeysetvalue WCSuserdata event_var(userid) invisp server_var(wcs_tmp);es est_setplayercolor event_var(userid) 255 255 255 server_var(wcs_invis) 1;wcs_getlanguage wcs_lng wcs_lng_r_invis;es es_xtell event_var(userid) #multi server_var(wcs_lng)"
    "skill6_sfx"        "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es_xmath wcs_z1 + 20;es est_effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1)server_var(wcs_z1) 30 60 2 10 0 0 0 255 50 128 10"

    "skill7_setting"    "es_xsetinfo wcs_chance 45|es_xsetinfo wcs_chance 50|es_xsetinfo wcs_chance 55|es_xsetinfo wcs_chance 65|es_xsetinfo wcs_chance 80|es_xsetinfo wcs_chance 100"
    "skill7_cmd"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xkeysetvalue WCSuserdata event_var(userid) ulti_immunity 1;wcs_getlanguage wcs_lng wcs_lng_r_ultiimmunity;es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xtell event_var(userid) #multi server_var(wcs_lng)"
    "skill7_sfx"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xif (server_var(wcs_alive) = 1) then est_effect 11 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 3 7 255"

    "skill8_setting"    "es_xsetinfo wcs_chance 13|es_xsetinfo wcs_chance 18|es_xsetinfo wcs_chance 23|es_xsetinfo wcs_chance 57|es_xsetinfo wcs_chance 78|es_xsetinfo wcs_chance 99"
    "racealias_resbst2" "es est_playplayer event_var(userid) npc/antlion/attack_single4.wav;es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es es_delayed 3 est_spawn event_var(userid) 100;es es_delayed 3.5 est_teleport event_var(userid) server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1);es es_delayed 3 est_Fade event_var(userid) 1 3 3 155 0 0 155;es es_delayed 3 es_xtell event_var(userid) : You have been Resurrected."
    "skill8_cmd"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then racealias_resbst2"
    "skill8_sfx"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es es_delayed 3 est_effect 11 #a 0 sprites/flamelet4.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 1 3.5 150"
   }
 
« Last Edit: June 15, 2009, 01:07:15 PM by Niczyji » Logged
Blood Rush
Level 7 Expert
*****
Offline Offline

Sweden

Posts: 261


Buy me a Beer! pl0x



vinnst

myServer 217.163.28.56:27015
(Warning: click connects through Steam)
« Reply #1 on: June 15, 2009, 01:13:47 PM »

Code:
Remember to end the SkillCfg with a quote not a |.
Logged


Buy your server here!
Or here!
Both has the best support ever!
Niczyji
Level 0 Beginner

Offline Offline

Poland Poland

Posts: 3



« Reply #2 on: June 15, 2009, 01:36:39 PM »

thx it works!:)
Logged
Niczyji
Level 0 Beginner

Offline Offline

Poland Poland

Posts: 3



« Reply #3 on: June 15, 2009, 02:08:41 PM »

Thx Blood Rush
how to link 4nd skill with the 7rd one to make one?  anybody?

Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Dutch Hosting

Last 7 Shouts:
Today at 12:27:40 AM
you can respawn with this addon useng the command gg_spawn
 http://forums.gungame5.com/download/file.php?id=144&sid=5c52fb7afaf2db812f7fd4a0744e96d9
August 29, 2009, 10:52:35 PM
teambalance.
August 29, 2009, 09:57:17 PM
Anyone knows how to get addon or set something up so the server swaps teams, ct = t, and t = ct after a team wins 15 rounds?
August 29, 2009, 07:53:39 PM
SRCDS has 28th update also?
August 29, 2009, 12:00:42 PM
Say yes to time the error
August 29, 2009, 09:56:58 AM
Until then, no respawn will work on recently-updated servers.
August 29, 2009, 09:56:40 AM
The respawn code has changed since last SRCDS update.
Since EST won't be updated, i'll post some code (using SPE module) to rewrite the est_spawn command.
Recent
[Today at 02:40:51 PM]

[Today at 01:37:01 PM]

[Today at 01:06:38 PM]

[Today at 10:45:01 AM]

[Today at 10:43:08 AM]

[Today at 09:17:31 AM]

[Today at 08:53:13 AM]

[Today at 06:41:56 AM]

[Today at 06:39:40 AM]

by Ron
[Today at 03:02:28 AM]
Theme switch

Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.116 seconds with 25 queries.