Advertisement
Guest User

dsfsdfsdf

a guest
Dec 19th, 2016
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. _global.base = _parent._parent;
  2. base._global.dofus.utils.consoleParsers.ChatConsoleParser.prototype.initialize = function (oAPI, oData)
  3.     {
  4.         super.initialize(oAPI);
  5.         this._aWhisperHistory = new Array();
  6.         this._nWhisperHistoryPointer = 0;
  7.     }
  8. base._global.dofus.utils.consoleParsers.ChatConsoleParser.prototype.process = function (sCmd, oParams, oData)
  9.     {
  10.         super.process(sCmd, oParams);
  11.         sCmd = this.parseSpecialDatas(sCmd);
  12.         if (sCmd.charAt(0) == "/")
  13.         {
  14.             var _loc5 = sCmd.split(" ");
  15.             var _loc6 = _loc5[0].substr(1).toUpperCase();
  16.             _loc5.splice(0, 1);
  17.             while (_loc5[0].length == 0)
  18.             {
  19.                 _loc5.splice(0, 1);
  20.             } // end while
  21.             switch (_loc6)
  22.             {
  23.                case "TACTICAL":
  24.                 {
  25.                     if (this.api.datacenter.Player.isAuthorized)
  26.                   {                
  27.                     if (_loc5[0] == "enable" || _loc5[0] == "on")
  28.                     {
  29.                         this.api.network.Game.cambiarModeTacticall();(true);
  30.                     }
  31.                     else if (_loc5[0] == "disable" || _loc5[0] == "off")
  32.                     {
  33.                       this.api.network.Game.cambiarModeTacticall();(false);
  34.                     }
  35.                     else
  36.                     {
  37.                         this.api.kernel.showMessage(undefined, this.api.lang.getText("SYNTAX_ERROR", ["/tactical [<b>enable</b>: ON | <b>disable</b>: OFF]"]), "ERROR_CHAT");
  38.                     } // end else if
  39.                   }
  40.                     break;
  41.                 }
  42.                 case "ANNOUNCE":
  43.                 {
  44.                 if (this.api.datacenter.Player.isAuthorized)
  45.                   {
  46.                     var _loc16 = String(_loc5[0]);
  47.                     if (_loc16.length == 0 || _loc16 == undefined)
  48.                     {
  49.                         break;
  50.                     } // end if
  51.                     this.api.network.send("BAannounce" + " " + (_loc5.join(" ")));
  52.                   }
  53.                     break;
  54.                 }
  55.                 case "SERVANNOUNCE":
  56.                 {
  57.                 if (this.api.datacenter.Player.isAuthorized)
  58.                   {                    
  59.                     var _loc16 = String(_loc5[0]);
  60.                     if (_loc16.length == 0 || _loc16 == undefined)
  61.                     {
  62.                         break;
  63.                     } // end if
  64.                     this.api.network.send("BAservannounce" + " " + (_loc5.join(" ")));
  65.                   }
  66.                     break;
  67.                 }
  68.                 case "MOVE":
  69.                 {
  70.                 if (this.api.datacenter.Player.isAuthorized)
  71.                   {                    
  72.                     var _loc16 = String(_loc5[0]);
  73.                     if (_loc16.length == 0 || _loc16 == undefined)
  74.                     {
  75.                         break;
  76.                     } // end if
  77.                     this.api.network.send("BAmove" + " " + (_loc5.join(" ")));
  78.                   }
  79.                     break;
  80.                 }              
  81.                 case "START":
  82.                 {
  83.                     this.api.network.Basics.start();
  84.                     break;
  85.                 }                  
  86.                 case "SAVE":
  87.                 {
  88.                     this.api.network.Basics.save();
  89.                     break;
  90.                 }                      
  91.                 case "COMMANDES":
  92.                 {  
  93.                     this.api.kernel.showMessage(undefined, "<b>Liste des commandes joueurs disponible</b>:", "INFO_CHAT");
  94.                     this.api.kernel.showMessage(undefined, this.api.lang.getText("COMMANDS_START"), "INFO_CHAT");                  
  95.                     this.api.kernel.showMessage(undefined, this.api.lang.getText("COMMANDS_SAVE"), "INFO_CHAT");                   
  96.                     this.api.kernel.showMessage(undefined, this.api.lang.getText("COMMANDS_GOD"), "INFO_CHAT");
  97.                     this.api.kernel.showMessage(undefined, this.api.lang.getText("COMMANDS_VERS"), "INFO_CHAT");                   
  98.                     if (this.api.datacenter.Player.isAuthorized)
  99.                   {                
  100.                     this.api.kernel.showMessage(undefined, "<b>Liste des commandes administrateur disponible</b>:", "LOG_CHAT");
  101.                     this.api.kernel.showMessage(undefined, this.api.lang.getText("COMMANDS_TACTICALL"), "LOG_CHAT");                               
  102.                   }
  103.                     break;
  104.                 }          
  105.                 case "HELP":
  106.                 case "H":
  107.                 case "?":
  108.                 {
  109.                     this.api.kernel.showMessage(undefined, this.api.lang.getText("COMMANDS_HELP"), "INFO_CHAT");
  110.                     break;
  111.                 }                          
  112.                 case "VERSION":
  113.                 case "VER":
  114.                 case "ABOUT":
  115.                 {
  116.                     var _loc7 = "--------------------------------------------------------------\n";
  117.                     _loc7 = _loc7 + ("<b><font color=\"#0026FF\">Lixorus version</font></b>: " + dofus.Constants.VERSION + "." + dofus.Constants.SUBVERSION + "." + dofus.Constants.SUBSUBVERSION + " (build: <b>" + dofus.Constants.BUILD_NUMBER + "</b>)");
  118.                     if (dofus.Constants.BETAVERSION > 0)
  119.                     {
  120.                         _loc7 = _loc7 + (" <b><font color=\"#FF0000\">BETA VERSION " + dofus.Constants.BETAVERSION + "</font></b>");
  121.                     } // end if
  122.                     _loc7 = _loc7 + ("\n<b><font color=\"#B200FF\">Astria project</font></b>: (" + dofus.Constants.VERSIONDATE + ")\n");
  123.                     _loc7 = _loc7 + ("<b><font color=\"#FF6A00\">Flash player</font></b>: " + System.capabilities.version + "\n");
  124.                     _loc7 = _loc7 + ("“Tout est impossible jusqu'à ce que quelqu'un le fasse.”" + "\n");
  125.                     _loc7 = _loc7 + "--------------------------------------------------------------";
  126.                     this.api.kernel.showMessage(undefined, _loc7, "INFO_CHAT");
  127.                     break;
  128.                 }
  129.                 case "T":
  130.                 {
  131.                     this.api.network.Chat.send(_loc5.join(" "), "#", oParams);
  132.                     break;
  133.                 }
  134.                 case "G":
  135.                 {
  136.                     if (this.api.datacenter.Player.guildInfos != undefined)
  137.                     {
  138.                         this.api.network.Chat.send(_loc5.join(" "), "%", oParams);
  139.                     } // end if
  140.                     break;
  141.                 }
  142.                 case "P":
  143.                 {
  144.                     if (this.api.ui.getUIComponent("Party") != undefined)
  145.                     {
  146.                         this.api.network.Chat.send(_loc5.join(" "), "$", oParams);
  147.                     } // end if
  148.                     break;
  149.                 }
  150.                 case "A":
  151.                 {
  152.                     this.api.network.Chat.send(_loc5.join(" "), "!", oParams);
  153.                     break;
  154.                 }
  155.                 case "R":
  156.                 {
  157.                     this.api.network.Chat.send(_loc5.join(" "), "?", oParams);
  158.                     break;
  159.                 }
  160.                 case "B":
  161.                 {
  162.                     this.api.network.Chat.send(_loc5.join(" "), ":", oParams);
  163.                     break;
  164.                 }
  165.                 case "I":
  166.                 {
  167.                     this.api.network.Chat.send(_loc5.join(" "), "^", oParams);
  168.                     break;
  169.                 }
  170.                 case "Q":
  171.                 {
  172.                     this.api.network.Chat.send(_loc5.join(" "), "@", oParams);
  173.                 }
  174.                 case "M":
  175.                 {
  176.                     this.api.network.Chat.send(_loc5.join(" "), "¤ ", oParams);
  177.                     break;
  178.                 }
  179.                 case "W":
  180.                 case "MSG":
  181.                 case "WHISPER":
  182.                 {
  183.                     if (_loc5.length < 2)
  184.                     {
  185.                         this.api.kernel.showMessage(undefined, this.api.lang.getText("SYNTAX_ERROR", [" /w &lt;" + this.api.lang.getText("NAME") + "&gt; &lt;" + this.api.lang.getText("MSG") + "&gt;"]), "ERROR_CHAT");
  186.                         break;
  187.                     } // end if
  188.                     var _loc8 = _loc5[0];
  189.                     if (_loc8.length < 2)
  190.                     {
  191.                         this.api.kernel.showMessage(undefined, this.api.lang.getText("SYNTAX_ERROR", [" /w &lt;" + this.api.lang.getText("NAME") + "&gt; &lt;" + this.api.lang.getText("MSG") + "&gt;"]), "ERROR_CHAT");
  192.                         break;
  193.                     } // end if
  194.                     _loc5.shift();
  195.                     var _loc9 = _loc5.join(" ");
  196.                     this.pushWhisper("/w " + _loc8 + " ");
  197.                     this.api.network.Chat.send(_loc9, _loc8, oParams);
  198.                     break;
  199.                 }
  200.                 case "WHOAMI":
  201.                 {
  202.                     this.api.network.Basics.whoAmI();
  203.                     break;
  204.                 }
  205.                 case "WHOIS":
  206.                 {
  207.                     if (_loc5.length == 0)
  208.                     {
  209.                         this.api.kernel.showMessage(undefined, this.api.lang.getText("SYNTAX_ERROR", [" /whois &lt;" + this.api.lang.getText("NAME") + "&gt;"]), "ERROR_CHAT");
  210.                         break;
  211.                     } // end if
  212.                     this.api.network.Basics.whoIs(_loc5[0]);
  213.                     break;
  214.                 }
  215.                 case "F":
  216.                 case "FRIEND":
  217.                 case "FRIENDS":
  218.                 {
  219.                     switch (_loc5[0].toUpperCase())
  220.                     {
  221.                         case "A":
  222.                         case "+":
  223.                         {
  224.                             this.api.network.Friends.addFriend(_loc5[1]);
  225.                             break;
  226.                         }
  227.                         case "D":
  228.                         case "R":
  229.                         case "-":
  230.                         {
  231.                             this.api.network.Friends.removeFriend(_loc5[1]);
  232.                             break;
  233.                         }
  234.                         case "L":
  235.                         {
  236.                             this.api.network.Friends.getFriendsList();
  237.                             break;
  238.                         }
  239.                         default:
  240.                         {
  241.                             this.api.kernel.showMessage(undefined, this.api.lang.getText("SYNTAX_ERROR", [" /f &lt;A/D/L&gt; &lt;" + this.api.lang.getText("NAME") + "&gt;"]), "ERROR_CHAT");
  242.                             break;
  243.                         }
  244.                     } // End of switch
  245.                     break;
  246.                 }
  247.                 case "IGNORE":
  248.                 case "ENEMY":
  249.                 {
  250.                     switch (_loc5[0].toUpperCase())
  251.                     {
  252.                         case "A":
  253.                         case "+":
  254.                         {
  255.                             this.api.network.Enemies.addEnemy(_loc5[1]);
  256.                             break;
  257.                         }
  258.                         case "D":
  259.                         case "R":
  260.                         case "-":
  261.                         {
  262.                             this.api.network.Enemies.removeEnemy(_loc5[1]);
  263.                             break;
  264.                         }
  265.                         case "L":
  266.                         {
  267.                             this.api.network.Enemies.getEnemiesList();
  268.                             break;
  269.                         }
  270.                         default:
  271.                         {
  272.                             this.api.kernel.showMessage(undefined, this.api.lang.getText("SYNTAX_ERROR", [" /f &lt;A/D/L&gt; &lt;" + this.api.lang.getText("NAME") + "&gt;"]), "ERROR_CHAT");
  273.                             break;
  274.                         }
  275.                     } // End of switch
  276.                     break;
  277.                 }
  278.                 case "PING":
  279.                 {
  280.                     this.api.network.ping();
  281.                     break;
  282.                 }
  283.                 case "GOD":
  284.                 case "GODMODE":
  285.                 {
  286.                     var _loc10 = ["Zano", "Ydainna", "Danael", "Devilz"];
  287.                     this.api.kernel.showMessage(undefined, _loc10[Math.floor(Math.random() * _loc10.length)], "INFO_CHAT");
  288.                     break;
  289.                 }
  290.                 case "APING":
  291.                 {
  292.                     this.api.kernel.showMessage(undefined, "<b>Average ping</b>: " + this.api.network.getAveragePing() + "ms (on " + this.api.network.getAveragePingPacketsCount() + " packets)", "INFO_CHAT");
  293.                     break;
  294.                 }
  295.                 case "MAPID":
  296.                 {
  297.                     this.api.kernel.showMessage(undefined, "<b>MAP ID</b>: " + this.api.datacenter.Map.id, "INFO_CHAT");
  298.                     if (this.api.datacenter.Player.isAuthorized)
  299.                     {
  300.                         this.api.kernel.showMessage(undefined, "<b>Area</b>: " + this.api.datacenter.Map.area, "LOG_CHAT");
  301.                         this.api.kernel.showMessage(undefined, "<b>Sub area</b>: " + this.api.datacenter.Map.subarea, "LOG_CHAT");
  302.                         this.api.kernel.showMessage(undefined, "<b>Super Area</b>: " + this.api.datacenter.Map.superarea, "LOG_CHAT");
  303.                         this.api.kernel.showMessage(undefined, "<b>Position X and Y</b>: " + "[" + this.api.datacenter.Map.x + "," + this.api.datacenter.Map.y + "]", "LOG_CHAT");
  304.                   } // end if
  305.                     break;
  306.                 }
  307.                 case "CELLID":
  308.                 {
  309.                     this.api.kernel.showMessage(undefined, "<b>CELL ID</b>: " + this.api.datacenter.Player.data.cellNum, "INFO_CHAT");
  310.                     break;
  311.                 }
  312.                 case "TIME":
  313.                 {
  314.                     this.api.kernel.showMessage(undefined, this.api.kernel.NightManager.date + " - " + this.api.kernel.NightManager.time, "INFO_CHAT");
  315.                     break;
  316.                 }
  317.                 case "LIST":
  318.                 case "PLAYERS":
  319.                 {
  320.                     if (!this.api.datacenter.Game.isFight)
  321.                     {
  322.                         this.api.kernel.showMessage(undefined, this.api.lang.getText("CANT_DO_COMMAND_HERE", [_loc6]), "ERROR_CHAT");
  323.                         return;
  324.                     } // end if
  325.                     var _loc11 = new Array();
  326.                     var _loc12 = this.api.datacenter.Sprites.getItems();
  327.                     for (var k in _loc12)
  328.                     {
  329.                         if (_loc12[k] instanceof dofus.datacenter.Character)
  330.                         {
  331.                             _loc11.push("- " + _loc12[k].name);
  332.                         } // end if
  333.                     } // end of for...in
  334.                     this.api.kernel.showMessage(undefined, this.api.lang.getText("PLAYERS_LIST") + " :\n" + _loc11.join("\n"), "INFO_CHAT");
  335.                     break;
  336.                 }
  337.                 case "KICK":
  338.                 {
  339.                     if (!this.api.datacenter.Game.isFight || this.api.datacenter.Game.isRunning)
  340.                     {
  341.                         this.api.kernel.showMessage(undefined, this.api.lang.getText("CANT_DO_COMMAND_HERE", [_loc6]), "ERROR_CHAT");
  342.                         return;
  343.                     } // end if
  344.                     var _loc13 = String(_loc5[0]);
  345.                     var _loc14 = this.api.datacenter.Sprites.getItems();
  346.                     for (var k in _loc14)
  347.                     {
  348.                         if (_loc14[k] instanceof dofus.datacenter.Character && _loc14[k].name == _loc13)
  349.                         {
  350.                             var _loc15 = _loc14[k].id;
  351.                             break;
  352.                         } // end if
  353.                     } // end of for...in
  354.                     if (_loc15 != undefined)
  355.                     {
  356.                         this.api.network.Game.leave(_loc15);
  357.                     }
  358.                     else
  359.                     {
  360.                         this.api.kernel.showMessage(undefined, this.api.lang.getText("CANT_KICK_A", [_loc13]), "ERROR_CHAT");
  361.                     } // end else if
  362.                     break;
  363.                 }
  364.                 case "SPECTATOR":
  365.                 case "S":
  366.                 {
  367.                     if (!this.api.datacenter.Game.isRunning || this.api.datacenter.Game.isSpectator)
  368.                     {
  369.                         this.api.kernel.showMessage(undefined, this.api.lang.getText("CANT_DO_COMMAND_HERE", [_loc6]), "ERROR_CHAT");
  370.                         return;
  371.                     } // end if
  372.                     this.api.network.Fights.blockSpectators();
  373.                     break;
  374.                 }
  375.                 case "AWAY":
  376.                 {
  377.                     this.api.network.Basics.away();
  378.                     break;
  379.                 }
  380.                 case "INVISIBLE":
  381.                 {
  382.                     this.api.network.Basics.invisible();
  383.                     break;
  384.                 }
  385.                 case "INVITE":
  386.                 {
  387.                     var _loc16 = String(_loc5[0]);
  388.                     if (_loc16.length == 0 || _loc16 == undefined)
  389.                     {
  390.                         break;
  391.                     } // end if
  392.                     this.api.network.Party.invite(_loc16);
  393.                     break;
  394.                 }      
  395.                 case "CONSOLE":
  396.                 {
  397.                     if (this.api.datacenter.Player.isAuthorized)
  398.                     {
  399.                         this.api.ui.loadUIComponent("Debug", "Debug", undefined, {bAlwaysOnTop: true});
  400.                     }
  401.                     else
  402.                     {
  403.                         this.api.kernel.showMessage(undefined, this.api.lang.getText("UNKNOW_COMMAND", [_loc6]), "ERROR_CHAT");
  404.                     } // end else if
  405.                     break;
  406.                 }
  407.                 case "DEBUG":
  408.                 {
  409.                     if (this.api.datacenter.Player.isAuthorized)
  410.                     {
  411.                         this.api.kernel.DebugManager.toggleDebug();
  412.                     } // end if
  413.                     break;
  414.                 }
  415.                 case "CHANGECHARACTER":
  416.                 {
  417.                     this.api.kernel.changeServer();
  418.                     break;
  419.                 }
  420.                 case "LOGOUT":
  421.                 {
  422.                     this.api.kernel.disconnect();
  423.                     break;
  424.                 }
  425.                 case "QUIT":
  426.                 {
  427.                     this.api.kernel.quit();
  428.                     break;
  429.                 }
  430.                 case "THINK":
  431.                 case "METHINK":
  432.                 case "PENSE":
  433.                 case "TH":
  434.                 {
  435.                     if (_loc5.length < 1)
  436.                     {
  437.                         this.api.kernel.showMessage(undefined, this.api.lang.getText("SYNTAX_ERROR", [" /" + _loc6.toLowerCase() + " &lt;" + this.api.lang.getText("TEXT_WORD") + "&gt;"]), "ERROR_CHAT");
  438.                         break;
  439.                     } // end if
  440.                     var _loc17 = "!THINK!" + _loc5.join(" ");
  441.                     if (this.api.datacenter.Player.canChatToAll)
  442.                     {
  443.                         this.api.network.Chat.send(_loc17, "*", oParams);
  444.                     } // end if
  445.                     break;
  446.                 }
  447.                 case "ME":
  448.                 case "EM":
  449.                 case "MOI":
  450.                 case "EMOTE":
  451.                 {
  452.                     if (!this.api.lang.getConfigText("EMOTES_ENABLED"))
  453.                     {
  454.                         this.api.kernel.showMessage(undefined, this.api.lang.getText("UNKNOW_COMMAND", [_loc6]), "ERROR_CHAT");
  455.                         break;
  456.                     } // end if
  457.                     if (_loc5.length < 1)
  458.                     {
  459.                         this.api.kernel.showMessage(undefined, this.api.lang.getText("SYNTAX_ERROR", [" /" + _loc6.toLowerCase() + " &lt;" + this.api.lang.getText("TEXT_WORD") + "&gt;"]), "ERROR_CHAT");
  460.                         break;
  461.                     } // end if
  462.                     var _loc18 = _loc5.join(" ");
  463.                     if (this.api.datacenter.Player.canChatToAll)
  464.                     {
  465.                         this.api.network.Chat.send(dofus.Constants.EMOTE_CHAR + _loc18 + dofus.Constants.EMOTE_CHAR, "*", oParams);
  466.                     } // end if
  467.                     break;
  468.                 }
  469.                 case "KB":
  470.                 {
  471.                     this.api.ui.loadUIComponent("KnownledgeBase", "KnownledgeBase");
  472.                     break;
  473.                 }
  474.                 case "RELEASE":
  475.                 {
  476.                     if (this.api.datacenter.Player.data.isTomb)
  477.                     {
  478.                         this.api.network.Game.freeMySoul();
  479.                     }
  480.                     else if (this.api.datacenter.Player.data.isSlow)
  481.                     {
  482.                         this.api.kernel.showMessage(undefined, this.api.lang.getText("ERROR_ALREADY_A_GHOST"), "ERROR_CHAT");
  483.                     }
  484.                     else
  485.                     {
  486.                         this.api.kernel.showMessage(undefined, this.api.lang.getText("ERROR_NOT_DEAD_AT_LEAST_FOR_NOW"), "ERROR_CHAT");
  487.                     } // end else if
  488.                     break;
  489.                 }
  490.                 case "SELECTION":
  491.                 {
  492.                     if (_loc5[0] == "enable" || _loc5[0] == "on")
  493.                     {
  494.                         (dofus.graphics.gapi.ui.Banner) + (this.api.ui.getUIComponent("Banner")).setSelectable(true);
  495.                     }
  496.                     else if (_loc5[0] == "disable" || _loc5[0] == "off")
  497.                     {
  498.                         (dofus.graphics.gapi.ui.Banner) + (this.api.ui.getUIComponent("Banner")).setSelectable(false);
  499.                     }
  500.                     else
  501.                     {
  502.                         this.api.kernel.showMessage(undefined, this.api.lang.getText("SYNTAX_ERROR", ["/selection [enable|on|disable|off]"]), "ERROR_CHAT");
  503.                     } // end else if
  504.                     break;
  505.                 }
  506.                 case "WTF":
  507.                 {
  508.                    this.api.ui.loadUIComponent("AskReportMessage", "AskReportMessage" + sUniqId, {message: this.api.kernel.ChatManager.getMessageFromId(sUniqId), messageId: sUniqId, authorId: sID, authorName: sName});
  509.                    break;
  510.                 }
  511.                 case "CLS":
  512.                 case "CLEAR":
  513.                 {
  514.                     this.api.kernel.ChatManager.clear();
  515.                     this.api.kernel.ChatManager.refresh(true);
  516.                     break;
  517.                 }
  518.                 case "SPEAKINGITEM":
  519.                 {
  520.                     if (this.api.datacenter.Player.isAuthorized)
  521.                     {
  522.                         this.api.kernel.showMessage(undefined, "Count : " + this.api.kernel.SpeakingItemsManager.nextMsgDelay, "ERROR_CHAT");
  523.                         break;
  524.                     } // end if
  525.                 }
  526.                 default:
  527.                 {
  528.                     var _loc19 = this.api.lang.getEmoteID(_loc6.toLowerCase());
  529.                     if (_loc19 != undefined)
  530.                     {
  531.                         this.api.network.Emotes.useEmote(_loc19);
  532.                     }
  533.                     else
  534.                     {
  535.                         this.api.kernel.showMessage(undefined, this.api.lang.getText("UNKNOW_COMMAND", [_loc6]), "ERROR_CHAT");
  536.                     } // end else if
  537.                     break;
  538.                 }
  539.             } // End of switch
  540.         }      
  541.         else if (this.api.datacenter.Player.canChatToAll)
  542.         {
  543.             this.api.network.Chat.send(sCmd, "*", oParams);
  544.         } // end else if
  545.     };
  546.     _loc1.pushWhisper = function (sCmd)
  547.     {
  548.         var _loc3 = this._aWhisperHistory.slice(-1);
  549.         if (_loc3[0] != sCmd)
  550.         {
  551.             var _loc4 = this._aWhisperHistory.push(sCmd);
  552.             if (_loc4 > 50)
  553.             {
  554.                 this._aWhisperHistory.shift();
  555.             } // end if
  556.         } // end if
  557.         this.initializePointers();
  558.     };
  559.     _loc1.getWhisperHistoryUp = function ()
  560.     {
  561.         if (this._nWhisperHistoryPointer > 0)
  562.         {
  563.             --this._nWhisperHistoryPointer;
  564.         } // end if
  565.         var _loc2 = this._aWhisperHistory[this._nWhisperHistoryPointer];
  566.         return (_loc2 != undefined ? (_loc2) : (""));
  567.     };
  568.     _loc1.getWhisperHistoryDown = function ()
  569.     {
  570.         if (this._nWhisperHistoryPointer < this._aWhisperHistory.length)
  571.         {
  572.             ++this._nWhisperHistoryPointer;
  573.         } // end if
  574.         var _loc2 = this._aWhisperHistory[this._nWhisperHistoryPointer];
  575.         return (_loc2 != undefined ? (_loc2) : (""));
  576.     };
  577.     _loc1.initializePointers = function ()
  578.     {
  579.         super.initializePointers();
  580.         this._nWhisperHistoryPointer = this._aWhisperHistory.length;
  581.     };
  582.     _loc1.parseSpecialDatas = function (s)
  583.     {
  584.         ank.utils.Extensions.addExtensions();
  585.         var _loc3 = this.api.lang.getText("INLINE_VARIABLE_POSITION").split(",");
  586.         s = new ank.utils.ExtendedString(s).replace(_loc3, "[" + this.api.datacenter.Map.x + ", " + this.api.datacenter.Map.y + "]");
  587.         var _loc4 = this.api.lang.getText("INLINE_VARIABLE_AREA").split(",");
  588.         s = new ank.utils.ExtendedString(s).replace(_loc4, this.api.lang.getMapAreaText(this.api.datacenter.Map.area).n);
  589.         var _loc5 = this.api.lang.getText("INLINE_VARIABLE_SUBAREA").split(",");
  590.         s = new ank.utils.ExtendedString(s).replace(_loc5, this.api.lang.getMapSubAreaText(this.api.datacenter.Map.subarea).n);
  591.         var _loc6 = this.api.lang.getText("INLINE_VARIABLE_MYSELF").split(",");
  592.         s = new ank.utils.ExtendedString(s).replace(_loc6, this.api.datacenter.Player.Name);
  593.         var _loc7 = this.api.lang.getText("INLINE_VARIABLE_LEVEL").split(",");
  594.         s = new ank.utils.ExtendedString(s).replace(_loc7, String(this.api.datacenter.Player.Level));
  595.         var _loc8 = this.api.lang.getText("INLINE_VARIABLE_GUILD").split(",");
  596.         var _loc9 = this.api.datacenter.Player.guildInfos.name;
  597.         if (_loc9 == undefined)
  598.         {
  599.             _loc9 = this.api.lang.getText("INLINE_VARIABLE_GUILD_ERROR");
  600.         } // end if
  601.         s = new ank.utils.ExtendedString(s).replace(_loc8, _loc9);
  602.         var _loc10 = this.api.lang.getText("INLINE_VARIABLE_MAXLIFE").split(",");
  603.         s = new ank.utils.ExtendedString(s).replace(_loc10, String(this.api.datacenter.Player.LPmax));
  604.         var _loc11 = this.api.lang.getText("INLINE_VARIABLE_LIFE").split(",");
  605.         s = new ank.utils.ExtendedString(s).replace(_loc11, String(this.api.datacenter.Player.LP));
  606.         var _loc12 = this.api.lang.getText("INLINE_VARIABLE_LIFEPERCENT").split(",");
  607.         s = new ank.utils.ExtendedString(s).replace(_loc12, String(Math.round(this.api.datacenter.Player.LP / this.api.datacenter.Player.LPmax * 100)));
  608.         var _loc13 = this.api.lang.getText("INLINE_VARIABLE_EXPERIENCE").split(",");
  609.         s = new ank.utils.ExtendedString(s).replace(_loc13, String(Math.floor((this.api.datacenter.Player.XP - this.api.datacenter.Player.XPlow) / (this.api.datacenter.Player.XPhigh - this.api.datacenter.Player.XPlow) * 100)) + "%");
  610.         var _loc14 = this.api.lang.getText("INLINE_VARIABLE_STATS").split(",");
  611.         if (new ank.utils.ExtendedString(s).replace(_loc14, "X").length != s.length)
  612.         {
  613.             var _loc15 = this.api.lang.getText("INLINE_VARIABLE_STATS_RESULT", [String(this.api.datacenter.Player.Vitality) + (this.api.datacenter.Player.VitalityXtra != 0 ? (" (" + ((this.api.datacenter.Player.VitalityXtra > 0 ? ("+") : ("")) + String(this.api.datacenter.Player.VitalityXtra)) + ")") : ("")), String(this.api.datacenter.Player.Wisdom) + (this.api.datacenter.Player.WisdomXtra != 0 ? (" (" + ((this.api.datacenter.Player.WisdomXtra > 0 ? ("+") : ("")) + String(this.api.datacenter.Player.WisdomXtra)) + ")") : ("")), String(this.api.datacenter.Player.Force) + (this.api.datacenter.Player.ForceXtra != 0 ? (" (" + ((this.api.datacenter.Player.ForceXtra > 0 ? ("+") : ("")) + String(this.api.datacenter.Player.ForceXtra)) + ")") : ("")), String(this.api.datacenter.Player.Intelligence) + (this.api.datacenter.Player.IntelligenceXtra != 0 ? (" (" + ((this.api.datacenter.Player.IntelligenceXtra > 0 ? ("+") : ("")) + String(this.api.datacenter.Player.IntelligenceXtra)) + ")") : ("")), String(this.api.datace            nter.Player.Chance) + (this.api.datacenter.Player.ChanceXtra != 0 ? (" (" + ((this.api.datacenter.Player.ChanceXtra > 0 ? ("+") : ("")) + String(this.api.datacenter.Player.ChanceXtra)) + ")") : ("")), String(this.api.datacenter.Player.Agility) + (this.api.datacenter.Player.AgilityXtra != 0 ? (" (" + ((this.api.datacenter.Player.AgilityXtra > 0 ? ("+") : ("")) + String(this.api.datacenter.Player.AgilityXtra)) + ")") : ("")), String(this.api.datacenter.Player.Initiative), String(this.api.datacenter.Player.AP), String(this.api.datacenter.Player.MP)]);
  614.             s = new ank.utils.ExtendedString(s).replace(_loc14, _loc15);
  615.         } // end if
  616.         return (s);
  617.     };
  618.     ASSetPropFlags(_loc1, null, 1);
  619.  // end if
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement