wc3edit.net

United Warcraft 3 map hacking!
It is currently January 6th, 2009, 7:51 am

 

All times are UTC




Post new topic Reply to topic  [ 35 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: Auto kick trigger
PostPosted: October 8th, 2008, 10:10 am 
Offline
Admin
User avatar

Joined: January 18th, 2007, 11:07 am
Posts: 588
Location: Ulm, Germany
Title: Der überwacher
How would it be possible to add a users name so that it is automatically detected by the game, then he is auto kicked?
I have been able to auto detect when a player is in a perticular color, and he types something in chat, but that snt practical.

_________________
Image


Top
 Profile  
 
 Post subject: Re: Auto kick trigger
PostPosted: October 8th, 2008, 12:56 pm 
Online
The Flying Cow!
User avatar

Joined: November 2nd, 2007, 10:34 pm
Posts: 1523
Location: Melbourne
Title: Uberfast Hacker
It'd be much easier to do this in JASS...

Code:
local string PlayerName="<REPLACE THIS WITH THE PLAYER NAME>" //Entirely lowercase!
local integer i=0

loop
exitwhen i>11
if GetPlayerName(Player(i))==StringCase(PlayerName,false)then
call CustomDefeatBJ(Player(i),"You are banned.")
endif
set i=i+1
endloop


Just like... make any trigger, convert it to Custom Text and then put the above text between "function blablabla_Actions takes nothing returns nothing" and "endfunction". And, of course, set PlayerName to the banned player's name ;). Also, don't forget to set the trigger to run on Map Initialization. HF XD

_________________
Experience is not what happens to you; it's what you do with what happens to you. - Aldous Huxley


Top
 Profile  
 
 Post subject: Re: Auto kick trigger
PostPosted: October 8th, 2008, 1:04 pm 
Offline
Admin
User avatar

Joined: January 18th, 2007, 11:07 am
Posts: 588
Location: Ulm, Germany
Title: Der überwacher
Thanks Oliver, Bt I am trying to tackle GUI ATM. I will see if I cant figure this out, but J is not my game.

_________________
Image


Top
 Profile  
 
 Post subject: Re: Auto kick trigger
PostPosted: October 8th, 2008, 1:29 pm 
Online
The Flying Cow!
User avatar

Joined: November 2nd, 2007, 10:34 pm
Posts: 1523
Location: Melbourne
Title: Uberfast Hacker
Well in GUI it should go something like this: (No access to WE at the moment so might be an error here or there)

For Integer A = 1 to 12
- If Player Name of (Player (Integer A)) is Equal to "Whatever" Then
- - <do whatever>
- Else
- End If

_________________
Experience is not what happens to you; it's what you do with what happens to you. - Aldous Huxley


Top
 Profile  
 
 Post subject: Re: Auto kick trigger
PostPosted: October 8th, 2008, 3:06 pm 
Offline
Moderator
User avatar

Joined: August 5th, 2007, 1:38 pm
Posts: 442
Location: *Unknown*
Title: Gui Expert
Try this:

Untitled Trigger 002
Events
Time - Elapsed game time is 0.00 seconds
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Name of (Picked player)) Equal to Vegas(I changed it =D, had my name in here)
Then - Actions
Game - Display to (All players) the text: (Player_Names[(Player number of (Picked player))] + is a banned player!)
Game - Defeat (Picked player) with the message: Banned!
Else - Actions

FINALLY!, somone has a gui thingy I can make..lol I Have been soooo bored....

_________________
Image


Top
 Profile  
 
 Post subject: Re: Auto kick trigger
PostPosted: October 8th, 2008, 4:06 pm 
Offline
Admin
User avatar

Joined: January 18th, 2007, 11:07 am
Posts: 588
Location: Ulm, Germany
Title: Der überwacher
Quote:
(Player_Names[(Player number of (Picked player))]



having trouble finding "player_names" in WE

_________________
Image


Top
 Profile  
 
 Post subject: Re: Auto kick trigger
PostPosted: October 8th, 2008, 4:14 pm 
Offline
Member
User avatar

Joined: January 25th, 2008, 5:20 pm
Posts: 80
Title: Lazy
go to string comparison and then chose player name

_________________
Image Image
Image


Top
 Profile  
 
 Post subject: Re: Auto kick trigger
PostPosted: October 8th, 2008, 4:49 pm 
Offline
Moderator
User avatar

Joined: August 5th, 2007, 1:38 pm
Posts: 442
Location: *Unknown*
Title: Gui Expert
OHH!!! You don't know sorry, here, this is the trigger I created to help make it easier for player name color variables.

Player Colors
Events
Conditions
Actions
Set Player_Colors[1] = |c00ff0303
Set Player_Colors[2] = |c000042ff
Set Player_Colors[3] = |c001ce6b9
Set Player_Colors[4] = |c00540081
Set Player_Colors[5] = |c00fffc01
Set Player_Colors[6] = |c00ff8000
Set Player_Colors[7] = |c0020c000
Set Player_Colors[8] = |c00e55bb0
Set Player_Colors[9] = |c00959697
Set Player_Colors[10] = |c007ebff1
Set Player_Colors[11] = |c00106246
Set Player_Colors[12] = |c004e2a04
For each (Integer A) from 1 to 12, do (Actions)
Loop - Actions
Set Player_Names[(Integer A)] = ((Player_Colors[(Integer A)] + (Name of (Player((Integer A))))) + |r)


I use this so instead of doing ((Player_Colors[(Integer A)] + (Name of (Player((Integer A))))) + |r) all the time, I just set the Player_Names[(Integer A)] To do it for me =D

_________________
Image


Top
 Profile  
 
 Post subject: Re: Auto kick trigger
PostPosted: October 8th, 2008, 5:00 pm 
Offline
Admin
User avatar

Joined: January 18th, 2007, 11:07 am
Posts: 588
Location: Ulm, Germany
Title: Der überwacher
Bl00D R3av3r wrote:
go to string comparison and then chose player name



that works for conditions, but under actions?

_________________
Image


Top
 Profile  
 
 Post subject: Re: Auto kick trigger
PostPosted: October 8th, 2008, 5:00 pm 
Offline
Moderator
User avatar

Joined: August 5th, 2007, 1:38 pm
Posts: 442
Location: *Unknown*
Title: Gui Expert
*Coughf* Look up

_________________
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 35 posts ]  Go to page 1, 2, 3, 4  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Privacy Policy Statement
Impressum (German)