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-10-25 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
October 25, 2008, 02:03:03 AM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Races and Items added into Download section from our great Race Coders!
Such as HOLLIDAY|NovaKiller|Stinkyfax|Frodo|TeacherCreature|Phat_Wizard
Google  
  Home   Forum   Help Search Login Register   *
Pages: 1 [2]   Go Down
  Print  
This topic has not yet been rated! You have not rated this topic. Select a rating:
Author Topic: Use ulti once a round  (Read 350 times)
TheDruid
Level 2 Apprentice
**
Offline Offline

South Africa

Posts: 57




TheDruid
« Reply #15 on: June 13, 2008, 11:22:35 PM »

Hi

This is my skill code

Code
GeSHi (eventscripts):
"skill5_setting"    "es_xset wcs_hp 10|es_xset wcs_hp 20|es_xset wcs_hp 30|es_xset wcs_hp 40|es_xset wcs_hp 50"
   "skill5_cmd"        "es_keygetvalue wcs_tmp WCSuserdata server_var(wcs_userid) onceulti;if(server_var(wcs_tmp) = 0) then racealias_slay"
   "racealias_slay"    "es_keysetvalue server_var(wcs_userid) onceulti 1;es_xset wcs_team 0;es est_GetTeam wcs_team server_var(wcs_userid);es_xset wcs_player 0;if (server_var(wcs_team) = 3) then est_randplayer wcs_player #t!d;if (server_var(wcs_team) = 2) then est_randplayer wcs_player #c!d;es est_slay server_var(wcs_player);es es_xtell server_var(wcs_userid) #green You roundhouse kicked your enemy to death!!;es es_xtell server_var(wcs_player) #green You have been roundhouse kicked to death!!;es_delayed 0.5 est_health server_var(wcs_userid) + server_var(wcs_hp)"
   "skill5_sfx"        "0"
   "ultimate_cooldown" "0"

Please .

In console it leaves this msg:


es_xevent: Event wcs_ultimate not registered or no listeners.
No valid command situation for es_event! 5, 0x0
No valid command situation for es_event! 5, 0x0
No valid command situation for es_event! 5, 0x0
ERROR: Event lost.

Is it because im playing against bots?
« Last Edit: June 13, 2008, 11:32:37 PM by TheDruid » Logged
TheDruid
Level 2 Apprentice
**
Offline Offline

South Africa

Posts: 57




TheDruid
« Reply #16 on: June 18, 2008, 07:44:49 AM »

i've run it on a dedicated server and it slays the enemy, but i can do it as many times as i like. 
When i spawn it just displays a 0 underneath my race name and level.

Please .
Logged
Pre-Dominance
Level 6 Experienced
*****
Offline Offline

United States United States

Posts: 146



« Reply #17 on: June 18, 2008, 05:12:05 PM »

If the skill is supposed to give hp...why do you have it get the team of the user..
Logged
Petru
Level 7 Expert
*****
Offline Offline

Denmark Denmark

Posts: 158



« Reply #18 on: June 18, 2008, 05:18:20 PM »

ure code is very weird
Logged
TheDruid
Level 2 Apprentice
**
Offline Offline

South Africa

Posts: 57




TheDruid
« Reply #19 on: June 18, 2008, 05:51:22 PM »

If the skill is supposed to give hp...why do you have it get the team of the user..

The skill is not only to give hp, but to slay a random enemy. that is why i need to first get the users team before executing the slay, otherwise a teamie could get slayed. 

Thats also why i need it to be only used once a round, otherwise it will be abused. 
Logged
TheDruid
Level 2 Apprentice
**
Offline Offline

South Africa

Posts: 57




TheDruid
« Reply #20 on: June 19, 2008, 10:42:08 PM »

Can anyone please... 
Logged
HOLLIDAY
<Race Maker>
Moderator
Level 7 Expert
*****
Offline Offline

Posts: 1853



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #21 on: June 24, 2008, 03:45:42 PM »

es_xevent: Event wcs_ultimate not registered or no listeners.
No valid command situation for es_event! 5, 0x0
No valid command situation for es_event! 5, 0x0
No valid command situation for es_event! 5, 0x0
ERROR: Event lost.

since .77 i see this all the time, ultimates will work as they should, but this is what consol says..

i think somthing like this might work the way you want it

Code:
"player_spawn_cmd" "es_xset onetime 0;es es_xkeysetvalue WCSuserdata event_var(userid) onetime 0"


Code:
"skill4_cmd"         "es es_xkeygetvalue onetime WCSuserdata server_var(wcs_userid) onetime;if (server_var(onetime) = 0) then racealias_skill;if (server_var(onetime) = 1) then racealias_noskill"
   "racealias_noskill"  "es es_xtell server_var(wcs_userid) you have already used this skill"
   "racealias_skill"    "es es_xkeysetvalue WCSuserdata server_var(wcs_userid) onetime 1;racealias_yourcode"
   "racealias_yourcode" "yourcode here"
 

that should work...
Logged


  connect 8.2.0.222:27015
TheDruid
Level 2 Apprentice
**
Offline Offline

South Africa

Posts: 57




TheDruid
« Reply #22 on: June 24, 2008, 10:20:35 PM »

Thanks alot holliday 

I'll test that and post back. 
Logged
HOLLIDAY
<Race Maker>
Moderator
Level 7 Expert
*****
Offline Offline

Posts: 1853



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #23 on: June 24, 2008, 11:34:11 PM »

ok, kind of curious if it will work my self   
Logged


  connect 8.2.0.222:27015
Azn4Life
Level 4 Intermediate
****
Offline Offline

United States United States

Posts: 94


A stab in the back is all it takes...



arjunbery

myServer 72.5.250.172:27015
(Warning: click connects through Steam)
« Reply #24 on: June 25, 2008, 01:40:28 AM »

you knwo i was looking for how to do this too so if yall wouldnt mind helping me out

How would i change Holliday's Shadow Of the Void Race so it uses Black Hole only Once?

Code:
"29"
   {
    "name"              "Shadow of the Void"
    "author"            "HOLLIDAY"
    "required_level"    "500"
    "maximum_level"     "0"
    "allow_only"        "0"
    "teamlimit"         "0"
    "preloadcmd"        "0"
    "player_spawn_cmd"  "es est_playplayer event_var(userid) ambient\machines\wall_move5.wav"
    "round_start_cmd"   "0"
    "round_end_cmd"     "0"
    "numberofskills"    "4"
    "numberoflevels"    "4"
    "skillnames"        "Ultimate Immunity|Long Jump|Damage|Into the Void"
    "skilldescr"        "Immune To Enemy Ultimates|Long Jump|Extra Damage|Black Hole"
    "skillcfg"          "player_spawn|player_spawn|player_attacker|player_ultimate"

    "skill1_setting"    "es_xsetinfo wcs_chance 25|es_xsetinfo wcs_chance 50|es_xsetinfo wcs_chance 75|es_xsetinfo wcs_chance 100"
    "skill1_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)"
    "skill1_sfx"        "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es est_effect 10 #a 0 sprites/scanner.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 50 350 2 90 200 0 155 155 155 155 2"
   
    "skill2_setting"    "es_xsetinfo wcs_multiplier 1.50|es_xsetinfo wcs_multiplier 1.75|es_xsetinfo wcs_multiplier 2.00|es_xsetinfo wcs_multiplier 2.50"
    "skill2_cmd"        "es es_xkeysetvalue WCSuserdata event_var(userid) longjump server_var(wcs_multiplier);wcs_getlanguage wcs_lng wcs_lng_r_longjump;es es_xtell event_var(userid) #lightgreen : Your jumps go up to server_var(wcs_multiplier)."
    "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 30 100 0.8 255 100 100 255 1"

    "skill3_setting"    "es_xsetinfo wcs_multiplier 1.0|es_xsetinfo wcs_multiplier 1.5|es_xsetinfo wcs_multiplier 2.0|es_xsetinfo wcs_multiplier 2.5"
    "racealias_29a"     "es es_xsetinfo wcs_dmg event_var(dmg_health);es_xmath wcs_dmg float;es es_xmath wcs_dmg * server_var(wcs_multiplier);es est_rounddecimal wcs_dmg server_var(wcs_dmg) 0;es wcs_dealdamage event_var(attacker) event_var(userid) server_var(wcs_dmg);wcs_getlanguage wcs_lng wcs_lng_damage;esnq est_csay event_var(attacker) + server_var(wcs_dmg) server_var(wcs_lng);esnq est_csay event_var(userid) + server_var(wcs_dmg) server_var(wcs_lng)"
    "skill3_cmd"        "es es_xif (server_var(wcs_dice) <= 30) then est_IsAlive wcs_alive event_var(userid);es es_xif (server_var(wcs_dice) <= 30) then es_xif (server_var(wcs_alive) = 1) then racealias_29a"
    "skill3_sfx"        "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es est_effect 10 #a 0 sprites/scanner.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 50 350 2 90 200 0 155 155 155 155 2"   
   
    "skill4_setting"    "es_xsetinfo wcs_magnitude 140;es_xsetinfo wcs_radius 200|es_xsetinfo wcs_magnitude 160;es_xsetinfo wcs_radius 220|es_xsetinfo wcs_magnitude 180;es_xsetinfo wcs_radius 240|es_xsetinfo wcs_magnitude 200;es_xsetinfo wcs_radius 260"
    "skill4_cmd"        "es est_playplayer server_var(wcs_userid) ambient\explosions\explode_6.wav;es es_xdelayed 2 est_BlackHole server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 6;es es_xtell server_var(wcs_userid) : Destroyer of Worlds;es ma_slay server_var(wcs_userid);es es_xdoblock wcs/WCSultimates/wcs_ulti_suicide"
    "skill4_sfx"        "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_userid);es_xmath wcs_z1 + 20;es est_Effect 10 #a 0 sprites/water_drop.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 200 500 8 400 400 0 155 155 155 255 10;es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_userid);es_xmath wcs_z1 + 15;es est_effect 11 #a 0 effects/alyxmonitor_talk.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 8 0.3 255;es est_effect 11 #a 0 sprites/physcannon_bluecore1b.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 8 3 255"
    "ultimate_cooldown" "300"
    }
Logged
HOLLIDAY
<Race Maker>
Moderator
Level 7 Expert
*****
Offline Offline

Posts: 1853



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #25 on: June 25, 2008, 01:59:54 AM »

the same way, on my server i have the black hole as a shopmenu2 item, say blackhole to spawn a blackhole where you bought it
good one time
Logged


  connect 8.2.0.222:27015
Azn4Life
Level 4 Intermediate
****
Offline Offline

United States United States

Posts: 94


A stab in the back is all it takes...



arjunbery

myServer 72.5.250.172:27015
(Warning: click connects through Steam)
« Reply #26 on: June 25, 2008, 02:01:00 AM »

ok so do i just copy it from ur gold addon
Logged
TheDruid
Level 2 Apprentice
**
Offline Offline

South Africa

Posts: 57




TheDruid
« Reply #27 on: June 25, 2008, 08:28:54 PM »

es_xevent: Event wcs_ultimate not registered or no listeners.
No valid command situation for es_event! 5, 0x0
No valid command situation for es_event! 5, 0x0
No valid command situation for es_event! 5, 0x0
ERROR: Event lost.

since .77 i see this all the time, ultimates will work as they should, but this is what consol says..

i think somthing like this might work the way you want it

Code:
"player_spawn_cmd" "es_xset onetime 0;es es_xkeysetvalue WCSuserdata event_var(userid) onetime 0"


Code:
"skill4_cmd"         "es es_xkeygetvalue onetime WCSuserdata server_var(wcs_userid) onetime;if (server_var(onetime) = 0) then racealias_skill;if (server_var(onetime) = 1) then racealias_noskill"
   "racealias_noskill"  "es es_xtell server_var(wcs_userid) you have already used this skill"
   "racealias_skill"    "es es_xkeysetvalue WCSuserdata server_var(wcs_userid) onetime 1;racealias_yourcode"
   "racealias_yourcode" "yourcode here"
 

that should work...

Holliday, you are a genius 

It works 100% 

Thanks alot.
Logged
Dark Phoenix
Level 0 Beginner

Offline Offline

Canada Canada

Posts: 17




shadephoenix
« Reply #28 on: October 24, 2008, 12:11:52 AM »

es_xevent: Event wcs_ultimate not registered or no listeners.
No valid command situation for es_event! 5, 0x0
No valid command situation for es_event! 5, 0x0
No valid command situation for es_event! 5, 0x0
ERROR: Event lost.

since .77 i see this all the time, ultimates will work as they should, but this is what consol says..

i think somthing like this might work the way you want it

Code:
"player_spawn_cmd" "es_xset onetime 0;es es_xkeysetvalue WCSuserdata event_var(userid) onetime 0"


Code:
"skill4_cmd"         "es es_xkeygetvalue onetime WCSuserdata server_var(wcs_userid) onetime;if (server_var(onetime) = 0) then racealias_skill;if (server_var(onetime) = 1) then racealias_noskill"
   "racealias_noskill"  "es es_xtell server_var(wcs_userid) you have already used this skill"
   "racealias_skill"    "es es_xkeysetvalue WCSuserdata server_var(wcs_userid) onetime 1;racealias_yourcode"
   "racealias_yourcode" "yourcode here"
 

that should work...

Ya i cant really understand how 2 add that with the skills what with the "your code here bullshit".Ya im new so can u do that with

Code:
"skill4_setting" "es_xsetinfo wcs_damage 10|es_xsetinfo wcs_damage 15|es_xsetinfo wcs_damage 20|es_xsetinfo wcs_damage 25|es_xsetinfo wcs_damage 30"
    "racealias_se5b" "es est_GetHealth wcs_health server_var(wcs_userid);es es_xif (server_var(wcs_health) <= 125) then est_Health server_var(wcs_userid) + 25;es est_GetDamage wcs_health server_var(wcs_userid);es es_xmath wcs_health + server_var(wcs_damage);es es_xif (server_var(wcs_health) <= 200) then est_damage server_var(wcs_userid) + server_var(wcs_damage);es est_GetDamage wcs_tmp server_var(wcs_player);es es_xif (server_var(wcs_tmp) >= server_var(wcs_damage)) then est_damage server_var(wcs_player) - server_var(wcs_damage)"
    "racealias_se5" "es es_xgetplayername wcs_name server_var(wcs_player);es es_xgetplayername wcs_tmp2 server_var(wcs_userid);es wcs_dealdamage server_var(wcs_userid) server_var(wcs_player) 35;es est_shake server_var(wcs_player) 1 10 10;es es_xtell server_var(wcs_userid) #multi #greenBlood Hounds: #lightgreenTook server_var(wcs_damage) Damage, gained 25 HP;racealias_se5b"
    "skill4_cmd" "es_xsetinfo wcs_player 0;es es_xif (server_var(wcs_team) = 2) then est_randplayer wcs_player #c!d;es es_xif (server_var(wcs_team) = 3) then est_randplayer wcs_player #t!d;es es_xexists wcs_exists userid server_var(wcs_player);es es_xif (server_var(wcs_exists) = 1) then racealias_se5"
    "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" "20"
plz?? ull be my best freind (dont ignore me just bcuz im new) ty 4 the
« Last Edit: October 24, 2008, 01:05:56 AM by Dark Phoenix » Logged
Pages: 1 [2]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
October 24, 2008, 03:10:26 PM
Plz check my post, in CS:S Support.
October 23, 2008, 11:00:44 PM
hey everyone check out my work in the gallery!!
and make sure you give me some feedback!!
October 23, 2008, 07:08:32 PM
Look my post: Weird problem with my private race! Please really need !!!
October 23, 2008, 04:12:07 PM
HUGE CRASH BUGS FIXED for more info: http://warcraft-source.com/board/index.php/topic,4529.0.html   WEEEEEEEEEE IM SO HAPPY
October 22, 2008, 11:33:18 PM
Please check my post and me.
October 22, 2008, 11:27:58 PM
hey everyone check out my work in the gallery!!
and make sure you give me some feedback!!
Recent
[Today at 01:49:01 AM]

[Today at 01:48:01 AM]

[October 24, 2008, 10:43:29 PM]

[October 24, 2008, 10:39:44 PM]

[October 24, 2008, 10:39:02 PM]

[October 24, 2008, 08:26:59 PM]

[October 24, 2008, 08:02:58 PM]

[October 24, 2008, 05:23:06 PM]

[October 24, 2008, 05:21:45 PM]

[October 24, 2008, 02:34:14 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.081 seconds with 26 queries.