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-12-06 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
December 06, 2008, 12:21:04 PM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Hall of Fame
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: Give Armor...  (Read 203 times)
Boxin
Level 0 Beginner

Offline Offline

United States United States

Posts: 7


Suprise Buttsecks!


WWW
aducross
aducross
« on: December 30, 2007, 11:08:38 PM »

Hello there . Yes, I am new, but I have been viewing the forums for sometime, looking at everything that's answered my questions about scripting or the WCS itself. I have been scripting for about a month now (with a lot of from this site) and I have a question I'd like to ask, which probably be very simple, but here it is. I was trying out writing my own script from scratch, instead of the usual copy & paste, and I got stuck on this:

    "skill3_setting"    "es_xsetinfo wcs_hb 20|es_xsetinfo wcs_hb 25|es_xsetinfo wcs_hb 30|es_xsetinfo wcs_hb 35|es_xsetinfo wcs_hb 40|es_xsetinfo wcs_hb 55|es_xsetinfo wcs_hb 60"
    "skill3_cmd"        "es est_Health event_var(userid) + server_var(wcs_hb);es es_xdelayed 0.5 es_xtell event_var(userid) #multi #Lightgreen : You gained #Green server_var(wcs_hb) #Lightgreen extra health"

I'm pretty sure on the obvlivious parts like "es est_Health" should be "es est_Armor" for armor, and "You gained #Green server_var(wcs_hb) #Lightgreen extra armor", but I'm a bit confused on the "hb" parts. What should the code for that be? Armor? Or a shorthand version like health is?
Logged
Espeladden
Pwning ultra sexy beastly hot legend
Level 7 Expert
*****
Offline Offline

Norway

Posts: 588



WWW
Gastingor
Mursat

myServer 74.86.98.64:27017
(Warning: click connects through Steam)
« Reply #1 on: January 17, 2008, 10:36:34 AM »

Wouldnt est_armor work here? Atleast thats what I normally use
Logged

[H.F.M.]Rasmus{Chef}
WCS Supporter
Level 7 Expert
*****
Offline Offline

Denmark Denmark

Posts: 889




Rasmus4J
rasmus4j

myServer 85.190.17.115:27015
(Warning: click connects through Steam)
« Reply #2 on: January 17, 2008, 10:41:55 AM »

what do you mean by hb?
please explain it a little more...
Logged

Espeladden
Pwning ultra sexy beastly hot legend
Level 7 Expert
*****
Offline Offline

Norway

Posts: 588



WWW
Gastingor
Mursat

myServer 74.86.98.64:27017
(Warning: click connects through Steam)
« Reply #3 on: January 17, 2008, 12:35:53 PM »

    "skill4_setting"   "es_xsetinfo wcs_armor 25|es_xsetinfo wcs_armor 50|es_xsetinfo wcs_armor 75|es_xsetinfo wcs_armor 100|es_xsetinfo wcs_armor 120"
    "skill4_cmd"       "es est_Armor event_var(userid) + server_var(wcs_armor);es es_xtell event_var(userid) #lightgreen Your armor has been Upgraded in server_var(wcs_armor) point(s)"
    "skill4_sfx"       "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es es_xgetplayerlocation"   


That is one of Nova's skills.. No point in re-making it when its already made.
« Last Edit: January 17, 2008, 12:38:21 PM by Espeladden » Logged

Boxin
Level 0 Beginner

Offline Offline

United States United States

Posts: 7


Suprise Buttsecks!


WWW
aducross
aducross
« Reply #4 on: January 25, 2008, 12:38:10 AM »

I wasn't asking for a remake, just some . Thanks.
Logged
Zero Skillz
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 522




Zero Skillz (<-[SD]->madcow)
madcow767
« Reply #5 on: January 25, 2008, 01:03:29 AM »

Ya i just recently coded one, its in Hollidays forums tho if you wanna take a look but w/e anything works i guess..
Logged

Espeladden
Pwning ultra sexy beastly hot legend
Level 7 Expert
*****
Offline Offline

Norway

Posts: 588



WWW
Gastingor
Mursat

myServer 74.86.98.64:27017
(Warning: click connects through Steam)
« Reply #6 on: January 25, 2008, 06:11:41 PM »

dont understand why u cant use that one, but whatever.. Do what u want, its not me waisting time on something pointless
Logged

[H.F.M.]Rasmus{Chef}
WCS Supporter
Level 7 Expert
*****
Offline Offline

Denmark Denmark

Posts: 889




Rasmus4J
rasmus4j

myServer 85.190.17.115:27015
(Warning: click connects through Steam)
« Reply #7 on: January 27, 2008, 03:46:52 PM »

i think the easiest way might be to do a wcs_chance and then a racealias using es est_ArmorAdd event_var(userid) <amount of armor>... thats what i have done
Logged

KaBoom
Level 4 Intermediate
****
Offline Offline

United States United States

Posts: 92


Sorta know Python. . .



famaskaboom
« Reply #8 on: February 15, 2008, 11:22:54 PM »

Sorry for reviving this topic, but just to let you know, if you come back, wcs_hb is just a variable. You can name it anything you want.
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.
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
December 04, 2008, 09:57:56 PM
gg
December 04, 2008, 09:46:16 PM
hey guys, how are you?
gonna sleep, cya tomorrow
December 03, 2008, 12:45:48 PM
@ bombkill : all mods should be compatible with WCS... but we can't be sure
@retrokboy : css server? provider? other mods?
December 03, 2008, 01:49:25 AM
I NEED SERVER HELP MY FORUM IS IN BUG REPORT PLEASE REPLY I NEED HALP
December 02, 2008, 10:05:01 PM
does anyone know where all the wcs compatible mods are listed or a website i can find them
December 02, 2008, 08:24:47 PM
/agree
Recent
[Today at 09:15:37 AM]

[Today at 08:33:01 AM]

[Today at 12:26:04 AM]

[December 05, 2008, 10:26:03 PM]

[December 05, 2008, 08:10:32 PM]

[December 05, 2008, 07:51:01 PM]

[December 05, 2008, 07:33:12 PM]

[December 05, 2008, 07:11:25 PM]

[December 05, 2008, 06:44:09 PM]

[December 05, 2008, 12:14:07 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.052 seconds with 25 queries.