You are Unregistered, please register to gain Full access.
    


RaGEZONE sponsored advertisment:

Dragonica Image
The free 3D side scrolling MMORPG.

 
 
LinkBack (1) Thread Tools
Old 12-30-2008   1 links from elsewhere to this Post. Click to view. #1 (permalink)
[]D[][]V[][]D
 
maplepuppet's Avatar
 
Rank: Member +
Join Date: Nov 2008
Location: New Jersey
Posts: 772
Thanked 21 Times in 18 Posts

[Release] "Trapped until you say yes" NPC

Your Ad Here
-Matt


You can change the text in the npc to change the Yes, no statement. IDC. This is my first ever working npc so of course it's nooby. Anyways if someone talks to "The Npc" It says "Do you like ____"
And gives them the option yes or no. If they hit yes they will become free. If they hit No it will repeat itself, if they hit end chat it will repeat itself, if the click esc button it will repeat itself. So they must chose yes. Just a stupid prank npc. Here it is

PHP Code:
var status = -1

function 
start() 

    
status = -1
    
action(100); 
}

function 
action(modetypeselection) { 
    if (
mode == 1
    
status++; 
        if (
status == 0) { 
    
cm.sendYesNo("Hi there, do you like #bYour Server Name Here?")
    }else{
    if (
status == 1)
    
cm.sendOk("#dGood, because I can trap you in my chat window until you say yes.")
    
cm.dispose();
}

__________________

Last edited by maplepuppet; 12-31-2008 at 04:55 AM.
maplepuppet is offline   Reply With Quote

RaGEZONE sponsored advertisment:
Old 12-30-2008   #2 (permalink)
Hello :)
 
Rank: Member +
Join Date: Apr 2008
Location: www.poopstory.com
Posts: 258
Thanked 0 Times in 0 Posts

Re: [Release] "Trapped until you say yes" NPC

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 :)
PoopStory is offline   Reply With Quote

Endorsement
Old 12-30-2008   #3 (permalink)
[]D[][]V[][]D
 
maplepuppet's Avatar
 
Rank: Member +
Join Date: Nov 2008
Location: New Jersey
Posts: 772
Thanked 21 Times in 18 Posts

Re: [Release] "Trapped until you say yes" NPC

Originally Posted by PoopStory View Post
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 :)
well you can change text, idk how to add it to mysql
__________________
maplepuppet is offline   Reply With Quote

Endorsement

Old 12-30-2008   #4 (permalink)
▼Branded▼
 
yuniordiaz's Avatar
 
Rank: Member +
Join Date: May 2008
Location: C: Drive
Posts: 1,047
Blog Entries: 1
Thanked 0 Times in 0 Posts

Re: [Release] "Trapped until you say yes" NPC

Good Job maplepuppet
yuniordiaz is offline   Reply With Quote
Old 12-30-2008   #5 (permalink)
Average Member
 
Rank: Hobbit
Join Date: Sep 2008
Posts: 59
Thanked 2 Times in 2 Posts

Re: [Release] "Trapped until you say yes" NPC

lol PoopStory's idea is great =)

if the server is popular and it says are u gay? and when they press yes a red notice says "(character name) admits hes gay!"
maplefreak26 is offline   Reply With Quote
Old 12-30-2008   #6 (permalink)
[]D[][]V[][]D
 
maplepuppet's Avatar
 
Rank: Member +
Join Date: Nov 2008
Location: New Jersey
Posts: 772
Thanked 21 Times in 18 Posts

Re: [Release] "Trapped until you say yes" NPC

Originally Posted by yuniordiaz View Post
Good Job maplepuppet
Thanks mate, first ever working NPC =P



Originally Posted by maplefreak26 View Post
lol PoopStory's idea is great =)

if the server is popular and it says are u gay? and when they press yes a red notice says "(character name) admits hes gay!"
Yes, that would be the best :D
__________________
maplepuppet is offline   Reply With Quote
Old 12-30-2008   #7 (permalink)
I'm Back.
 
Vi3tb0i2ty's Avatar
 
Rank: Alpha Member
Join Date: May 2008
Posts: 1,839
Thanked 1 Time in 1 Post

Re: [Release] "Trapped until you say yes" NPC

lol that's good idea
__________________

I'm Back

100 200 300 400 500 600 700 800 900 1000 1100 1200 1300 1400 1500
1600 1700 1800

Post
Vi3tb0i2ty is offline   Reply With Quote
Old 12-30-2008   #8 (permalink)
[ Sizz'em Out ]
 
xbLazE's Avatar
 
Rank: Member +
Join Date: Jul 2008
Location: Singapore
Posts: 1,278
Thanked 0 Times in 0 Posts

Re: [Release] "Trapped until you say yes" NPC

Yeah this is very nice for playing with peoples
__________________
xbLazE is online now   Reply With Quote
Old 12-30-2008   #9 (permalink)
RaGEZONER
 
UberSango's Avatar
 
Rank: Hobbit
Join Date: Dec 2008
Posts: 80
Blog Entries: 1
Thanked 0 Times in 0 Posts

Re: [Release] "Trapped until you say yes" NPC

you might even piss your players off... XD
UberSango is offline   Reply With Quote
Old 12-30-2008   #10 (permalink)
ttv.
 
Rank: Alpha Member
Join Date: Aug 2008
Posts: 1,592
Thanked 4 Times in 3 Posts

Re: [Release] "Trapped until you say yes" NPC

Originally Posted by maplefreak26 View Post
lol PoopStory's idea is great =)

if the server is popular and it says are u gay? and when they press yes a red notice says "(character name) admits hes gay!"
Yes, and the highly sensitive people will leave :(
__________________
YouAreNotBob is offline   Reply With Quote
Old 12-30-2008   #11 (permalink)
Hello :)
 
Rank: Member +
Join Date: Apr 2008
Location: www.poopstory.com
Posts: 258
Thanked 0 Times in 0 Posts

Re: [Release] "Trapped until you say yes" NPC

Yay I finally have a good idea xD
PoopStory is offline   Reply With Quote
Old 12-30-2008   #12 (permalink)
bLaRg~!
 
Alyan's Avatar
 
Rank: Member +
Join Date: Dec 2008
Location: With Megan Fox. (:
Posts: 490
Thanked 1 Time in 1 Post

Re: [Release] "Trapped until you say yes" NPC

HAHAGHAHAAHAHAHAHAH!!!!
I LOVE This NPC!
Good Job!
Alyan is offline   Reply With Quote
Old 12-30-2008   #13 (permalink)
I <3 Brookelle!
 
purpleNblack2's Avatar
 
Rank: Alpha Member
Join Date: Oct 2008
Posts: 2,308
Thanked 3 Times in 3 Posts

Re: [Release] "Trapped until you say yes" NPC

Originally Posted by PoopStory View Post
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 :)
Dude, I LOLED LIKE AN ASSWIPE and everyone is staring at me like im fcking crazy >o<
That was funny
__________________
Started GFX 12/14/08

Latest:



Spoiler:

Originally Posted by xSilv3rbullet View Post
Well, what happens when you delete it?
Originally Posted by HoodyKid View Post
It goes into Recycle bin

purpleNblack2 is offline   Reply With Quote
Old 12-30-2008   #14 (permalink)
*
 
CarterFTWWW's Avatar
 
Rank: Alpha Member
Join Date: Jul 2008
Location: Dance Line
Posts: 2,569
Blog Entries: 1
Thanked 26 Times in 21 Posts

Re: [Release] "Trapped until you say yes" NPC

What's the point of this though?
__________________
CarterFTWWW is offline   Reply With Quote
Old 12-30-2008   #15 (permalink)
Coder/GFX Artist
 
GMLooney's Avatar
 
Rank: Member +
Join Date: Mar 2008
Location: New York
Posts: 319
Thanked 1 Time in 1 Post

Re: [Release] "Trapped until you say yes" NPC

Originally Posted by PoopStory View Post
Yay I finally have a good idea xD
I would'nt say it's a good idea, but it's kinda okay, btw you can add a field in the ranking which checks if a field "gay" is 1/0 if it's one it says Yes...
__________________
GMLooney is offline   Reply With Quote
Old 12-31-2008   #16 (permalink)
Infraction Banned
 
Rank: Member +
Join Date: Jul 2008
Location: Perth
Posts: 302
Thanked 0 Times in 0 Posts

Re: [Release] "Trapped until you say yes" NPC

Originally Posted by PoopStory View Post
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();
   }  
}
Jvlaple is offline   Reply With Quote
Old 12-31-2008   #17 (permalink)
Extreme Member
 
Leaf Story's Avatar
 
Rank: Member +
Join Date: Sep 2008
Location: LeafStory
Posts: 495
Thanked 0 Times in 0 Posts

Re: [Release] "Trapped until you say yes" NPC

LOL!

But wait, what if someone is actually homosexual?
xD
__________________
Originally Posted by Paravicious View Post
]Also, if Valhalla sucks badly, then Java is just coffee in your head.

[X]Reach 250 posts [X ] Reach 500 posts
[ ] Reach 750posts
Leaf Story is offline   Reply With Quote
Old 12-31-2008   #18 (permalink)
Infraction Banned
 
Rank: Member +
Join Date: Jul 2008
Location: Perth
Posts: 302
Thanked 0 Times in 0 Posts

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! ;)
Jvlaple is offline   Reply With Quote
Old 12-31-2008   #19 (permalink)
ĉũŕŝēś
 
blyddlyl's Avatar
 
Rank: Alpha Member
Join Date: Jul 2008
Location: Sing A Pore <33
Posts: 1,895
Thanked 0 Times in 0 Posts

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
__________________


Click please ^^
blyddlyl is offline   Reply With Quote
Old 12-31-2008   #20 (permalink)
Infraction Banned
 
Rank: Member +
Join Date: Jul 2008
Location: Perth
Posts: 302
Thanked 0 Times in 0 Posts

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?
Jvlaple is offline   Reply With Quote
Old 12-31-2008   #21 (permalink)
Account Upgraded | Title Enabled!
 
Rank: Member +
Join Date: May 2008
Location: Her heart :)
Posts: 299
Thanked 2 Times in 2 Posts

Re: [Release] "Trapped until you say yes" NPC

LOL. weird ppl in ragezone nowadays , seriously. =x
__________________
DestinyFate
lxCrAzYsEl - My MapleSEA Aquila IGN (Quitted 2 yrs ago)..
lxCrAzYsEl is offline   Reply With Quote
Old 12-31-2008   #22 (permalink)
Extreme Member
 
Leaf Story's Avatar
 
Rank: Member +
Join Date: Sep 2008
Location: LeafStory
Posts: 495
Thanked 0 Times in 0 Posts

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("")
__________________
Originally Posted by Paravicious View Post
]Also, if Valhalla sucks badly, then Java is just coffee in your head.

[X]Reach 250 posts [X ] Reach 500 posts
[ ] Reach 750posts
Leaf Story is offline   Reply With Quote
Old 12-31-2008   #23 (permalink)
[]D[][]V[][]D
 
maplepuppet's Avatar
 
Rank: Member +
Join Date: Nov 2008
Location: New Jersey
Posts: 772
Thanked 21 Times in 18 Posts

Re: [Release] "Trapped until you say yes" NPC

Nice idea guys, please stay on topic though ):
__________________
maplepuppet is offline   Reply With Quote
Old 12-31-2008   #24 (permalink)
(:
 
Revolution~'s Avatar
 
Rank: Member +
Join Date: Dec 2008
Location: In the street .
Posts: 468
Thanked 0 Times in 0 Posts

Re: [Release] "Trapped until you say yes" NPC

LOL niceone
Revolution~ is offline   Reply With Quote
Old 12-31-2008   #25 (permalink)
[]D[][]V[][]D
 
maplepuppet's Avatar
 
Rank: Member +
Join Date: Nov 2008
Location: New Jersey
Posts: 772
Thanked 21 Times in 18 Posts

Re: [Release] "Trapped until you say yes" NPC

Bump.
__________________
maplepuppet is offline   Reply With Quote
 

Bookmarks

Thread Tools


LinkBacks (?)
LinkBack to this Thread: http://forum.ragezone.com/f427/release-trapped-until-you-say-yes-npc-518812/
Posted By For Type Date
maplestory libary This thread Refback 07-20-2009 07:14 AM



Translated by Google
Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Maltese Norwegian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swedish Taiwanese Thai Turkish Ukrainian Vietnamese
no new posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274