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-13 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
December 13, 2008, 11:42:04 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  
Author Topic: +350 HP for Nick  (Read 52 times)
Namolem
Level 0 Beginner

Offline Offline

Russian Federation

Posts: 14



« on: December 10, 2008, 11:34:56 PM »

If nick containes number "0", player would get 350 HP on spawn.
Can be solved by restricting names:
Code:
import es
def player_activate(event_var):
if ("0" in event_var["es_username"]):
es.server.cmd("kickid %s No Null in nick!" % event_var["userid"])
def player_changename(event_var):
es.tell(event_var["userid"],event_var["name"])
if ("0" in event_var["newname"]):
es.server.cmd("kickid %s No Null in nick!" % event_var["userid"])
If there's any other solves please, say it to me
Logged

Sorry for english
Stinkyfax
I <3 WCS
Watchdogs
Level 7 Expert
*****
Offline Offline

Lithuania Lithuania

Posts: 1389



WWW
Xrushiov

myServer 84.55.62.45:27016
(Warning: click connects through Steam)
« Reply #1 on: December 10, 2008, 11:55:22 PM »

huh?
Logged

Namolem
Level 0 Beginner

Offline Offline

Russian Federation

Posts: 14



« Reply #2 on: December 11, 2008, 12:04:50 AM »

I was told that this bug is on all wcs servers, but I don't know 100%. It was on Mine
If you didn't understand my English
Any nick:
nick0nick
oo0oo
      0
Gives 350 HP to player after one round after nick-change
Logged

Sorry for english
Namolem
Level 0 Beginner

Offline Offline

Russian Federation

Posts: 14



« Reply #3 on: December 11, 2008, 12:33:56 PM »

Hm.. I saw this bug only on my server:
EventScripts 2.0.250 with corelib 2.0.248
es_tools .420
Russian translate - is the only different from other servers i tested
Where may be error?
Logged

Sorry for english
Berettonawak
Watchdogs
Level 7 Expert
*****
Online Online

France France

Posts: 843


Big Berettonawak is watching you...



Bifkids

myServer 85.190.38.136:27016
(Warning: click connects through Steam)
« Reply #4 on: December 11, 2008, 04:23:40 PM »

There's no such bug with WCS Shell... if this is a WCS Python bug, you aren't on the right forum Tongue
Logged

Stinkyfax
I <3 WCS
Watchdogs
Level 7 Expert
*****
Offline Offline

Lithuania Lithuania

Posts: 1389



WWW
Xrushiov

myServer 84.55.62.45:27016
(Warning: click connects through Steam)
« Reply #5 on: December 12, 2008, 12:14:36 PM »

this is only on your server.
Logged

Namolem
Level 0 Beginner

Offline Offline

Russian Federation

Posts: 14



« Reply #6 on: December 12, 2008, 01:03:55 PM »

Yes, I find the place of the error. It caused by one race:
Code
GeSHi (eventscripts):
"round_start_cmd"   "es est_GetHealth wcs_health event_var(userid);es es_xif (server_var(wcs_health) > 350) then es_xtell event_var(userid) #GREEN You have server_var(wcs_health) HP. MAX is 350!;es es_xdelayed 2.0 est_SetHealth event_var(userid) 350;es est_removeweapon event_var(userid) 2;es es_give event_var(userid) weapon_deagle;"
But why?
Logged

Sorry for english
Berettonawak
Watchdogs
Level 7 Expert
*****
Online Online

France France

Posts: 843


Big Berettonawak is watching you...



Bifkids

myServer 85.190.38.136:27016
(Warning: click connects through Steam)
« Reply #7 on: December 12, 2008, 02:09:32 PM »

This is not my race, i couldn't tell you why Cheesy
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
December 12, 2008, 11:37:45 PM
GGLife
December 12, 2008, 10:40:44 PM
HI IM AN ALCOHOLIC xD

ps : stan's dad
December 12, 2008, 07:28:22 PM
fine too Tongue
December 12, 2008, 06:21:52 PM
fine berett, u?
December 12, 2008, 05:41:25 PM
how are you guys?
December 12, 2008, 01:34:43 PM
the way i post it ? lol ? i just said look at this epic shiz.. and then some guy started out by me getting banned etc...
December 12, 2008, 01:28:50 PM
what do u mean ?
Recent
[Today at 11:39:36 AM]

[Today at 11:38:11 AM]

[Today at 10:58:39 AM]

[Today at 10:20:09 AM]

[Today at 08:00:25 AM]

[Today at 07:37:20 AM]

[Today at 06:30:02 AM]

[Today at 05:31:15 AM]

[Today at 01:33:38 AM]

[Today at 01:03:49 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 23 queries.