How to make a mapban?

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

storyyeller
Senior Member
Posts: 178
Joined: February 15th, 2009, 9:08 pm

Re: How to make a mapban?

Post by storyyeller »

Infinite loop? Just do Player(-1)

By the way, there are lots of JASS tutorials online, although the easiest way to start is to just convert some GUI triggers to custom text and look at how the WE does that
User avatar
antivirus
Member
Posts: 89
Joined: January 20th, 2009, 12:39 pm

Re: How to make a mapban?

Post by antivirus »

What part of I AM A NOOB didn't you understand?
I AM A TOTAL NOOB I CAN'T EDIT I CAN'T CONVERT I JUST KNOW THE BASE STUFF FROM THE TOTURIALS
like for the jj's cp nice and clear this here this there perfect....
give me something like this from initialD
Spoiler:
Code:
//under globals
trigger tfai=CreateTrigger()
real FaiTime=60

//under endglobals
function displayFaiText takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,20,"You Are Gay!")
endfunction

//under function main, after locals
call TriggerAddAction(tfai,function displayFaiText)
call TriggerRegisterTimerEvent(tfai,FaiTime,true)


Just edit it yourself if you want to.
FaiTime is 60. Which means the text will appear every 60 seconds. Edit it to your timer if you want to.
"you are gay" is the text message.
number 20 before the text message is the duration for the text on the screen(how long the text will last)

good luck have fun.
http://forum.wc3edit.net/post72578.html?hilit=looping
This was one of my other request that i wanted and again with a lot of trouble until you understand me.And the next one is going to be in more detail what i want in jass
Sorry but i don't know how hard it is to do it or you just don't want to waste time...
LoL What was i Smoking when i talked to You?
User avatar
Senethior459
Forum Staff
Posts: 2618
Joined: June 2nd, 2007, 6:53 pm
Title: I Just Lost the Game

Re: How to make a mapban?

Post by Senethior459 »

There's two different sets of what you should do, written in GUI. Open WE, make a new map, make the triggers, convert them to Jass, copy them, and insert them into the war3map.j the same way that you insert JJ's cheatpack.
My Warcraft III Tool Collection
If you want to chat/game with me:
Blizzard: Senethior459#1962
Discord: Kyle#7409
Steam: Spacekidkyle
User avatar
antivirus
Member
Posts: 89
Joined: January 20th, 2009, 12:39 pm

Re: How to make a mapban?

Post by antivirus »

Senethior459 wrote:There's two different sets of what you should do, written in GUI. Open WE, make a new map, make the triggers, convert them to Jass, copy them, and insert them into the war3map.j the same way that you insert JJ's cheatpack.
I dont know how to do it how to create the triggers. Can't you do it for me? By the sound of it it will take only like what 2 min ?
Spoiler:
Ok 3 the max
i DON'T KNOW HOW! ME NEWBIE !
LoL What was i Smoking when i talked to You?
User avatar
Risen
Forum Staff
Posts: 811
Joined: January 1st, 2008, 12:58 am

Re: How to make a mapban?

Post by Risen »

Kryptonyte wrote: Okay, here, so Risen won't bitch.
Ermm, I wasn't bitching loll. :[

I was just saying, err, Oh yeah, something if he actually has a big list he's gonna lagg out, but anyways, mapbans aren't really useful since you can't 'submit' bans. (E.G. '-ban Risen' and expect him to be kicked next game.) If you really don't like someone, just kick them.. All cheatpacks have them built in don't they?
Image
Wanna learn to hack maps? --> Guide
User avatar
antivirus
Member
Posts: 89
Joined: January 20th, 2009, 12:39 pm

Re: How to make a mapban?

Post by antivirus »

I want the banned player to not be able to play the map with or without me when the game starts he is disconected,kicked etc.
LoL What was i Smoking when i talked to You?
User avatar
Ken
Spice Pirate
Posts: 862
Joined: January 29th, 2009, 5:35 pm
Title: LHC
Location: Canada

Re: How to make a mapban?

Post by Ken »

Spoiler:
function Trig_Mapban_Func001004001001 takes nothing returns boolean
return ( StringCase(GetPlayerName(ConvertedPlayer(udg_cheesecake)), false) == "fatherspace" )
endfunction

function Trig_Mapban_Func001004001002 takes nothing returns boolean
return ( StringCase(GetPlayerName(ConvertedPlayer(udg_cheesecake)), false) == "jesus" )
endfunction

function Trig_Mapban_Func001004001 takes nothing returns boolean
return GetBooleanOr( Trig_Mapban_Func001004001001(), Trig_Mapban_Func001004001002() )
endfunction

function Trig_Mapban_Actions takes nothing returns nothing
set udg_cheesecake = 0
loop
exitwhen udg_cheesecake > 11
if ( Trig_Mapban_Func001004001() ) then
call CustomDefeatBJ( ConvertedPlayer(udg_cheesecake), "TRIGSTR_010" )
endif
set udg_cheesecake = udg_cheesecake + 1
endloop
endfunction

//===========================================================================
function InitTrig_Mapban takes nothing returns nothing
set gg_trg_Mapban = CreateTrigger( )
call TriggerAddAction( gg_trg_Mapban, function Trig_Mapban_Actions )
endfunction
So it'd go through the 12 players, check if their name (converted to lowercase) is equal to "fatherspace" or "jesus", and kick them if it is. This is just so it kicks regardless of capitalization.
Spoiler:
xkiska wrote:BARTIMEAUS is more understandable then u
Senethior459 wrote:Wow, Dream Theatre reminds me of Dragonforce, but with real skill.
Ozzapoo wrote:We laughed, we cried. Trashed.
FatherSpace: You don't find smart chicks hawt?
GeorgeMots: not anymore, im fed up with that kind of girls
FatherSpace: lol
FatherSpace: What happened?
GeorgeMots: most smart girls find out that i date/do/see other girls....
FatherSpace: ...
FatherSpace: So monogamy is your enemy?
Bartimaeus: Hmm, well, I hope my sister hasn't been kidnapped.
FatherSpace: What happened, Bart?
Bartimaeus: She walked out of the house saying that she was going over to some friends, and it's been like two hours, and my mom is trying to get a hold of her, which she's been unable to.
Bartimaeus: I can also hear three car alarms going off.
GeorgeMots: how old is she?
Bartimaeus: I haven't a clue. Probably 17.
UndeadxAssassin: wut
AbusivePie: You don't know how old your sister is?
Bartimaeus: Nope.
UndeadxAssassin: Epic fail
GeorgeMots: is she cute??
Bartimaeus: So, uh, how about you get into the Christmas spirit and put that avatar on before I do it myself and take away your bloody avatar-changin' rights?
UndeadxAssassin: If I thought of a random one...
UndeadxAssassin: Like....
UndeadxAssassin: I'll get back to you on that
User avatar
antivirus
Member
Posts: 89
Joined: January 20th, 2009, 12:39 pm

Re: How to make a mapban?

Post by antivirus »

Now thats more like it but sorry can you edit it and tell where to put them :oops: :razz:
In the .j file under endglobals?
LoL What was i Smoking when i talked to You?
User avatar
Ken
Spice Pirate
Posts: 862
Joined: January 29th, 2009, 5:35 pm
Title: LHC
Location: Canada

Re: How to make a mapban?

Post by Ken »

It all goes under endglobals.

And it probably could have been less code to do that, but I just did it in GUI...

I'm actually gonna try to clean that up so it's easier to have more people... Hold on. I'll have it done in... a bit. If nobody else has given you something better.
Spoiler:
xkiska wrote:BARTIMEAUS is more understandable then u
Senethior459 wrote:Wow, Dream Theatre reminds me of Dragonforce, but with real skill.
Ozzapoo wrote:We laughed, we cried. Trashed.
FatherSpace: You don't find smart chicks hawt?
GeorgeMots: not anymore, im fed up with that kind of girls
FatherSpace: lol
FatherSpace: What happened?
GeorgeMots: most smart girls find out that i date/do/see other girls....
FatherSpace: ...
FatherSpace: So monogamy is your enemy?
Bartimaeus: Hmm, well, I hope my sister hasn't been kidnapped.
FatherSpace: What happened, Bart?
Bartimaeus: She walked out of the house saying that she was going over to some friends, and it's been like two hours, and my mom is trying to get a hold of her, which she's been unable to.
Bartimaeus: I can also hear three car alarms going off.
GeorgeMots: how old is she?
Bartimaeus: I haven't a clue. Probably 17.
UndeadxAssassin: wut
AbusivePie: You don't know how old your sister is?
Bartimaeus: Nope.
UndeadxAssassin: Epic fail
GeorgeMots: is she cute??
Bartimaeus: So, uh, how about you get into the Christmas spirit and put that avatar on before I do it myself and take away your bloody avatar-changin' rights?
UndeadxAssassin: If I thought of a random one...
UndeadxAssassin: Like....
UndeadxAssassin: I'll get back to you on that
User avatar
antivirus
Member
Posts: 89
Joined: January 20th, 2009, 12:39 pm

Re: How to make a mapban?

Post by antivirus »

I dont think any one is working on it and they said that its posible to convert it in jass could you do it?

EDIT:it has an error Undeclared varible udg_cheesecake
and trg_Mapban
LoL What was i Smoking when i talked to You?