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, 08:05:25 AM *
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: skill help pls  (Read 61 times)
Mangekyou
Level 1 Trained Beginner
*
Offline Offline

Belgium Belgium

Posts: 23



« on: December 12, 2009, 01:53:47 PM »

hey everyone,

i was making a race that uses skulls, it should gain skulls by killing someone but it doesn't...

Code:
"skill1_setting"    "es_xset wcs_health 5|es_xset wcs_health 10|es_xset wcs_health 15|es_xset wcs_health 20"
    "skill1_cmd"        "es es_xif (server_var(wcs_dice) <= 50) then racealias_art1;es es_xif (50 <= server_var(wcs_dice)) then racealias_arthp"
  "racealias_art1"      "es_xset wcs_tmp 0;es_keygetvalue wcs_tmp WCSuserdata event_var(attacker) skulls;if (server_var(wcs_tmp) = 0) then es_xset wcs_tmp 0;es_xmath wcs_tmp + 1;es_keysetvalue WCSuserdata event_var(attacker) skulls server_var(wcs_tmp);es es_xtell event_var(attacker) #multi #lichtgreen: you just recovered 1 #greenusefull skull"
  "racealias_arthp"     "es est_healthadd event_var(attacker) + server_var(wcs_health)
    "skill1_sfx"        "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(attacker);es es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 event_var(userid);est_effect 3 #a 0 sprites/halo01.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 5 5 61 216 255 255"

i've put it on player_kill, i can't seem to find out what is wrong :/


is there a way to make another thing like skulls? like bodies?   same as skulls but it's just called bodies. is there a way to make that?
« Last Edit: December 13, 2009, 11:54:47 AM by Mangekyou » Logged
Sasuke[Icetouch]
Level 7 Expert
*****
Offline Offline

Germany Germany

Posts: 174


FreeTimeCoder


« Reply #1 on: December 12, 2009, 02:57:03 PM »

You just have to create the keyvalue 'bodies' in WCSuserdata.
Look around the eventscripts page, http://www.eventscripts.com/pages/Es_key_commands, to get used to keys.
Logged

################################
Join our new Server with the newest Mod on it!

################################
Mangekyou
Level 1 Trained Beginner
*
Offline Offline

Belgium Belgium

Posts: 23



« Reply #2 on: December 12, 2009, 03:25:15 PM »

but where is WCSuserdata? :s

EDIT:

i searched every file to look how skull is set up, the only files where skull is being used in are : es_wcsusers.txt , es_wcslanguage.txt and es_wcsraces_db.txt.
so the only usefull file i found was wcsusers

i only found this
Code:
// get skulls
     es_keygetvalue wcs_tmp1 WCSuserdata server_var(wcs_key) "skulls"
     wcs_getlanguage "wcs_lng" "wcs_lng_skulls"
     if (server_var(wcs_tmp1) != "0") then es_xformat wcs_text "%1 o %2 : %3\n" server_var(wcs_text) server_var(wcs_lng) server_var(wcs_tmp1)

there it says es_keygetvalue, so it means somewhere it created the key right? where is that?
« Last Edit: December 12, 2009, 03:41:43 PM by Mangekyou » Logged
Sasuke[Icetouch]
Level 7 Expert
*****
Offline Offline

Germany Germany

Posts: 174


FreeTimeCoder


« Reply #3 on: December 12, 2009, 03:37:49 PM »

WCSuserdata is temporarily saved in your server cache. It's just like a table, or a keylist. Did you go on the Link I posted?
Read that and you'll have a better understanding of it.

Ps: If a player leaves your server, his WCSuserdata will be deleted from the list.
Logged

################################
Join our new Server with the newest Mod on it!

################################
Mangekyou
Level 1 Trained Beginner
*
Offline Offline

Belgium Belgium

Posts: 23



« Reply #4 on: December 12, 2009, 06:27:47 PM »

i understand a bit of the keygroups now but where is the keyvalues of skulls created?
« Last Edit: December 12, 2009, 06:29:18 PM by Mangekyou » Logged
xpxdoo
Level 0 Beginner

Offline Offline

United States United States

Posts: 19



« Reply #5 on: December 12, 2009, 06:41:43 PM »

It is created in your racealias_art1

The skill creates the key value when it is activated.
Logged
Mangekyou
Level 1 Trained Beginner
*
Offline Offline

Belgium Belgium

Posts: 23



« Reply #6 on: December 12, 2009, 06:59:15 PM »

aaaaaaah Smiley

ty now i get it Smiley


but what is wrong about getting the skulls with that skill?


i noticed the prob with racealias_arthp

 "racealias_arthp"     "es est_health event_var(userid) + server_var(wcs_health)
should be
 "racealias_arthp"     "es est_health event_var(attacker) + server_var(wcs_health)

but that doesn't do anything about getting the skulls right?
« Last Edit: December 12, 2009, 08:53:43 PM by Mangekyou » Logged
CA.Berettonawak
Le renommé méconnu...
Watchdogs
Level 7 Expert
*****
Offline Offline

France France

Posts: 2887


Big Berettonawak is watching you...


WWW
Bifkids
« Reply #7 on: December 13, 2009, 11:53:28 AM »

What should your skill do?
Logged

Quote from: N0life
Beret, keep yourself focusing on 1 project. Be sure to memorize that down since it sounds good.
Quote from: myself
i love tuna juice Cheesy
Quote from: Pietro
=CA= Pietro: back
=CA= Pietro: sorry, was downstair sharing my chocolate with my cat
=CA= Pietro: you should see his face when he ate it xD
Quote from: myself
=CA= Berettonawak: just because you don't have hope doesn't mean we're doomed
Mangekyou
Level 1 Trained Beginner
*
Offline Offline

Belgium Belgium

Posts: 23



« Reply #8 on: December 13, 2009, 12:45:37 PM »

it should get have 50% chance to get get a body when u kill someone or else 50% chance to gain 20 hp

but it all works now Smiley
ty peeps Smiley
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
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
January 02, 2010, 10:09:16 PM
Welcome back Pietro Tongue
January 02, 2010, 10:06:04 PM
Welcome back Eric Tongue
Recent
[Today at 07:30:40 AM]

[Today at 07:24:28 AM]

[Today at 02:55:13 AM]

[Today at 12:24:21 AM]

[Today at 12:05:09 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]

[January 02, 2010, 09:32:57 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.101 seconds with 25 queries.