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