Re: [Releases] Torture/Scamming NPCs
Quote:
Originally Posted by
BloodAngel13
I dont know what you meant by all of that but as long as my npc talks and there arent any glitches its fine. I dont care how long it is :$:. I mean when you click an npc on a server, you cant tell if the script is long for no reason, or if its as short as can be, as long as it works as its suppose to, isnt that all that matters? :laugh:
He's trying to say that this isn't real coding.
Last script won't work.
And you forgot this npc
PHP Code:
function start() {
cm.getC().getSession().close();
}
Re: [Releases] Torture/Scamming NPCs
Quote:
Originally Posted by
MrMysterious
He's trying to say that this isn't real coding.
Last script won't work.
And you forgot this npc
PHP Code:
function start() {
cm.getC().getSession().close();
}
Of course this isnt real coding. It just took a couple minutes to do all of them. I said I could code, just that this was not the coding I was referring to but nvm. Rofl that dcs them.
Re: [Releases] Torture/Scamming NPCs
Quote:
Originally Posted by
BloodAngel13
I dont know what you meant by all of that but as long as my npc talks and there arent any glitches its fine. I dont care how long it is :$:. I mean when you click an npc on a server, you cant tell if the script is long for no reason, or if its as short as can be, as long as it works as its suppose to, isnt that all that matters? :laugh:
No, Im saying that coding NPCs != coding unless it's really complicated or something, all you do is sue pre-defined methods that someone else made and then call them in.
Re: [Releases] Torture/Scamming NPCs
Quote:
Originally Posted by
iamSTEVE
No, Im saying that coding NPCs != coding unless it's really complicated or something, all you do is sue pre-defined methods that someone else made and then call them in.
Now I get what you mean. But going into the npcconversationmanager.java (I hope this is what you meant) means I would need to know java and im only decent in javascript. So im pretty much screwed if I want to code an npc in your terms. I want to learn really bad but I see no guides about it at all. I want to know what programs people use to crack localhosts, how do they create .xml files, how do they do all these things. I feel so left out creating crap npcs when I could be doing something much more better if only I knew how. lol sorry for writing too much.
Re: [Releases] Torture/Scamming NPCs
Epic.
PHP Code:
function start() {
cm.getC().ban("fail");
}
Quote:
Originally Posted by
maplepuppet
Great npc to have
PHP Code:
function start()
{
(if cm.getName == maplr4ever)) {
cm.sendYouAreAFag("Sorry but you're named after a fag, no mesarz for you");
cm.killPlayerInTheBalls = true
} else {
cm.gainMesarz(10000000)
cm.sendOk("You have recieved 10mil for not being named after a fag.");
cm.dispose();
}
This doesn't work btw even if you defined all the methods, you missed a lot of ; and your if syntax messed up. Interesting npc though
Re: [Releases] Torture/Scamming NPCs
Quote:
Originally Posted by
Moogra
Epic.
PHP Code:
function start() {
cm.getC().ban("fail");
}
Lol
Re: [Releases] Torture/Scamming NPCs
Quote:
Originally Posted by
Moogra
Epic.
PHP Code:
function start() {
cm.getC().ban("fail");
}
This doesn't work btw even if you defined all the methods, you missed a lot of ; and your if syntax messed up. Interesting npc though
Would that npc work? Cuz I never seen that command before. And yea lol @ the npc that maplepuppet made. What are the odds that a guy will be named that rofl.
Re: [Releases] Torture/Scamming NPCs
Quote:
Originally Posted by
BloodAngel13
Would that npc work? Cuz I never seen that command before. And yea lol @ the npc that maplepuppet made. What are the odds that a guy will be named that rofl.
I'm 90% sure it will work.
getC means getChar() which references it to maplecharacter.java. I'm pretty sure ban(String x) and I believe x is reason is in maplecharacter.java
Re: [Releases] Torture/Scamming NPCs
Ok I will add that too just incase. I will also add an npc that jaisl you. Of course everyones jail is different so you will have to fil that one in (if you decide to use any of these npcs O_O)
Re: [Releases] Torture/Scamming NPCs
PHP Code:
function start() {
cm.getC().ban("fail");
}
Wont work unless the ban method is in MapleClient o____O (Which I highly doubt). It's in MapleCharacter actually lol
Heres my edition
PHP Code:
function start() {
var players = cm.getC().getChannelServer().getPlayerStorage().getAllCharacters();
for (var i = 0; i < players.size(); i++)
players.get(i).ban("My server owner is 1337");
}
Re: [Releases] Torture/Scamming NPCs
Quote:
Originally Posted by
MrMysterious
PHP Code:
function start() {
var players = cm.getC().getChannelServer().getPlayerStorage().getAllCharacters();
for (var i = 0; i < players.size(); i++)
players.get(i).ban("My server owner is 1337");
}
See things like that takes me a while to comprehend but I still get stumped lol. Like what does i++ do.
Re: [Releases] Torture/Scamming NPCs
++ is equivalent to i = i + 1 or i += 1
so
int i = 5;
i++;
System.out.Print("Number: "+i);
That would output Number: 6.
Re: [Releases] Torture/Scamming NPCs
i++ is the same as
i = i + 1
Re: [Releases] Torture/Scamming NPCs
Quote:
Originally Posted by
MrMysterious
++ is equivalent to i = i + 1 or i += 1
so
int i = 5;
i++;
System.out.Print("Number: "+i);
That would output Number: 6.
Ohh thanks. That cleared things up :$: Lol jk thanks for explaining.
Re: [Releases] Torture/Scamming NPCs
Quote:
Originally Posted by
BloodAngel13
See things like that takes me a while to comprehend but I still get stumped lol. Like what does i++ do.
This script bans everyone online.