All vehicals gametype with no betrayal or snipers + more

Everything about HD, MD, and their mods.

Moderator: Halo Moderators

Yummy
Ranger
Posts: 684
Joined: Wed Jun 14, 2006 5:42 pm
Location: Near Pittsburgh, PA

Post by Yummy » Tue Jan 09, 2007 5:39 pm

Well, if you called Burr a hindu, then maybe he doesn't want you back....i don't know.
Image

User avatar
spida
SEAL
Posts: 500
Joined: Tue Aug 29, 2006 5:40 pm
Location: Sacramento, California

Post by spida » Tue Jan 09, 2007 7:00 pm

Well then he shouldn't unban me then.

Monoman
Site Admin
Site Admin
Posts: 2662
Joined: Sat Aug 16, 2003 11:26 pm
Location: Planet Bob
Contact:

Post by Monoman » Tue Jan 09, 2007 7:54 pm

Syperium wrote:Before we do that, can someone please direct me to a site in which it discusses learning based Apple Script. I'm gettin' the hang of it, a little. I kinda understand one command, XD. That's to "tell".

ex. If I wanted a web browser to open a website, with a double click of an apple script, can I say something like:

Code: Select all

tell application "safari" to open target

target="http://www.macgamingmods.com"

end tell
What's wrong with that? If someone can be as so kind to tell me...
ApplScript Language Guide

You don't need to use "tell" if that is all you want to do. You can do everything you want with just the code below.

Code: Select all

set target to "http://www.macgamingmods.com"

open location target
Kansas....Like Paris Hilton: White, Flat, and Easy to Enter. -- Conan O'Brien

Masturbation is like procrastination, they're both great until you realize your screwing yourself.

MGM Discord | MGM Chat
MGM Sig

User avatar
Syperium
Ranger
Posts: 1632
Joined: Sun Apr 23, 2006 3:59 pm
Location: An old fart who still remembers his password...
Contact:

Post by Syperium » Tue Jan 09, 2007 8:21 pm

Oh man, thanks Monoman! This should come easy now that I have a reference.

>Shadow<
Halo Moderator
Halo Moderator
Posts: 2734
Joined: Sun Apr 02, 2006 9:15 pm

Post by >Shadow< » Tue Jan 09, 2007 10:20 pm

Oo cool! Thanks Monoman! :)
Image

Yummy
Ranger
Posts: 684
Joined: Wed Jun 14, 2006 5:42 pm
Location: Near Pittsburgh, PA

Post by Yummy » Wed Jan 10, 2007 12:27 pm

Or....

Code: Select all

set the_target to the text returned of (display dialog "What site would you like?" default answer "")
open location the_target
Oh, this routine gets rid of duplicates....I am using it in my new application for doing permanent (IP) bans on people for Halo.

Code: Select all

set yay to {"1", "1", "1", "5"}
set no_dups to bye_duplicates(yay)
return no_dups


on bye_duplicates(the_list)
	set check to {}
	set len_list to count (items in the_list)
	set no_duplicates to {}
	repeat with z from 1 to len_list
		set check to check & {"NO"}
	end repeat
	
	repeat with x from 2 to len_list
		set first_test to item x of the_list
		repeat with y from 1 to x - 1
			set second_test to item y of the_list
			if first_test = second_test then set item x of check to "YES"
		end repeat
	end repeat
	
	repeat with n from 1 to len_list
		if item n of check is "NO" then set no_duplicates to (no_duplicates & (item n of the_list))
	end repeat
	
	return no_duplicates
end bye_duplicates
For the list "yay", try entering in a random list of values (make sure some of them are duplicates). A list is like an array, and for those of you who don't know what an array is....it's a system of numbers in one variable that can be accessed. So, for instance, to declare an array (NOT IN APPLESCRIPT) you would do something like "int blah[50]" and it will make 50 integers within the variable "blah" that can be accessed individually. A list is applescript's different way of handling arrays. So, to access the number 5, in the list {"1","2","4","1","5"}, i would say item 5 of (whatever my variable is). The nice thing about applescript is not only does it declare the variable, but it initializes it at the same time. And, why the hell did i just type this all up?
Image

002
Ranger
Posts: 944
Joined: Wed Aug 16, 2006 5:48 pm
Location: ::1

Post by 002 » Wed Jan 10, 2007 7:15 pm

Yummy wrote:Or....

Code: Select all

set the_target to the text returned of (display dialog "What site would you like?" default answer "")
open location the_target
Oh, this routine gets rid of duplicates....I am using it in my new application for doing permanent (IP) bans on people for Halo.

Code: Select all

set yay to {"1", "1", "1", "5"}
set no_dups to bye_duplicates(yay)
return no_dups


on bye_duplicates(the_list)
	set check to {}
	set len_list to count (items in the_list)
	set no_duplicates to {}
	repeat with z from 1 to len_list
		set check to check & {"NO"}
	end repeat
	
	repeat with x from 2 to len_list
		set first_test to item x of the_list
		repeat with y from 1 to x - 1
			set second_test to item y of the_list
			if first_test = second_test then set item x of check to "YES"
		end repeat
	end repeat
	
	repeat with n from 1 to len_list
		if item n of check is "NO" then set no_duplicates to (no_duplicates & (item n of the_list))
	end repeat
	
	return no_duplicates
end bye_duplicates
For the list "yay", try entering in a random list of values (make sure some of them are duplicates). A list is like an array, and for those of you who don't know what an array is....it's a system of numbers in one variable that can be accessed. So, for instance, to declare an array (NOT IN APPLESCRIPT) you would do something like "int blah[50]" and it will make 50 integers within the variable "blah" that can be accessed individually. A list is applescript's different way of handling arrays. So, to access the number 5, in the list {"1","2","4","1","5"}, i would say item 5 of (whatever my variable is). The nice thing about applescript is not only does it declare the variable, but it initializes it at the same time. And, why the hell did i just type this all up?

On the full version of Halo, you can ban people with this console code:

Code: Select all

sv_ban[space]player's name
oh and don't include [space]

User avatar
Syperium
Ranger
Posts: 1632
Joined: Sun Apr 23, 2006 3:59 pm
Location: An old fart who still remembers his password...
Contact:

Post by Syperium » Wed Jan 10, 2007 7:26 pm

Has anyone ever though since we cannot accually "unlock" to Console option on the startup menu for Halo Demo, to make an application that will orginize only Halo Demo members of your server, and send a command to ban them?

Or... has it already been made and my head is in my ass?

Yummy
Ranger
Posts: 684
Joined: Wed Jun 14, 2006 5:42 pm
Location: Near Pittsburgh, PA

Post by Yummy » Wed Jan 10, 2007 7:47 pm

Lol syp, that would be awesome if we could do that....
Image

User avatar
Syperium
Ranger
Posts: 1632
Joined: Sun Apr 23, 2006 3:59 pm
Location: An old fart who still remembers his password...
Contact:

Post by Syperium » Wed Jan 10, 2007 7:55 pm

From the knowledge that you're showin', you could make it easy.

Proto
Newbie
Posts: 30
Joined: Fri Dec 01, 2006 9:13 pm

Post by Proto » Thu Jan 11, 2007 12:34 am

well im pretty sure everyone here know's how to make game types but i can make some if u want im gonna make dracs ones first

well that wasnt to hard took me bout 5 mins so any ways with out any delay i present the link ............................................................................................................. k that was enough delay now http://files.filefront.com/blamlst/;651 ... einfo.html
Old account!

Yummy
Ranger
Posts: 684
Joined: Wed Jun 14, 2006 5:42 pm
Location: Near Pittsburgh, PA

Post by Yummy » Thu Jan 11, 2007 12:33 pm

Syperium wrote:From the knowledge that you're showin', you could make it easy.
Who?
Image

draconic74
Green Beret
Posts: 3470
Joined: Sat Jun 03, 2006 11:08 am
Contact:

Post by draconic74 » Thu Jan 11, 2007 10:02 pm

You obviously. Its you who posted the other thing before him.
Image

User avatar
Syperium
Ranger
Posts: 1632
Joined: Sun Apr 23, 2006 3:59 pm
Location: An old fart who still remembers his password...
Contact:

Post by Syperium » Fri Jan 12, 2007 1:27 pm

XD. I'm goin' to PM you about somethin' in a minute Yummy.

Yummy
Ranger
Posts: 684
Joined: Wed Jun 14, 2006 5:42 pm
Location: Near Pittsburgh, PA

Post by Yummy » Fri Jan 12, 2007 2:26 pm

Got it Syp....

Hey! I got code that gets the IP's of all the players on Halo, although it only gives the IP's.....getting the member names of people will be HARD because I would not only have to program that, but I would have to interact with halo.

This code gets the IP's of people on halo (HOST ONLY of course). If this code is presented, credit must be given to Yummy. NOTE: You need an admin pass. Without it, tcpdump cannot be performed. Credit for the -c 10 option given to macosxhints.com....and credit for knowing how to do "sudo tcpdump" given to look7 (aka UN Lucas).

Code: Select all

set the_pass to the text returned of (display dialog "What is the admin password for this computer?" default answer "" with hidden answer)
set shell_script to (do shell script "tcpdump -c 10 port 2302" password the_pass with administrator privileges)
set nums to {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9"}
set the_dot to "."
set new_script to paragraphs of shell_script
set list_ips to {}
repeat with y from 1 to 10
	set dot_count to 0
	set AppleScript's text item delimiters to " > "
	set test to text items of (item y of new_script as string)
	set right_ip to item 2 of test
	repeat with z from 1 to length of right_ip
		if character z of right_ip is in nums then exit repeat
	end repeat
	set AppleScript's text item delimiters to {""}
	set right_ip to (characters z thru (length of right_ip) of right_ip as string)
	set the_ip to ""
	repeat with x from 1 to 15
		set test_item to (character x of right_ip as string)
		if test_item is "-" then set test_item to the_dot
		if test_item is the_dot then
			set dot_count to dot_count + 1
			set the_ip to (the_ip & test_item)
		end if
		if test_item is in nums then set the_ip to (the_ip & test_item)
		if dot_count > 3 then exit repeat
	end repeat
	set AppleScript's text item delimiters to {""}
	if (character (count (items in the_ip)) of the_ip as string) is the_dot or it is "-" then ¬
		set the_ip to (characters 1 thru ((count (items in the_ip)) - 1) of the_ip as string)
	if length of the_ip ≥ 11 then set list_ips to (list_ips & the_ip)
end repeat

choose from list list_ips
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 29 guests