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-03-29 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
March 29, 2009, 05:17:57 AM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Remember to check on the FAQ before start posting.
It may save you time and effort.
Also here is the WCS Wiki!
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: Coding Issues  (Read 38 times)
Hiro
Level 0 Beginner

Offline Offline

Denmark Denmark

Posts: 4




6500
chipsnsparx
« on: March 23, 2009, 04:23:52 PM »

I just want some pro. help to see if the code has been done right it needs some changes, to make it work prober.
These are some skills, I coded but not sure if they are coded right.

First: It's a player_victim skill. It's basicly for that when you get hit, the person, who hits you should be set on fire.
Code
GeSHi (eventscripts):
   "skill2_setting"    "es_xsetinfo wcs_chance 16|es_xsetinfo wcs_chance 18|es_xsetinfo wcs_chance 20|es_xsetinfo wcs_chance 22|es_xsetinfo wcs_chance 24|es_xsetinfo wcs_chance 26|es_xsetinfo wcs_chance 28|es_xsetinfo wcs_chance 30"
"racealias_fireshield""es wcs_dealdamage event_var(userid) event_var(attacker) server_var(wcs_damage);es est_csay event_var(userid) Fireshield!;es est_csay event_var(attacker)Fireshield!"
"racealias_fireshieldsfx""es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es est_effect 10 #a 0 sprites/flatflame.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 50 350 2 90 200 0 155 155 155 155 2;es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es_xmath wcs_z1 + 15;es est_effect 11 #a 0 sprites/flatflame.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 3 3 255;es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(attacker);es es_xif (server_var(wcs_dice) <= 15) then es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 event_var(userid);es es_xif (server_var(wcs_dice) <= 15) then es_xif (server_var(wcs_alive) = 1) then est_Effect 3 #a 0 sprites/flatflame.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 100 255 55 255"
"skill2_cmd"        "es es_xif (server_var (wcs_dice) <= server_var (wcs_chance)) then es es_xif (server_var(wcs_rand) = 1) then est_isalive wcs_alive event_var(attacker);es es_xif (server_var(wcs_rand) = 1) then es_xif (server_var(wcs_alive) = 1) then racealias_fireshield"
"skill2_sfx"        "es es_xif (server_var (wcs_dice) <= server_var (wcs_chance)) then racealias_fireshieldsfx"
 

Second: It's a player_ultimate skill. It's basicly a skill that set the person on fire, making heavy damage for period of time, by just looking at the victim.
I am still not sure how I can increase the damage made by the fire, which I also need some help for.
Code
GeSHi (eventscripts):
"skill4_setting"    "es_xsetinfo wcs_chance 28|es_xsetinfo wcs_chance 30|es_xsetinfo wcs_chance 32|es_xsetinfo wcs_chance 35|es_xsetinfo wcs_chance 37|es_xsetinfo wcs_chance 40|es_xsetinfo wcs_chance 42|es_xsetinfo wcs_chance 45"
"racealias_hellfire" "es est_getviewcoord event_Var(userid) wcs_x1 wcs_y1 wcs_z1;es est_Burn event_var(userid) 3;es es_xtell event_var(userid) #multi #lightgreenYou have been #greenBurned #lightgreenby a #greenDemon;es es_xtell event_var(attacker) #multi #lightgreenYou have #greenBurned #lightgreenyour #greenEnemy!"
"racealias_hellfiresfx""es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es est_effect 10 #a 0 sprites/flatflame.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 50 350 2 90 200 0 155 155 155 155 2;es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es_xmath wcs_z1 + 15;es est_effect 11 #a 0 sprites/flatflame.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 3 3 255;es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(attacker);es es_xif (server_var(wcs_dice) <= 15) then es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 event_var(userid);es es_xif (server_var(wcs_dice) <= 15) then es_xif (server_var(wcs_alive) = 1) then est_Effect 3 #a 0 sprites/flatflame.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 100 255 55 255"
"skill4_cmd"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then racealias_hellfire"
"skill4_sfx"        "es es_xif (server_var (wcs_dice) <= server_var (wcs_chance)) then racealias_hellfiresfx"
 
Logged
WCA | Maxxi [NL]
Level 7 Expert
*****
Offline Offline

Netherlands Netherlands

Posts: 1107



WWW
16maxpayne16

myServer 84.243.214.217:27015
(Warning: click connects through Steam)
« Reply #1 on: March 23, 2009, 04:57:34 PM »

you cannot increase the damage of the fire
Logged

Server = work in progress Smiley

Hiro
Level 0 Beginner

Offline Offline

Denmark Denmark

Posts: 4




6500
chipsnsparx
« Reply #2 on: March 23, 2009, 05:03:52 PM »

Uhm What about the others then?
Are there anything in them, that I should change?
I've driven them through the scribt thing and it says no errors so far.
Logged
WCA | Maxxi [NL]
Level 7 Expert
*****
Offline Offline

Netherlands Netherlands

Posts: 1107



WWW
16maxpayne16

myServer 84.243.214.217:27015
(Warning: click connects through Steam)
« Reply #3 on: March 23, 2009, 05:17:19 PM »

first 1 est_burn event_var(victim) [time here]

and the other 1 is to big for now i have to leave Tongue
Logged

Server = work in progress Smiley

WCA | Berettonawak [FR]
Watchdogs
Level 7 Expert
*****
Offline Offline

France France

Posts: 1689


Big Berettonawak is watching you...



Bifkids

myServer 81.93.251.44:27015
(Warning: click connects through Steam)
« Reply #4 on: March 23, 2009, 06:53:21 PM »

you can't modify the dmg, but you can add some Tongue
(wcs_dealdamage)
Logged


MY INTERNET:
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
Today at 03:28:44 AM
Yea ramon TC had made some coding mistakes that were crashing it at least that is how it appears, I delt with it.
Today at 12:02:21 AM
koshy server crash!! twice last 2 hours
March 28, 2009, 11:47:27 PM
Anybody want to help me out on a skill Im stuck on?
March 28, 2009, 09:35:48 PM
Hi... Not Much
March 28, 2009, 07:18:40 PM
Hi all, whats up?
March 28, 2009, 06:37:18 PM
March 28, 2009, 04:56:09 PM
I looked your topic, you sure you don't have 0 on the prices? Grin
Recent
by Doku
[Today at 04:51:09 AM]

by Doku
[Today at 04:39:38 AM]

[Today at 04:29:03 AM]

[Today at 03:50:48 AM]

[Today at 01:52:27 AM]

[Today at 01:27:52 AM]

[Today at 01:15:22 AM]

[Today at 01:14:54 AM]

[Today at 12:13:20 AM]

[March 28, 2009, 11:50:42 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.158 seconds with 26 queries.