PageRenderTime 47ms CodeModel.GetById 20ms app.highlight 22ms RepoModel.GetById 1ms app.codeStats 0ms

/Trunk/scripts/npc/9001000.js

https://github.com/system32/NinjaMS
JavaScript | 298 lines | 281 code | 8 blank | 9 comment | 30 complexity | e2c991138ac4d7a383547138f2c2cb68 MD5 | raw file
  1/*
  2 * @NPC : Maple Admin - FreeMarket
  3 * @Author : System
  4 * @function: Info NPC*
  5 */
  6
  7var status = 0;
  8var npcs = Array("Job Advancer",
  9    "ICutHair/ICutHairToo",
 10    "Shadrion",
 11    "Charles",
 12    "Miki",
 13    "Ria",
 14    "Spinel",
 15    "Joko",
 16    "Duru",
 17    "Doofus",
 18    "Cloy",
 19    "Francois",
 20    "NLC MALL NPCS");
 21var npcfunction = Array("Job Advancer",
 22    "Style Npc",
 23    "Clan and Path Manager",
 24    "Gold / votereward manager",
 25    "Pot/smega/ summonrock Seller",
 26    "Ninja Shiken Manager",
 27    "Tour Tour Assistant",
 28    "Mounts/ Morphs/ Chairs/ Kagebunshin/ Rasengan NPC",
 29    "Max stat item and Legend Management NPC",
 30    "Pet Seller",
 31    "Special Pet Eq Seller for Pet vac",
 32    "All in one shop",
 33    "Everything item want can be found here");
 34
 35//PlayerCommands
 36var apcommands = Array ("str", "<amount>", "Adds Str if you have AP",
 37    "dex", "<amount>", "Adds Dex if you have AP",
 38    "int", "<amount>", "Adds Int if you have AP",
 39    "luk", "<amount>", "Adds luk if you have AP",
 40    "reducestr", "<amount>", "reduces AP from your STR and adds to remaining AP",
 41    "reducedex", "<amount>", "reduces AP from your DEX and adds to remaining AP",
 42    "reduceint", "<amount>", "reduces AP from your INT and adds to remaining AP",
 43    "reduceluk", "<amount>", "reduces AP from your LUK and adds to remaining AP",
 44    "resetstr", " ", "resets AP from your STR and adds to remaining AP",
 45    "resetdex", " ", "resets AP from your DEX and adds to remaining AP",
 46    "resetint", " ", "resets AP from your INT and adds to remaining AP",
 47    "resetluk", " ", "resets AP from your LUK and adds to remaining AP",
 48	"storeap", "amount", "adds ap to apstorage",
 49	"restoreap", "amount", "retrieves ap from storage",
 50	"autoapon", "", "turns on auto ap",
 51	"autoapoff", "", "turns off auto ap");
 52
 53var gameplaycommands = Array ("rebirth", " ", "rebirth command",
 54    "unstuck", "\<ign\> \<loginId\>", "unstuck the noob",
 55    "quit", " ", "exits game after saving your char",
 56    "buynx", " ", "buys 5k nx for 10 mil mesos",
 57    "shuriken", " ", " Get a Shuriken aka max stat item",
 58    "autospawn", "on/off", "turns pet autospawn on and off",
 59    "savepets", "", "saves pets for autospawn ");
 60
 61var inventorycommands = Array("removeitem", "<itemid>", "Removes all the items with that item id from your inventory",
 62    "removeeqrow", "", "removes the items from the first 4 slots on your Eq inventory",
 63    "removecashrow", "", "removes the items from the first 4 slots on your Cash inventory",
 64    "storage", "", "opens storage",
 65    "rechargestars", "", "recharge all your stars for free",
 66    "rechargebullets", "", "recharge all your bullets for free");
 67
 68var npctalkcommands = Array("clan", "", "Opens NPC MIA the clan manager of NinjaMS",
 69    "shop", "", "Opens the All in one shop NPC",
 70    "guide", "", "Opens guide NPC",
 71    "dispose", "", "Use this if the NPCs wont talk to you");
 72var searchcommands = Array("itemid", "search for", "searches for item id",
 73	"mobid","search for","search for mob id",
 74	"mapid", "search for", "search for mapid");
 75var warpcommands = Array("home", "", "Warps you to your Home");
 76var infocommands = Array("ninjaglare", "<ign>", "Shows Stats of the person",
 77    "connected", "", "Shows the number of players online",
 78    "ninjatop10", "<start from rank>", "shows ranking");
 79var funcommands = Array("smega", "message", "smega for you 10k mesos",
 80    "ismega", "message", "yellow Smega for 20k mesos",
 81    "emo", "", "try it for the lulz",
 82    "leet", "on\/off", "leet talk",
 83    "kagebunshin", "number", "Shadow Clone Jutsu specially from Naruto",
 84    "cancelkagebunshin", "", "removes all clones",
 85    "retardcure", "ign", " sures Retardness. hopefully",
 86    "title", "on\/off", " turns on and off title",
 87    "legend", "on\/off", " turns on and off legend",
 88    "namechange", "newign", "Changes your nick name for a fee");
 89    
 90// End Player Commands
 91//Training Grounds
 92var training = Array ("FM1", "Silver Slimes that spawn at random intervals.",
 93    "FM2", "Full of Skelegons.",
 94    "FM3", "Skelegons and Nest Golems.",
 95    "FM4", "Female Boss and Male Bosses.",
 96    "FM5", "Fake Papulatus. (Easy to kill)",
 97    "FM6", "Bigfoots and The Boss.",
 98    "FM7", "Female Boss and Male Boss.",
 99    "FM8", "A few Black Crows.",
100    "FM9", "Bodyguards galore!",
101    "FM10", "Tons of Black Crows.",
102    "FM11", "Qualm Monk Trainees.",
103    "FM12", "Qualm Monk Trainees and Chief Oblivion Guardians.",
104    "FM13", "Beginer Only Map! Tons of Mushmoms.",
105    "FM14", "Beginer Only Map! Jr. Balrog and Silver Slimes.",
106    "FM20", "Beginer Only Map! Mr. Anchor and Black Kentaurus",
107    "FM21", "Beginer Only Map! Horny Mushrooms, Coke Pigs, Sakura Cellions and Pac Pinkys.",
108    "FM22", "Beginer Only Map! Tutorial Sentinals, Red Snails and Ribbon Pigs.");
109//End Training Grounds Stuff
110
111function start() {
112    status = -1;
113    action(1, 0, 0);
114}
115function action(mode, type, selection) {
116    if (mode == -1) {
117		cm.voteMSG();
118        cm.dispose();
119    } else {
120		if(mode == 0 && status == 0){
121			cm.voteMSG();
122			cm.dispose();
123		}
124        if (mode == 1)
125            status++;
126        else
127            status--;
128        if (status == 0) {
129            var text = "Hello #h #. Welcome to NinjaMS. I'm the All in one guide Of NinjaMS. \r\n";
130            text += "#e I'm here to help the Lazy fags who forgot to read what Fiona said in the beginning#n\r\n";
131            text += "#r Choose What you want to know about : #b";
132            text += "\r\n#L1# General Info#l";
133            text += "\r\n#L2# NPC Info#l";
134            text += "\r\n#L3# Commands Info#b"
135            text += "\r\n#L4# Rebirth Info#l";
136            text += "\r\n#L5# Cygnus Info#l";
137            text += "\r\n#L6# Training ground Info#l\r\n";
138            text += "\r\n#e#r Note : Please don't forget to vote for us :#b http://ninjams.org/vote";
139            cm.sendSimple(text);
140        } else if (status == 1){
141            var guide = " ";
142            var simple = false;
143            switch (selection){
144                case 1:
145                    guide += "NinjaMS is a unique Friendly Community. We are always glad for New People.\r\n";
146                    guide += "We will be glad to help you with all the difficulties you face in game.";
147                    guide += "All you have to do is ask for it. You can smega for help using @smega <message here>";
148                    guide += "Most of the things/ NPC you need can be found in Ellinia or FM.\r\n";
149                    guide += "You can reach henesys by using command #e#b@home#k#n ";
150                    guide += "You can reach the FM by pressing the #b#eTrade#n#k button\r\n";
151                    guide += "#rPlease check my other options before you ask for help.";
152                    guide += "Afterall, its always a pleasure to browse around and find things :)";
153                    break;
154                case 2:
155                    guide += "#rThese are the NPCs you should Know About#k#e";
156                    for (i = 0; i < npcs.length; i++){
157                        guide += "\r\n\r\n#n#bName : #e"+ npcs[i];
158                        guide += "\r\n#n#rFunction : #e" + npcfunction[i];
159                    }
160                    guide += "\r\n\r\n note : All the NPC can be found in Henesys which you can reach by using command : @home.\r\n";
161                    break;
162                case 3:
163                    simple = true;
164                    guide += " These are the Player Commands Available now. Choose What you need : \r\n";
165                    guide += "#b\r\n#L1# AP/Stat Commands #l";
166                    guide += "\r\n#L2# GamePlay Commands #l";
167                    guide += "\r\n#L3# Inventory Manipulation Commands#l";
168                    guide += "\r\n#L4# Convinient Commands#l";
169                    guide += "\r\n#L5# Fun Commands #l\r\n";
170                    break;
171                case 4 :
172                    guide += " Rebirth in NinjaMS is really a easy thing to do.";
173                    guide += " Rebirthing makes you a lot stronger than you could have ever imagined";
174                    guide += " \r\n level required for rebirthing varies according to the number of rebirths you have.";
175                    guide += " \r\n #rupto 10 rb - lvl 200; upto 50rb - lvl 205 and so on.";
176                    guide += " #b\r\n Rebirthing can be done by using command #d#e @rebirth#n#k";
177                    guide += " \r\n #e Note: When you rebirth for 15 secods you cannot gain any EXP.#n";
178                case 5 :
179                    guide += " Oh the Cygnus. They suck to be honest. But ya I know you love it";
180                    guide += " \r\n I wont blame you for being #rGAY#k";
181                    guide += " \r\n For getting Cygnus Jobs, you should be atleast 3 rebirths.";
182                    guide += " \r\n Type @clan to open the path manager. Change your path to toggle adventurer and cygnus path";
183                    guide += " \r\n #dYour keys will be wiped when you change paths. You can job chnage anytime after 3 RB by talking to Rock,paper,Scissor Admin.#k ";
184                    guide += " \r\n You will be warped to map 0 when you change paths. use #b@home# to reach Ellinia back.";
185                    break;
186                case 6 :
187                    guide += "These are all the training grounds in NinjaMS";
188                    guide += " \r\n If you weren't so lazy, then you could just walk around for 5 minutes and find out for your self.";
189                    for (i = 0; i < training.length; i++){
190                        guide += "\r\n #n#bPlace : #e#r " + training[i];
191                        guide += "\r\n #n#bMonsters : #e#d " + training [i+1];
192                        i++;
193                    }
194                    guide += "\r\n "
195                    break;
196                default:
197                    guide = "undercontruction";
198                    break;
199            }
200            if (simple){
201                cm.sendSimple(guide);
202            } else {
203                cm.sendOk(guide);
204                cm.dispose();
205            }            
206        } else if (status == 2){
207            var guides = " ";
208            switch(selection){
209                case 1:
210                    guides += "\r\nThese are the AP Manipulation Commands available now : ";
211                    for (i = 0; i < apcommands.length; i++){
212                        guides += "\r\n #n#bCommand : #e \@" + apcommands[i];
213                        guides += "\r\n #n#dSyntax : #e \@" + apcommands[i] + " " + apcommands[i+1];
214                        guides += "\r\n #n#kFunction : #e " + apcommands[i+2] + "\r\n";
215                        i++;
216                        i++;
217                    }
218                    guides += " ";
219                    break;
220                case 2:
221                    guides += "\r\nThese are the GamePlay Commands available now :  ";
222                    for (i = 0; i < gameplaycommands.length; i++){
223                        guides += "\r\n #n#bCommand : #e \@" + gameplaycommands[i];
224                        guides += "\r\n #n#dSyntax : #e \@" + gameplaycommands[i] + " " + gameplaycommands[i+1];
225                        guides += "\r\n #n#kFunction : #e" + gameplaycommands[i+2] + "\r\n";
226                        i++;
227                        i++;
228                    }
229                    guides += " ";
230                    break;
231                case 3:
232                    guides += "\r\nThese are the Inventory Manipulation Commands available now: ";
233                    for (i = 0; i < inventorycommands.length; i++){
234                        guides += "\r\n #n#bCommand : #e \@" + inventorycommands[i];
235                        guides += "\r\n #n#dSyntax : #e \@" + inventorycommands[i] + " " + inventorycommands[i+1];
236                        guides += "\r\n #n#kFunction : #e" + inventorycommands[i+2] + "\r\n";
237                        i++;
238                        i++;
239                    }
240                    guides += " ";
241                    break;
242                case 4:
243                    guides += "\r\nThese are the Convinient Commands available now: ";
244                    guides += "\r\n\r\n#r#e NPC Commands : ";
245                    for (i = 0; i < npctalkcommands.length; i++){
246                        guides += "\r\n #n#bCommand : #e \@" + npctalkcommands[i];
247                        guides += "\r\n #n#dSyntax : #e \@" + npctalkcommands[i] + " " + npctalkcommands[i+1];
248                        guides += "\r\n #n#kFunction : #e" + npctalkcommands[i+2] + "\r\n";
249                        i++;
250                        i++;
251                    }
252                    guides += "\r\n\r\n#r#e Search Command : ";
253                    for (i = 0; i < searchcommands.length; i++){
254                        guides += "\r\n #n#bCommand : #e \@" + searchcommands[i];
255                        guides += "\r\n #n#dSyntax : #e \@" + searchcommands[i] + " " + searchcommands[i+1];
256                        guides += "\r\n #n#kFunction : #e" + searchcommands[i+2] + "\r\n";
257                        i++;
258                        i++;
259                    }
260                    guides += "\r\n\r\n#r#e Warp command : ";
261                    for (i = 0; i < warpcommands.length; i++){
262                        guides += "\r\n #n#bCommand : #e \@" + warpcommands[i];
263                        guides += "\r\n #n#dSyntax : #e \@" + warpcommands[i] + " " + warpcommands[i+1];
264                        guides += "\r\n #n#kFunction : #e" + warpcommands[i+2] + "\r\n";
265                        i++;
266                        i++;
267                    }
268                    guides += "\r\n\r\n#r#e Info Commands : ";
269                    for (i = 0; i < infocommands.length; i++){
270                        guides += "\r\n #n#bCommand : #e \@" + infocommands[i];
271                        guides += "\r\n #n#dSyntax : #e \@" + infocommands[i] + " " + infocommands[i+1];
272                        guides += "\r\n #n#kFunction : #e" + infocommands[i+2] + "\r\n";
273                        i++;
274                        i++;
275                    }
276                    guides += " ";
277                    break;
278                case 5 :
279                    guides += "\r\nThese are the fun Commands available now : ";
280                    for (i = 0; i < (funcommands.length); i++){
281                        guides += "\r\n #n#bCommand : #e \@" + funcommands[i];
282                        guides += "\r\n #n#dSyntax : #e \@" + funcommands[i] + " " + funcommands[i+1];
283                        guides += "\r\n #n#kFunction : #e" + funcommands[i+2] + "\r\n";
284                        i++;
285                        i++;
286                    }
287                    guides += " ";
288                    break;
289                default:
290                    guides += " You retard lar";
291                    break;
292            }
293            cm.sendOk(guides);
294            cm.dispose();
295        }
296    }
297}
298