- Joined
- Jul 1, 2007
- Messages
- 6,677
It's the THW Rules jass trigger! (or auto-negrep trigger ;P)
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)