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-04-30 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
April 30, 2009, 03:41:00 AM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Hall of Fame - Designer
Must Visit it
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: blinking rainbow  (Read 28 times)
Bob
Level 5 Trained Intermediate
*****
Online Online

United States United States

Posts: 147



« on: April 27, 2009, 08:36:45 PM »

I have a skill that i made today that will make you blink rainbow colors; red ,orange, yellow, green lightblue, blue, purple, violet and over again. and with a 30-100% chance on a 75% chance (yes a chance on chance/dont ask me why i will respond why not). it gives 15-100 extra hp depending on the level

here is the code:
Code
GeSHi (eventscripts):
   "skill1_setting"    "es_xsetinfo wcs_dur 0.1;es_xsetinfo wcs_hp 15;es_xsetinfo wcs_chance 15|es_xsetinfo wcs_dur 0.1;es_xsetinfo wcs_hp 35;es_xsetinfo wcs_chance 35|es_xsetinfo wcs_dur 0.1;es_xsetinfo wcs_hp 55;es_xsetinfo wcs_chance 55|es_xsetinfo wcs_dur 0.1;es_xsetinfo wcs_hp 75;es_xsetinfo wcs_chance 75|es_xsetinfo wcs_dur 0.1;es_xsetinfo wcs_hp 100;es_xsetinfo wcs_chance 100"
   "skill1_cmd"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xif (server_var(wcs_dice) <= 75) then es est_healthadd server_var(wcs_hp);es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then racealias_color1"
   "racealias_color1"  "es_xmath server_var(wcs_dur) + 0.1;es_delayed server_var(wcs_dur) est_setplayercolor event_var(userid) 255 20 20 255 1;es_xmath server_var(wcs_dur) + 0.1;es_delayed server_var(wcs_dur) est_setplayercolor event_var(userid) 255 150 20 255 1;es_xmath server_var(wcs_dur) + 0.1;es_delayed server_var(wcs_dur) est_setplayercolor event_var(userid) 255 255 20 255 1;es_xmath server_var(wcs_dur) + 0.1;es_delayed server_var(wcs_dur) est_setplayercolor event_var(userid) 20 255 20 255 1;es_delayed server_var(wcs_dur) racealias_color2"
   "racealias_color2"  "es_xmath server_var(wcs_dur) + 0.1;es_delayed server_var(wcs_dur) est_setplayercolor event_var(userid) 20 255 255 255 1;es_xmath server_var(wcs_dur) + 0.1;es_delayed server_var(wcs_dur) est_setplayercolor event_var(userid) 20 20 255 255 1;es_xmath server_var(wcs_dur) + 0.1;es_delayed server_var(wcs_dur) est_setplayercolor event_var(userid) 150 20 255 255 1;es_xmath server_var(wcs_dur) + 0.1;es_delayed server_var(wcs_dur) est_setplayercolor event_var(userid) 255 20 255 255 1;es_delayed server_var(wcs_dur) racealias_color1"
   "skill1_sfx"        "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es est_effect 11 #a 0 sprites/purplelaser1.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 2.5 2.5 255;es_toptext event_var(userid) 1 #red Effects by Bob;es est_effect 10 #a 0 sprites/purplelaser1.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 150 90 3 80 60 0 250 150 170 200 3;es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es_xmath wcs_z1 + 90;es est_effect 10 #a 0 sprites/purplelaser1.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 150 90 3 80 60 0 250 150 200 200 3"
 
Logged
-[DimaZ#]-
Level 3 Trained Apprentice
***
Offline Offline

Portugal Portugal

Posts: 67


« Reply #1 on: April 27, 2009, 09:00:22 PM »

Whats is that?? an ultimate?? Spawn??  Huh Huh Huh 
Logged

Stinkyfax
I <3 WCS
Watchdogs
Level 7 Master
*****
Offline Offline

Lithuania Lithuania

Posts: 1621



WWW
Xrushiov

myServer 84.55.62.45:27016
(Warning: click connects through Steam)
« Reply #2 on: April 27, 2009, 09:15:18 PM »

for loop skills you need to be more careful. delayed alias calling means loss of variables u want. In our example it will randomly start changing colours of other players.
You can use wcs_dalias to fix it. But it might be hard for a beginner.
Logged

Bob
Level 5 Trained Intermediate
*****
Online Online

United States United States

Posts: 147



« Reply #3 on: April 27, 2009, 09:26:38 PM »

yeah :S
Logged
HOLLIDAY
<Race Maker>
Moderator
Level 7 Master
*****
Online Online

Posts: 2078



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #4 on: April 28, 2009, 12:15:32 AM »

i doubt it will do that much,
an infinate loop will crash the server before it starts looping
Logged


Stinkyfax
I <3 WCS
Watchdogs
Level 7 Master
*****
Offline Offline

Lithuania Lithuania

Posts: 1621



WWW
Xrushiov

myServer 84.55.62.45:27016
(Warning: click connects through Steam)
« Reply #5 on: April 28, 2009, 01:11:54 AM »

it has delay holli. and yes - this one is leak since it has no condition to finish
Logged

Bob
Level 5 Trained Intermediate
*****
Online Online

United States United States

Posts: 147



« Reply #6 on: April 28, 2009, 04:07:47 AM »

so holliday can you please code it so it wont crash the server Tongue
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
Today at 12:32:04 AM
I'm 21 and i work for chuck so yeah..... i'm here to solve the problem that chuck shouldn't be ban but admin ban him because someone told him to... 5 out of 3k members want him to be ban...hmm
Today at 12:28:54 AM
This kindergarden should be stopped. He said, I said, we Said, He didnt say. U remind me 5 years old kids which used phrase "my dad said that i'm cool". Just let it go.
Today at 12:26:37 AM
and chucks says he did say jerth
Today at 12:22:06 AM
chuck says he didnt say jereth is nazi... and he didnt say anything racist why would he say if even his dad is german.... and he didnt ignore admins if he did he would reply.....chuck got warning so he stop and than next thing he know got ban?? make no sense
April 29, 2009, 11:09:42 PM
he pushed it once again with racist jokes and ignoring admin/mods
April 29, 2009, 10:54:03 PM
Thank you WCA | Maxxi Smiley
April 29, 2009, 10:25:46 PM
why did chuck got ban without a reason.... he just got warning than got ban for no reason.... he told me his dad is german and his mom is ukrainian and chuck is....and he doesnt hate german......why cant we forgive what he wrote because thats wasnt what he had in mind like what we did....
Recent
by Bob
[Today at 03:31:59 AM]

[Today at 03:01:27 AM]

[Today at 02:28:34 AM]

[Today at 02:26:33 AM]

[Today at 02:07:41 AM]

[Today at 01:27:35 AM]

[Today at 01:26:08 AM]

[Today at 01:14:29 AM]

[Today at 01:03:32 AM]

[Today at 12:59:58 AM]
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.121 seconds with 26 queries.