Re: [Release] "Trapped until you say yes" NPC
Quote:
Originally Posted by
PoopStory
I would ask a question like: "Are you gay"?
And maybe add a function to add to the database any person who click on yes and then show it on the website.
That would be extremely funny :)
Code:
var status = -1;
function start()
{
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == 1)
status++;
if (status == 0) {
cm.sendYesNo("Are you gay???????????");
}else{
if (status == 1)
cm.sendOk("Thank you for admitting it!.");
while (true) {
cm.getPlayer().getClient().getSession().write(net.sf.odinms.tools.MaplePacketCreator.serverNotice(6, cm.getPlayer().getName() + " admitted " + (cm.getPlayer().getGender() == 1) ? "She's" : "He's" + gay!"));
}
cm.dispose();
}
}
Re: [Release] "Trapped until you say yes" NPC
LOL!
But wait, what if someone is actually homosexual?
xD
Re: [Release] "Trapped until you say yes" NPC
Quote:
I would ask a question like: "Are you gay"?
And maybe add a function to add to the database any person who click on yes and then show it on the website.
That would be extremely funny :)
Code:
PlayerInteractionHandler.java
public void admitGay() {
try {
Connection con = DatabaseConnection.getConnection();
PreparedStatement ps = con.prepareStatement("UPDATE characters SET gay = 1 WHERE id = ?");
ps.setInt(1, getPlayer().getId());
ps.executeUpdate();
} catch (SQLException e) {
e.printStackTrace();
}
}
Code:
var status = -1;
function start()
{
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == 1)
status++;
if (status == 0) {
cm.sendYesNo("Are you gay???????????");
}else{
if (status == 1)
cm.sendOk("Thank you for admitting it!.");
cm.admitGay();
while (true) {
cm.getPlayer().getClient().getSession().write(net.sf.odinms.tools.MaplePacketCreator.serverNotice(6, cm.getPlayer().getName() + " admitted " + (cm.getPlayer().getGender() == 1) ? "She's" : "He's" + gay!"));
}
cm.dispose();
}
}
Code:
echo "<b><h1>These people ARE gay!</h1></b>
$result = mysql_query("SELECT * FROM characters where gay == '1'", $db);
while($gay=mysql_fetch_array($result)){
echo "<b><font color=white>$gay[name],</font></b> ";
}
I enjoy spoonfeeding noobs ;)
This version saves to MySQL make sure you added an int colum called gay in your characters table! ;)
Re: [Release] "Trapped until you say yes" NPC
Is there a way to make like.
Welcome , do you like { Server name }
If you do, please say " I am a homo "
Then the NPC takes a screenshot down. Is it possible o.O?
lOl
Re: [Release] "Trapped until you say yes" NPC
you are retarded. We need AWT/Swing for that and Graphics2D and a lot of pictures o_O. Then we need a complicated paint(g) method which will waste all your server's memory and this is not even worth it -_-"
But it will be possible if you know java
Code:
BufferedImage im = (BufferedImage) this.createImage(800, 600); //create an off screen buffer
paint((Graphics2D) im.getGraphics()); //paint to off screen buffer
ImageIO.write(im, "jpg", new File(System.getProperty("user.dir") + "/screenshots/screenshot.jpg")); //write the image to a file
Then we'll need a very complicated paint method:
Code:
public void paint(Graphics2D g) {
//draw all the shit you can see
}
Now you see why its gonna be hard?
Re: [Release] "Trapped until you say yes" NPC
LOL. weird ppl in ragezone nowadays , seriously. =x
Re: [Release] "Trapped until you say yes" NPC
LOL!
wait what if we make a command that getsGay?
} else if (spitted[0].equals("@gay")) {
mc.dropMessage("")
Re: [Release] "Trapped until you say yes" NPC
Nice idea guys, please stay on topic though ):
Re: [Release] "Trapped until you say yes" NPC
Re: [Release] "Trapped until you say yes" NPC
Re: [Release] "Trapped until you say yes" NPC
that is entirely unessecary, who needs this anyway? o_O Good job on your first npc anyway
Re: [Release] "Trapped until you say yes" NPC
great release... But how do you make it so that a server notice drops to say that someone admitted he is gay?
Re: [Release] "Trapped until you say yes" NPC
its not working for me...
Re: [Release] "Trapped until you say yes" NPC
The gay idea thing is kinda harsh but very funny xD
Re: [Release] "Trapped until you say yes" NPC
You all have issues with sexual preference, don't you?