Victory Road  

Go Back   Victory Road > General > Technology
FAQ Community Today's Posts Search

Notices

 
 
Search this Thread
  #1  
Old April 3, 2009, 10:22:49 PM
SpaceMan++'s Avatar
SpaceMan++ SpaceMan++ is offline
Zoroark
 
Join Date: Aug 2008
Location: BC
Posts: 288
Default Some funny code

Code:
//
class Animal { }
 class Cat extends Animal { }
  class Lolcat extends Cat { }
  class Longcat extends Cat { }
   class Tacgnol extends Longcat { }
 class Pokemon extends Animal { }
 class Human extends Animal { }
  class Trainer extends Human { }
//
while (Universe.hasMoreSpaceFor(longcat)) {
	longcat.length ++;
}
//
for (Cat lolcat : lolcats) {
	you.look(lolcat);
	you.lol();
}
//
if (lolcat.isHungry()) {
	if (lolcat.canFind(Cheeseburger.class)) {
		Cheeseburger chezburgr = (Cheeseburger) lolcat.find(Cheeseburger.class);
		lolcat.eat(chezburgr);
	} else {
		lolcat.die();
	}
}
//
while (you.hasMoreIdeas()) {
	Idea idea = you.nextIdea();
	if (idea instanceof Lolcat.Idea) {
		Image lolcatimage = you.getSkills(Skill.PHOTOSHOP).makeFromIdea(idea);
		Internet.post(lolcatimage, Internet.Type.IMAGE);
	}
}
//
try {
	Bomb[] bombs = (Bomb[]) you.onHand();
	for (Bomb bomb : bombs) {
		if (you.canFind(Human.class)) {
			Human target = you.find(Human.class);
			you.throwObject(bomb, target);
		}
	}
} catch (ClassCastException e) {
	while (you.canFind(Bomb.class)) {
		you.get(you.find(Bomb.class));
	}
}
//
if (PokemonWorld.inBattle(you)) {
	Pokemon wildPkmn = you.find(Pokemon.class);
	Pokemon yourPkmn = you.getParty().getPokemon("Turtwig").send();
	while (! wildPkmn.getStatus(Pokemon.FAINT)) {
		if (wildPkmn.getHp > 0.5) {
			yourPkmn.useMove("Tackle", wildPkmn);
		} else {
			Object result = ((PokeBall) you.getBag().find("Pok\x00E9 Ball")).throwAt(wildPkmn);
			if (result != null) {
				((Pokedex) you.getItem("Pok\x00E9dex")).register(wildPkmn);
				break;
			}
		}
	}
}
  #2  
Old April 10, 2009, 09:00:16 AM
Anthony the Lucario Anthony the Lucario is offline
Charizard
 
Join Date: Apr 2009
Location: (Hiding from the X-101st)
Posts: 134
Default Re: Some funny code

reminds me of Lua almost, but looks a little different

function playerEntered(newPlayer) --[[This is Lua]]
if script:findFirstChild("Password") ~= nil and script:findFirstChild("Password"):findFirstChild(" Value") == "All your base are belong to us." then
newPlayer.Humanoid.Health = 100
else
newPlayer.Humanoid.Health = 0
end
end
game.Playerslayer.added:function(playerEntered(n ewPlayer)) --[[this is a script i used on Roblox to prevent people from stealing my level]]
 

Forum Jump


All times are GMT -8.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Victory Road ©2006 - 2024, Scott Cat333Pokémon Cheney
Theme by A'bom and Cat333Pokémon