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 2010-01-03 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
January 03, 2010, 12:46:05 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 [2]   Go Down
  Print  
This topic has not yet been rated! You have not rated this topic. Select a rating:
Author Topic: Need someone to check my code.  (Read 119 times)
AvasT
Level 7 Expert
*****
Offline Offline

Brazil Brazil

Posts: 723




doug_tiozao
« Reply #15 on: December 02, 2009, 01:24:12 AM »

EST Syntax : est_GetTeam <cvar> <players>
EST Syntax : est_CashAdd <players> <value>

Its pretty easy, some guys are just complicating...

You don't need getteam just use a check for team..

Here is the skill:

Code:
    "skillX_setting"    "es_xset tmoney AMOUNT;es_xset ctmoney AMOUNT;es_xset chance AMOUNT"
    "racealias_ctcash"  "es est_cashadd #ct server_var(ctmoney);es_tell event_var(userid) #multi #default You Won #lightgreenserver_var(ctmoney)"
    "racealias_tcash"   "es est_cashadd #t server_var(tmoney);es_tell event_var(userid) #multi #default You Won #lightgreenserver_var(tmoney)"
    "racealias_tfailed" "es_tell event_var(userid) #multi #default Sorry, you weren't lucky enough to win server_var(tmoney)"
    "racealias_ctfailed""es_tell event_var(userid) #multi #default Sorry, you weren't lucky enough to win server_var(ctmoney)"
    "skillX_cmd"        "if (event_var(es_userteam) = 2) then if (server_var(wcs_dice) <= server_var(chance)) then racealias_tcash;if (event_var(es_userteam) = 3) then if (server_var(wcs_dice) <= server_var(chance)) then racealias_ctcash;if (event_var(es_userteam) = 2) then if (server_var(wcs_dice) > server_var(chance)) then racealias_tfailed;if (event_var(es_userteam) = 3) then if (server_var(wcs_dice) > server_var(chance)) then racealias_ctfailed"
    "skillX_sfx"        "0"
Logged

Lol?
gimik
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 187



« Reply #16 on: December 02, 2009, 01:30:14 AM »

Haha that is easy enough, so just make the setting set t and ct money to a value, and put in the chance. Make some racealias for depending what team i'm on, and make some racealias for if the skill fails (For humor i'm guessing) its not required right?

Thank you for coding it for me, and going out of your way. You've been very helpful in all my posts! <3
Logged




AvasT
Level 7 Expert
*****
Offline Offline

Brazil Brazil

Posts: 723




doug_tiozao
« Reply #17 on: December 02, 2009, 01:40:30 AM »

You're Welcome Smiley
I'm here to help Smiley
And yes, just do this and don't forget to change the word AMOUNT for the amount of cash you want!
Logged

Lol?
gimik
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 187



« Reply #18 on: December 02, 2009, 01:44:10 AM »

When i was inputting the code, i had a question about the setting.

Code:
"skillX_setting"    "es_xset tmoney AMOUNT;es_xset ctmoney AMOUNT;es_xset chance AMOUNT"

Should it be
Code:
"Skill1_setting" "es_xset tmoney_25;es_xset ctmoney_25;es_xset wcs_chance 10|

In your setting you didnt have the "_" underscore between tmoney_<amount> and you didnt have wcs_chance <x>. You just had es_xset chance <x>

I wasnt sure if this was intentional or not.
Logged




AvasT
Level 7 Expert
*****
Offline Offline

Brazil Brazil

Posts: 723




doug_tiozao
« Reply #19 on: December 02, 2009, 01:46:39 AM »

Don't put wcs_chance just use chance, i made this chance, wcs_chance is *** and yes for the tmoey and ctmoney!
JUST LET IT THE WAY IT ITS AND CHANGE THE AMOUNT Smiley  its ok! if you use underscore you'll have to change some things and it won't work.
just use
"es_xset tmoney 25;es_xset ctmoney 25;es_xset chance 10"
Logged

Lol?
gimik
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 187



« Reply #20 on: December 02, 2009, 01:48:26 AM »

Hmm, i guess you'll have to explain to me the difference some other time, right now ill go by what you say xD
Logged




gimik
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 187



« Reply #21 on: December 02, 2009, 02:03:50 AM »

I have another question, for the #lightgreen <text> how do you do that. Because people put the #lightgreen part in the middle of the sentence, which confuses me. I edited what you wrote can see check to see if i edited it correct?


Code:
    "racealias_ctcash"  "es est_cashadd #ct server_var(ctmoney);es_tell event_var(userid) #multi #default You get #lightgreenserver_var(ctmoney) #lightgreenFor Christmas"
    "racealias_tcash"   "es est_cashadd #t server_var(tmoney);es_tell event_var(userid) #multi #default You get #lightgreenserver_var(tmoney) *lightgreenFor Christmas"
    "racealias_tfailed" "es_tell event_var(userid) #multi #default Sorry, you were naughty and don't get server_var(tmoney)"
    "racealias_ctfailed""es_tell event_var(userid) #multi #default Sorry, you were naughty and dont't get server_var(ctmoney)"

Just to clarify, I'm not a creeper, I'm making a Santa Clause race for the hollidays  Smiley Smiley Smiley Smiley
Logged




AvasT
Level 7 Expert
*****
Offline Offline

Brazil Brazil

Posts: 723




doug_tiozao
« Reply #22 on: December 02, 2009, 02:06:17 AM »

What you mean?

It's correct just check a #lightgreen, instead of usingg "#" you're using "*"
Logged

Lol?
gimik
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 187



« Reply #23 on: December 02, 2009, 02:13:50 AM »

That "*" was a mistype.

When i find an example ill show you what i mean Cheesy

Thanks again!
Logged




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

Last 7 Shouts:
Today at 12:14:01 PM
how come this site is going down??
Today at 11:48:12 AM
if this site is going to be shut down....dont let me buy it Smiley
Today at 07:37:39 AM
who will be running this site... since most admin will be on other site
January 02, 2010, 11:33:33 PM
i mean if you start 100 cmd instances and type ping google.com in all, after a while it will show timeout, but site will still be only for everyone but you Tongue
January 02, 2010, 11:33:01 PM
no you don't Tongue
a site can barely "crash"
though, it can have a timeout, and in this case it's in most case your i-net connection which has the timeout with the site
January 02, 2010, 11:24:47 PM
i think i crash the http://www.fpsbanana.com/ site.... after spamming logging...lol
January 02, 2010, 10:10:49 PM
Well thank you Smiley fucker. Tongue
Recent
[Today at 12:15:04 PM]

[Today at 12:13:34 PM]

[Today at 11:58:35 AM]

[Today at 07:30:40 AM]

[Today at 02:55:13 AM]

[Today at 12:24:21 AM]

[January 02, 2010, 11:26:04 PM]

[January 02, 2010, 10:59:30 PM]

[January 02, 2010, 10:26:02 PM]

[January 02, 2010, 10:24:45 PM]
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.084 seconds with 23 queries.