Re: [Releases] Torture/Scamming NPCs
Quote:
Originally Posted by
Moogra
This script bans everyone online.
Only the channel unfortunately lol x)
Re: [Releases] Scamming NPC Collection (9 NPCs)
You're right, I'm not thinking properly today
this is now fixed
PHP Code:
function start() {
cm.getChar().ban("fail");
}
Re: [Releases] Scamming NPC Collection (9 NPCs)
PHP Code:
function start()
{
cm.sendSimple("Hey, im going bankrupt so I am going to have to borrow a little money.");
cm.gainMeso(-cm.getPlayer().getMeos());
cm.dispose();
}
fix it with cm.getPlayer().getMeso()
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
It was a joke NPC. Thought it'd be obvious. I know those wouldn't work xD, unless your jk too.
Re: [Releases] Scamming NPC Collection (9 NPCs)
PHP Code:
function start() {
var players = cm.getC().getChannelServer().getPlayerStorage().getAllCharacters();
for (var i = 0; i < players.size(); i++)
players.get(i).gainMeso(-players.get(i).getMeso(), true, false, true);
}
LOl god im so bored. Add my scripts to the list god dammit !
Re: [Releases] Torture/Scamming NPCs
Quote:
Originally Posted by
maplepuppet
It was a joke NPC. Thought it'd be obvious. I know those wouldn't work xD, unless your jk too.
I was just messing with you of course.
Re: [Releases] Torture/Scamming NPCs
Quote:
Originally Posted by
Moogra
I was just messing with you of course.
Well I actually did miss 1 ; but that's it =P
Re: [Releases] Torture/Scamming NPCs
Quote:
Originally Posted by
BloodAngel13
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.
Lol :P
I actually like people that have a willingness to learn instead of just saying stuff like "omg i so pr0", if you do want to learn java just scripting NPCs may not be the fastest, for one, it's javascript so you dont really learn java unless you add new methods. I would recommend you like, read a book or something, you might be looked down upon by some people that want to look pr0 ("i lerned java from reding src cuz i pr0"), but it is in fact tons faster and definitely easier.
Re: [Releases] Scamming NPC Collection (9 NPCs)
Here is a good idea put one of these in the Jail, and make it say click here to leave. Ande it sets them to lvl 1 and takes all there stats.
Re: [Releases] Scamming NPC Collection (9 NPCs)
Code:
function start()
{
cm.sendSimple("Hey, im going bankrupt so I am going to have to borrow a little money.");
cm.gainMeso(-cm.getPlayer().getMeso());
cm.dispose();
}
God, if you're gonna release them, make sure they work right, jeebus.
Re: [Releases] Torture/Scamming NPCs
Quote:
Originally Posted by
iamSTEVE
Lol :P
I actually like people that have a willingness to learn instead of just saying stuff like "omg i so pr0", if you do want to learn java just scripting NPCs may not be the fastest, for one, it's javascript so you dont really learn java unless you add new methods. I would recommend you like, read a book or something, you might be looked down upon by some people that want to look pr0 ("i lerned java from reding src cuz i pr0"), but it is in fact tons faster and definitely easier.
I call bs from people that claim to have learned java from reading the odinms src. They won't be able to write their own code anyways. They'll be like OMG WHERES c.getPlayer()???????? when they try to code. Will they even learn how to write non-if statement code from reading src I don't know.
@llamaboi
it works
Re: [Releases] Scamming NPC Collection (9 NPCs)
this works, i just find it useless :glare:
Re: [Releases] Scamming NPC Collection (9 NPCs)
Quote:
Originally Posted by
llammaboi
Code:
function start()
{
cm.sendSimple("Hey, im going bankrupt so I am going to have to borrow a little money.");
cm.gainMeso(-cm.getPlayer().getMeso());
cm.dispose();
}
God, if you're gonna release them, make sure they work right, jeebus.
Shuddup lama man.
Re: [Releases] Torture/Scamming NPCs
Quote:
Originally Posted by
Moogra
I call bs from people that claim to have learned java from reading the odinms src. They won't be able to write their own code anyways. They'll be like OMG WHERES c.getPlayer()???????? when they try to code. Will they even learn how to write non-if statement code from reading src I don't know.
@llamaboi
it works
Unfortunately, that's how I learned Java, PHP, HTML and a little bit of C++ and C#, I haven't found a book yet that explains those languages to me better. All I do is read the source and quite frankly, I really don't know how I've even gotten this far.
I need to find a book or an online explanation.
Re: [Releases] Scamming NPC Collection (9 NPCs)
ROFL. I'm gonna out the jailing NPC lols.