-
[Release]Auto Pop-up NPC (Released Already) This one Different~
Ok I got my idea from this thread http://forum.ragezone.com/f427/relea...xt-job-498020/
Credits to Jerry69 for the first cody pop-up npc
It basically makes cody pop up when you level up to 30, 70, 120 so you can advance without going to him.
What I've come up with is every 10 levels Your sells everything NPC pop up saying "Hey Nice job leveling would you like to get new equips note: you can get them every 10 levels"
so basically you will npc sells everything major unbelieble shop just find it use search button.
Ok now for adding the function:
Step 1: Go to MapleCharacter.java in your source
add to your imports
PHP Code:
import net.sf.odinms.scripting.npc.NPCScriptManager;
note make sure you dont have it already.
now add
PHP Code:
if (level == 20) {
NPCScriptManager npc = NPCScriptManager.getInstance();
npc.start(client, 1061008);
}
if (level == 40) {
NPCScriptManager npc = NPCScriptManager.getInstance();
npc.start(client, 1061008);
}
if (level == 60) {
NPCScriptManager npc = NPCScriptManager.getInstance();
npc.start(client, 1061008);
}
if (level == 80) {
NPCScriptManager npc = NPCScriptManager.getInstance();
npc.start(client, 1061008);
}
if (level == 90) {
NPCScriptManager npc = NPCScriptManager.getInstance();
npc.start(client, 1061008);
}
if (level == 120) {
NPCScriptManager npc = NPCScriptManager.getInstance();
npc.start(client, 1061008);
} if (level == 10) {
if (level == 140) {
NPCScriptManager npc = NPCScriptManager.getInstance();
npc.start(client, 1061008);
}
if (level == 150) {
NPCScriptManager npc = NPCScriptManager.getInstance();
npc.start(client, 1061008);
}
if (level == 170) {
NPCScriptManager npc = NPCScriptManager.getInstance();
npc.start(client, 1061008);
}
if (level == 190) {
NPCScriptManager npc = NPCScriptManager.getInstance();
npc.start(client, 1061008);
}
if (level == 210) {
NPCScriptManager npc = NPCScriptManager.getInstance();
npc.start(client, 1061008);
}
Under
PHP Code:
if (level == 200 && !isGM()) {
exp.set(0);
MaplePacket packet = MaplePacketCreator.serverNotice(6, "[Congrats] " + getName() + " has reached Level 200! Congratulate " + getName() + " on such an amazing achievment!");
try {
getClient().getChannelServer().getWorldInterface().broadcastMessage(getName(), packet.getBytes());
} catch (RemoteException e) {
getClient().getChannelServer().reconnectWorld();
}
}
Change 1061008 to the npc id of your npc that sells everything.
I know I leeched but atleast I gave credits and also showed a good way to make this your self it's really simple when you look at it.
-
Re: [Release]Auto Pop-up NPC (Released Already) This one Different~
wow, that's really annoying if it keep poping out everytime u level.
-
Re: [Release]Auto Pop-up NPC (Released Already) This one Different~
Quote:
Originally Posted by
EspadaFung
wow, that's really annoying if it keep poping out everytime u level.
Yeah. Agree with you.
Anyway. Nice release. :D
-
Re: [Release]Auto Pop-up NPC (Released Already) This one Different~
Quote:
Originally Posted by
EspadaFung
wow, that's really annoying if it keep poping out everytime u level.
Lool,,
so true,,
there are private servers that have like super power leveling
and like,, thatd be fking annoying,,
servers dunt really need dis,, but o well xP
i guess its useful to some people
nice try releasing xP
-
Re: [Release]Auto Pop-up NPC (Released Already) This one Different~
Hopefully it'd be useful to some people.
-
Re: [Release]Auto Pop-up NPC (Released Already) This one Different~
this is useful,
ill make the infinte prank npc pop up every time somebody levels =D
-
Re: [Release]Auto Pop-up NPC (Released Already) This one Different~
It's not every level though its every 10 levels good for low rate server
-
Re: [Release]Auto Pop-up NPC (Released Already) This one Different~
annoy, but in case anyone like it, i would recommend make a settings. ;)
-
Re: [Release]Auto Pop-up NPC (Released Already) This one Different~
Wouldn't we need to have the npc script of it saying gratz and such?
-
Re: [Release]Auto Pop-up NPC (Released Already) This one Different~
Uhmm just get the script of that shop I told you search it and just use it don't you understand my guide.... Gosh men I tried my best explaning
-
Re: [Release]Auto Pop-up NPC (Released Already) This one Different~
Quote:
Originally Posted by
yuniordiaz
It's not every level though its every 10 levels good for low rate server
its called, i can program java also?
ill just edit the script
-
Re: [Release]Auto Pop-up NPC (Released Already) This one Different~
Using command to change jobs is much better, nice release anyway.
-
Re: [Release]Auto Pop-up NPC (Released Already) This one Different~
Quote:
Originally Posted by
Clysse
its called, i can program java also?
ill just edit the script
Yah I can tell you know from your answer I just though that some people though it was every level , and I dont even know Java that much yet but it was pretty obvious to me what that script did sorry if you took it as an insult
-
Re: [Release]Auto Pop-up NPC (Released Already) This one Different~
Nice Release for those low rate server.
-
Re: [Release]Auto Pop-up NPC (Released Already) This one Different~
Nice release it might be usefull to use somehow :)
-
Re: [Release]Auto Pop-up NPC (Released Already) This one Different~
Level 1 kills a snail, levels up 10 levels. That's just 10 more pop-ups to deal with. Useless.
-
Re: [Release]Auto Pop-up NPC (Released Already) This one Different~
-
Re: [Release]Auto Pop-up NPC (Released Already) This one Different~
Every 10 levels is too fast
It could get really annoying
Maybe, 50 levels?
-
Re: [Release]Auto Pop-up NPC (Released Already) This one Different~
Edited:every 20 levels anyways this was made for low rate servers
-
Re: [Release]Auto Pop-up NPC (Released Already) This one Different~
Mine is still the best. ;-;
-
Re: [Release]Auto Pop-up NPC (Released Already) This one Different~
Quote:
Originally Posted by
MiniAxel
Mine is still the best. ;-;
My, my... Don't hurt his feelings
-
Re: [Release]Auto Pop-up NPC (Released Already) This one Different~
I know it is Mini lol you still my hero f3
Quote:
Originally Posted by
xbLazE
My, my... Don't hurt his feelings
my feelings aren't hurt
-
Re: [Release]Auto Pop-up NPC (Released Already) This one Different~
wow bumping an one month thread..
-
Re: [Release]Auto Pop-up NPC (Released Already) This one Different~
Wasn't me, maplepuppet he's apperantly retarded
-
Re: [Release]Auto Pop-up NPC (Released Already) This one Different~
PHP Code:
switch (level) {
case 10:
case 20:
case 30:
case 40: // etc etc...
NPCScriptManager npc = NPCScriptManager.getInstance();
npc.start(client, 1061008);
}