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-02-21 (original capture). Home · Forum · All archived topics · Downloads

Author Topic: why wont it work?  (Read 156 times)

Offline snuffe93

  • Level 1 Trained Beginner
  • *
  • Posts: 27
why wont it work?
« on: April 18, 2009, 10:03:33 AM »
Hey umm i made a race called Vaizard.. and can anyone please tell me why it wont work on the server?

REMOVED EXTERNAL LINK.

The link above is to download the vaizard race.. can anyone tell me the problem quick? :P
« Last Edit: April 20, 2009, 07:21:39 PM by WCA | Berettonawak [FR] »
[DT] DarkSiith

Offline CA.Berettonawak

  • Le renomm� m�connu...
  • Watchdogs
  • Level 7 Expert
  • *****
  • Posts: 2953
  • Big Berettonawak is watching you...
    • Coding-Alliance.Com : A bunch of coders? Why not a bunch of players? :P
Re: why wont it work?
« Reply #1 on: April 20, 2009, 07:22:10 PM »
Please post the race here, not on a site full of viruses.
I have been, and will be deleting all links to such things.
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 :D

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


Offline snuffe93

  • Level 1 Trained Beginner
  • *
  • Posts: 27
Re: why wont it work?
« Reply #2 on: April 20, 2009, 09:38:38 PM »
Code: (eventscripts) [Select]
'''
Vaizard WCS:Python Race Coded By: DarkSiith
'''
import wcs, es, random, playerlib, gamethread
from wcs import wcs

info = es.AddonInfo()
info.name = 'Vaizard'
info.author = 'DarkSiith'

RaceName = wcs.Race("Vaizard")

wcs.Race(RaceName).registerSkill('Schakle', 2, 1,"Schakle your enemies and make them unable to move for 5 sec")
wcs.Race(RaceName).registerSkill("Frost Wave", 1, 1,"Shoot a wave of frost at your enemy to push them away")
wcs.Race(RaceName).registerSkill("Heart Breath", 1, 1,"Their hearts slowly breaths to a end")
wcs.Race(RaceName).registerUltimate("Frozen Water", 8, 8, 1,"Everyone freezes were you walk for a few seconds")
wcs.Race(RaceName).registerMinLevel(20)
wcs.Race(RaceName).registerWeaponRestriction('allow only', ('knife','glock','usp'))

def load():
    es.msg('Vaizard loaded: Made by %s'%info.author)

def unload():
    es.msg('Vaizard unloaded: Made by %s'%info.author)

def player_hurt(event_var):
attacker = event_var['attacker']
userid = event_var['userid']
schakle_level = wcs.GetLevel(attacker,'Vaizard','Schakle')
if schakle_level:
    wcs_rand = random.randint(1,10)
    if wcs_rand <= schakle_level:
       player = wcs.Command(userid)
   player.Freeze(schakle_level * 2)
Wave_level = wcs.GetLevel(attacker,'Vaizard','Frost Wave')
if Wave_level:
    wcs_rand = random.randint(1,5)
    if wcs_rand <= Wave_level:
       player = wcs.Command(userid)
   player.PushTo(1,1,10,20)
Heart_level = wcs.GetLevel(attacker,'Vaizard','Heart Breath')
if Heart_level:
    wcs_rand = random.randint(1,12)
    if wcs_rand <= Heart_level:
       player = wcs.Command(userid)
   player.Drain(5,2,12)
def player_ultimate(event_var):
    Water_level = wcs.GetLevel(userid, 'Vaizard', 'Frozen Water')
player = wcs.Command(userid)
player.SetCoolDown('Frozen Water',20)
Water_level = wcs.GetLevel(attacker, 'Vaizard',"Frozen Water")
player.Near(Water_level * 50, freeze)
def freeze(userid, attacker):
    player = wcs.Command(userid)
player.Freeze(10)
att = wcs.Command(attacker)
att.Color('blue')
gamethread.delayed(10,att.Color)
us = wcs.Command(userid)
us.Color('blue')
gamethread.delayed(10,us.Color)
« Last Edit: April 25, 2009, 08:13:37 AM by snuffe93 »
[DT] DarkSiith

Offline CA.Berettonawak

  • Le renomm� m�connu...
  • Watchdogs
  • Level 7 Expert
  • *****
  • Posts: 2953
  • Big Berettonawak is watching you...
    • Coding-Alliance.Com : A bunch of coders? Why not a bunch of players? :P
Re: why wont it work?
« Reply #3 on: April 22, 2009, 12:46:48 PM »
You didn't define Racename :P
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 :D

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


Offline snuffe93

  • Level 1 Trained Beginner
  • *
  • Posts: 27
Re: why wont it work?
« Reply #4 on: April 23, 2009, 09:14:08 PM »
ah ^^ *hugz*
[DT] DarkSiith

Offline CA.Berettonawak

  • Le renomm� m�connu...
  • Watchdogs
  • Level 7 Expert
  • *****
  • Posts: 2953
  • Big Berettonawak is watching you...
    • Coding-Alliance.Com : A bunch of coders? Why not a bunch of players? :P
Re: why wont it work?
« Reply #5 on: April 24, 2009, 08:43:10 AM »
race = wcs.Race("Vaizard")

--->

RaceName = wcs.Race("Vaizard")
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 :D

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


Offline snuffe93

  • Level 1 Trained Beginner
  • *
  • Posts: 27
Re: why wont it work?
« Reply #6 on: April 25, 2009, 08:13:55 AM »
fixed it above :P
[DT] DarkSiith