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-06-18 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
June 18, 2009, 03:55:21 PM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: WCS Tournament being opened for applications!

Post here for signups!
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: Need some help plox  (Read 82 times)
thegreatone5224
Level 5 Trained Intermediate
*****
Online Online

United States United States

Posts: 139




thegreatone52
thegreatone5224
« on: June 15, 2009, 02:18:19 AM »

Hey guys! Its been quite a while since I've been on here as I lost my server some time back and now I got a new one and I'm ready to code but....I didn't do enough coding last time around for EVERYTHING to stick so I need some help.

This is my skill:
Code:
    "skill8_setting"    "es_xset wcs_titans_speed 0.04;es_xset wcs_titans_dmg 1|es_xset wcs_titans_speed 0.08;es_xset wcs_titans_dmg 2|es_xset wcs_titans_speed 0.12;es_xset wcs_titans_dmg 3|es_xset wcs_titans_speed 0.16;es_xset wcs_titans_dmg 4|es_xset wcs_titans_speed 0.2;es_xset wcs_titans_dmg 5"
    "skill8_cmd"        "es es_xset wcs_tmp 0;es playerget speed wcs_tmp event_var(userid);es es_math wcs_tmp + server_var(wcs_titans_speed);es es_xdelayed est_speed event_var(userid) server_var(wcs_tmp);es es_xtell event_var(userid) #multi #greenYour speed is server_var(wcs_tmp);es es_xdelayed 0.5 es_xkeysetvalue WCSuserdata event_var(userid) titan 1"
    "skill8_sfx"        "0"

I've added:
Code:
    es_keysetvalue WCSuserdata event_var(userid) "titan" "0"

and
Code:
      // checks to see if the titan skill is active
      es_xset wcs_titan 0
      es_keygetvalue wcs_titan WCSuserdata event_var(attacker) titan
      if (wcs_titan == 1) then wcs_dealdamage event_var(attacker) event_var(userid) server_var(wcs_titan_dmg)
to the wcs.txt file

Now this code is suppose to increase speed and damage but the damage part doesn't go up. Because its a player_spawn the key should be set at the beginning around enabling it to work properly. Any ideas on why it isn't working?
Logged
WCA | Maxxi [NL]
WCS Supporter
Level 7 Master
*****
Offline Offline

Netherlands Netherlands

Posts: 1405



WWW
16maxpayne16

myServer 84.243.214.217:27015
(Warning: click connects through Steam)
« Reply #1 on: June 15, 2009, 08:47:29 AM »

were did you add the keyvalue and were did you add the check
Logged

thegreatone5224
Level 5 Trained Intermediate
*****
Online Online

United States United States

Posts: 139




thegreatone52
thegreatone5224
« Reply #2 on: June 15, 2009, 09:20:18 PM »

Put the keyvalue part with all the other keyvalues in the wcs.txt, I believe it is under event player_spawn with the other ones that are built into it? The check is under event player_hurt
« Last Edit: June 15, 2009, 09:30:47 PM by thegreatone5224 » Logged
thegreatone5224
Level 5 Trained Intermediate
*****
Online Online

United States United States

Posts: 139




thegreatone52
thegreatone5224
« Reply #3 on: June 16, 2009, 06:27:26 PM »

Anyone have and ideas at all?
Logged
WCA | Maxxi [NL]
WCS Supporter
Level 7 Master
*****
Offline Offline

Netherlands Netherlands

Posts: 1405



WWW
16maxpayne16

myServer 84.243.214.217:27015
(Warning: click connects through Steam)
« Reply #4 on: June 16, 2009, 09:47:25 PM »

put the key for dmg in player_hurt and

if blaa do
{

dmg here
}

and you have to create if ofcourse
Logged

thegreatone5224
Level 5 Trained Intermediate
*****
Online Online

United States United States

Posts: 139




thegreatone52
thegreatone5224
« Reply #5 on: June 17, 2009, 01:16:45 AM »

Not completely sure what you mean...

I made this event in the ultimate file as the event weapon_fire worked fine so this should as well, put it there just so it was better organized but this is what it looks like:
Code:
event player_hurt
{
es_xset wcs_juggernaut 0
es_keygetvalue wcs_juggernaut WCSuserdata event_var(attacker) juggernaut
if (server_var(wcs_juggernaut) == 1) do
{
es wcs_dealdamage event_var(attacker) event_var(userid) server_var(wcs_juggernaut_dmg)
}

es_xset wcs_titan_tmp 0
es_keygetvalue wcs_titan_tmp WCSuserdata event_var(attacker) titan
if (server_var(wcs_titan_tmp) == 1) do
{
es wcs_dealdamage event_var(attacker) event_var(userid) server_var(wcs_titan_dmg)
}
}

Why would I set the key in the player hurt?

The spot where the key is is this
Code:
    // reset skill effects
    es est_SetGravity event_var(userid) 1.0
    es est_SetPlayerColor event_var(userid) 255 255 255 255 1
    es est_Fade event_var(userid) 0 0.3 0 255 255 255 100
    es est_God event_var(userid) 0
    es est_Speed event_var(userid) 1.0
   
    es wcs_showxp event_var(userid)
    es_keysetvalue WCSuserdata event_var(userid) "juggernaut" "0"
    es_keysetvalue WCSuserdata event_var(userid) "titan" "0"
    es_keysetvalue WCSuserdata event_var(userid) "gravity" "0"
    es_keysetvalue WCSuserdata event_var(userid) "regeneration" "0"
    es_keysetvalue WCSuserdata event_var(userid) "speed" "1.0"
    // ulti immunity moved to death
    es_keysetvalue WCSuserdata event_var(userid) "restricted" "0"
    es_keysetvalue WCSuserdata event_var(userid) "ismole" "0"
    es_keysetvalue WCSuserdata event_var(userid) "silentwalk" "0"
    es_keysetvalue WCSuserdata event_var(userid) "longjump" "0"
    es_keysetvalue WCSuserdata event_var(userid) ability 0
    // Serpent Ward item stuff
es_keysetvalue WCSuserdata event_var(userid) swardinvul 0
    es_keysetvalue WCSuserdata event_var(userid) swardresist 0
   
    es_keygetvalue wcs_tmp WCSuserdata event_var(userid) skillcheck
    if (server_var(wcs_tmp) = "1") then wcs_skillcheck event_var(userid)
    // check for weapon reincarnation
    es_keygetvalue wcs_tmp WCSuserdata event_var(userid) "reincarnation"
    if (server_var(wcs_tmp) = "1") then es_xdoblock wcs/WCSfunctions/wcs_giveweapons
    es_keysetvalue WCSuserdata event_var(userid) "reincarnation" "0"
    // means 0% invis = 100% visible
    es_keysetvalue WCSuserdata event_var(userid) invisp 0
    es_keygetvalue wcs_mole WCSuserdata event_var(userid) mole
    ifx true(wcs_mole) do
    {
      es_keysetvalue WCSuserdata event_var(userid) mole 0
      es_delayed 1 wcs_mole_activate event_var(userid)
    }

Now what confuses me is that when I tested it to make sure the value was being it set it works, I can get it and throw it in a msg that shows its value is 1 instead of 0. When I put it in event player_hurt like I did above though, it doesn't register at all.

Appreciate the help and sorry if I don't fully understand what you are saying
Logged
WCA | Maxxi [NL]
WCS Supporter
Level 7 Master
*****
Offline Offline

Netherlands Netherlands

Posts: 1405



WWW
16maxpayne16

myServer 84.243.214.217:27015
(Warning: click connects through Steam)
« Reply #6 on: June 17, 2009, 09:01:44 AM »

dont use == but = in es if im right

or ifx true(var) do..   but the var not between quotes
Logged

thegreatone5224
Level 5 Trained Intermediate
*****
Online Online

United States United States

Posts: 139




thegreatone52
thegreatone5224
« Reply #7 on: June 17, 2009, 10:34:20 PM »

changed the == to = and it still didn't work

dunno how ifx true(wcs_titan_tmp) do works though
Logged
WCA | Maxxi [NL]
WCS Supporter
Level 7 Master
*****
Offline Offline

Netherlands Netherlands

Posts: 1405



WWW
16maxpayne16

myServer 84.243.214.217:27015
(Warning: click connects through Steam)
« Reply #8 on: June 17, 2009, 10:36:28 PM »

instead of
if (server_var(wcs_titan_tmp) == 1) do

ifx true(wcs_titan_tmp) do
{
    // code here
}
Logged

thegreatone5224
Level 5 Trained Intermediate
*****
Online Online

United States United States

Posts: 139




thegreatone52
thegreatone5224
« Reply #9 on: June 17, 2009, 11:04:57 PM »

still isn't working
Logged
WCA | Maxxi [NL]
WCS Supporter
Level 7 Master
*****
Offline Offline

Netherlands Netherlands

Posts: 1405



WWW
16maxpayne16

myServer 84.243.214.217:27015
(Warning: click connects through Steam)
« Reply #10 on: June 17, 2009, 11:07:28 PM »

es es_xdelayed es_x no es infront maybe?
Logged

thegreatone5224
Level 5 Trained Intermediate
*****
Online Online

United States United States

Posts: 139




thegreatone52
thegreatone5224
« Reply #11 on: Today at 01:05:55 AM »

didn't work

and for some reason my ultimate wont active the block its suppose to...its suppose to just say a simple message but the message never comes up
Logged
WCA | Maxxi [NL]
WCS Supporter
Level 7 Master
*****
Offline Offline

Netherlands Netherlands

Posts: 1405



WWW
16maxpayne16

myServer 84.243.214.217:27015
(Warning: click connects through Steam)
« Reply #12 on: Today at 08:21:39 AM »

you know you use server_var(wcs_userid) for ultimates (not events and stuff but the code in the race)
Logged

thegreatone5224
Level 5 Trained Intermediate
*****
Online Online

United States United States

Posts: 139




thegreatone52
thegreatone5224
« Reply #13 on: Today at 03:43:51 PM »

Not an ultimate
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
Today at 12:33:30 AM
"You could have simply private messaged him -.-

OFC it isn't an ad... *wink* *wink*" i sense you dont like us?
June 17, 2009, 11:15:02 PM
Smiley
June 17, 2009, 10:57:37 PM
Haha Maxxi
June 17, 2009, 10:45:46 PM
Koshy what's your site by the way?

(then we'll say it's ok, right?)
June 17, 2009, 10:35:16 PM
why go to the trouble to click all the way to messages(im really lazy^^)
June 17, 2009, 10:33:41 PM
You could have simply private messaged him -.-

OFC it isn't an ad... *wink* *wink*
June 17, 2009, 10:33:16 PM
aha our site Cheesy
Recent
[Today at 03:43:51 PM]

[Today at 03:42:49 PM]

[Today at 01:50:38 PM]

[Today at 01:35:28 PM]

[Today at 09:46:37 AM]

[Today at 08:29:11 AM]

[Today at 08:27:58 AM]

[Today at 08:20:30 AM]

[Today at 08:13:39 AM]

[Today at 08:10:18 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.06 seconds with 26 queries.