Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     _loc1.overMap = function (oEvent)
  2.     {
  3.         if (this.dungeon == undefined)
  4.         {
  5.             var _loc3 = this.api.kernel.AreasManager.getAreaIDFromCoordinates(oEvent.coordinates.x, oEvent.coordinates.y, this._dmMap.superarea);
  6.             var _loc4 = this.api.kernel.AreasManager.getSubAreaIDFromCoordinates(oEvent.coordinates.x, oEvent.coordinates.y, this._dmMap.superarea);
  7.             if (_loc4 != undefined)
  8.             {
  9.                 var _loc5 = this.api.lang.getMapSubAreaText(_loc4).n;
  10.                 var _loc6 = (dofus.datacenter.Subarea)(this.api.datacenter.Subareas.getItemAt(_loc4));
  11.                 if (_loc6 != undefined)
  12.                 {
  13.                     var _loc7 = _loc6.color;
  14.                     var _loc8 = this.api.lang.getMapAreaText(_loc3).n + (_loc5.substr(0, 2) == "//" ? (" - ") : (" (" + _loc5 + ") - ")) + _loc6.alignment.name;
  15.                 }
  16.                 else
  17.                 {
  18.                     _loc7 = dofus.Constants.AREA_NO_ALIGNMENT_COLOR;
  19.                     _loc8 = this.api.lang.getMapAreaText(_loc3).n + (_loc5.substr(0, 2) == "//" ? ("") : (" (" + _loc5 + ")"));
  20.                 } // end else if
  21.                 if (this._vsZoom.value != 2)
  22.                 {
  23.                     this._mnMap.addSubareaClip(_loc4, _loc7 != -1 ? (_loc7) : (dofus.Constants.AREA_NO_ALIGNMENT_COLOR), 20);
  24.                 } // end if
  25.                 this._lblAreaName.text = _loc8;
  26.                 this._lblArea._visible = true;
  27.             }
  28.             else
  29.             {
  30.                 this.outMap();
  31.             } // end if
  32.         } // end else if
  33.     };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement