Skills:
- Skill 1 - Tauren Hammer: Use your mighty tauren hammer to beat their heads in. Well its a knife skill that does 15 damage per level, and is supposed to have a brown ring 3... Doesn't work...
- Skill 2 - Instinct: Evasion... thats all it really is. Still doesn't work...
- Skill 3 - Call of the Wild: Big thing of armor when you spawn. Makes the chirpy noise thing.
- Skill 4 - Ultimate/ War Stomp: Flings enemies into the air, but it was taken from Entangle because I didn't know how to code this. Doesn't work aswell.
Code
GeSHi (python):'''
Tauren Warrior by LordOfSuicide
'''
import es, wcs, gamethread, random, popuplib, playerlib
from wcs import wcs
name = 'Tauren Warrior'
race = wcs.Race(name)
race.registerSkill('Tauren Hammer', 5, 2, "Beat their heads in with your mighty hammer.")
race.registerSkill('Instinct', 5, 3, "Your instinct allows you to dodge bullets.")
race.registerSkill('Call of the Wild', 10, 1, "Natures vines give you tough armour.")
race.registerUltimate('War stomp', 10, 3, 3, "Use your mighty legs to knock them into the air.")
allowed_weapons = ('knife','hegrenade')
race.registerWeaponRestriction('allow only',allowed_weapons)
def player_hurt(ev):
aid = ev['attacker']
uid = ev['userid']
wpn = ev['weapon']
Hammer = wcs.GetLevel(aid, name, 'Tauren Hammer')
if wpn == 'knife':
player = wcs.Command(userid)
player.Damage(Hammer * 15 , 128, aid)
effect = wcs.Effect()
effect.Ring3(victim, 150, 5, 150, 78, 0)
sound = 'ambient/misc/hammer3.wav'
es.emitsound('player',uid,sound,0.5,0.5)
if attacker:
damage = int(event_var['dmg_health'])
instinct = wcs.GetLevel(aid, name, 'Instinct')
if instinct:
if instinct >= random.randint(instinct * 3,100):
wcs.Command(userid).Heal(damage)
es.tell(userid, '#multi', '#lightgreenInstinct #default- #greenYou fight with your heart and escaped from %s damage.'%damage)
def player_spawn(ev):
uid = ev['userid']
CotW = wcs.GetLevel(uid, name, 'Call of the Wild')
wcs.Command(uid).Armor(CotW * 50)
sound = 'ambient/animal/bird2.wav'
es.emitsound('player',uid,sound,0.5,0.5)
wcs.Effect().Misc6(uid,5,1)
def player_ultimate_on(event_var):
uid = int(event_var['userid'])
tem = int(es.getplayerteam(userid))
if tem == 2:
filter = '#ct'
elif tem == 3:
filter = '#t'
war = wcs.GetLevel(uid, name, 'War Stomp')
if war:
wcs.Command(uid).Near(150 * war,pgtw,filter)
wcs.Command(uid).SetCoolDown('War Stomp',30)
def pgtw (userid, attacker):
wcs.Command(ev['userid']).Push(0,0,250)
wcs.Effect().Ring1(ev['attacker'], 250, 5, 255, 255, 255)
es.tell(userid, '#lightgreen', 'WAR STOMP!')
EDIT* Did what you guys said, but the skills still do not work for some reason. :
:






United States
Logged



Denmark

