that is entirely unessecary, who needs this anyway? o_O Good job on your first npc anyway
Printable View
that is entirely unessecary, who needs this anyway? o_O Good job on your first npc anyway
great release... But how do you make it so that a server notice drops to say that someone admitted he is gay?
its not working for me...
The gay idea thing is kinda harsh but very funny xD
You all have issues with sexual preference, don't you?
Somebody tell me if this works:
Add this in your NPCConversationManager:
Code:public void makeAnnounce(String text){
c.getChannelServer().broadcastPacket(net.sf.odinms.tools.MaplePacketCreator.serverNotice(5, text));
}
Then this is the NPC:
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("#dGood, because I can trap you in my chat window until you say yes.")
charname = cm.getChar().getName()
cm.makeAnnounce("Notice: "+ charname +" is gay!");
cm.dispose();
}
}
why would you do that? Just use c.getChannelServer() -_-
yes it should, but like this:
PHP Code:function start() {
action(1, 0, 0);
cm.sendYesNo("Are you gay?");
}
function action(mode, type, selection) {
if (mode == 1){
cm.sendOk("#dGood, because I can trap you in my chat window until you say yes.");
var charname = cm.getChar().getName();
cm.makeAnnounce("Notice: "+ charname +" is gay!");
}else
cm.dispose();
}
xD Funny idea. Good job for your 1st release.
i LOLd at this ..
Woot way to go against lazy ass people lol.
Nice Release btw.
The one that I posted makes a notice to the server.