• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Ohai thur!

Status
Not open for further replies.
Level 2
Joined
Jul 17, 2008
Messages
21
  • 777
  • Events
  • Player - A player joins Hive Workshop
  • Conditions
  • Player - Player is equal to 777devil777
  • Actions
  • Sound - Play Sound DoomHasComeToThisWorld 01 <gen>
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
[URG], how unefficent. . . I mean look at that BJ call and the GUI condition tree. JASS is so much more efficent (faster).

Just Kidding,
Welcome to The Hive Workshop. I strongly recomend you read our site rules first of all to avoid any confusions. Next to that I hope you enjoy your stay.
 
Level 36
Joined
Jul 1, 2007
Messages
6,677
A BJ call in GUI? Lol, it takes skill to suck that much ^.^

JASS:
function Conditions takes nothing returns boolean
return GetPostBreaksRules(hive_rules)
endfunction

function Actions takes nothing returns nothing
local player user = GetPostingUser()
local integer warn = GetUserWarning(user)

if(warn < 3) then
call SetUserWarning(user) = warn + 1
call SetUserReputation(user, (GetUserReputation(user))-1)
else if(GetUserInfraction(user) < 10) then
call SetUserInfraction(user, (GetUserInfraction(user))+1)
else
call BannadarFunction(user, PERMA_BANNADAR)
endfunction

//================================================
local trigger trig = CreateTrigger()
call TriggerAddEvent(trig, USER_POSTS_IN_THREAD)
call TriggerAddCondition(trig, condition(Conditions))
call TriggerAddAction(trig, function Actions)
 
Status
Not open for further replies.
Top