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, 05:59:44 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.
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: item checking  (Read 69 times)
chesslemac
Level 0 Beginner

Offline Offline

United States United States

Posts: 2



« on: October 09, 2009, 05:36:18 AM »

very very new coder here and was wondering if this looked remotely right, if its not could you please explain what and why if you have time Cheesy ( again new coder Sad )
Code:
"#"                   // unique ID !!
 {
   "name"        "Elemental Ammunition"
   "description" "10% chance to shake the enemies screen when you hit them."
   "category"    "3"
   "cost"        "6000"
   "level"       "0"
   "dab"         "1"
   "duration"    "1"
   "maxamount"   "1"
   "itemconfig"  "player_attacker"
   "cmdbuy"      "0"
   "shopalias_toe" "es est_shake(userid) 1 10 50;es es_xtell event_var(userid) #multi You have been #greenShaken;es es_xtell event_var(attacker) #multi You have #greenShaken your enemy"
   "cmdactivate" "es es_xif (server_var(wcs_dice) <= 10) then shopalias_toe"
 }
Logged
Yiyas
Level 7 Expert
*****
Offline Offline

United Kingdom

Posts: 221


The name's Bugger. De-Bugger.



no1yiyas
no1yiyas
« Reply #1 on: October 09, 2009, 12:17:16 PM »

Just that this "es est_shake(userid) 1 10 50" should be "es est_shake event_var(userid) 1 10 50" and its perfect I believe.
Logged

chesslemac
Level 0 Beginner

Offline Offline

United States United States

Posts: 2



« Reply #2 on: October 09, 2009, 01:05:30 PM »

thanks a bunch Smiley
Logged
Yiyas
Level 7 Expert
*****
Offline Offline

United Kingdom

Posts: 221


The name's Bugger. De-Bugger.



no1yiyas
no1yiyas
« Reply #3 on: October 09, 2009, 01:09:48 PM »

No worries and nice idea Smiley Never seen anyone add shake to shop.
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
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
January 02, 2010, 09:29:49 PM
Oh god how i hate you chuck.
Recent
[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]

[January 02, 2010, 09:23:12 PM]

[January 02, 2010, 09:01:48 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.082 seconds with 24 queries.