• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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,198
[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