Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _loc1.onCellObject = function (sExtraData)
- {
- var _loc3 = sExtraData.charAt(0) == "+";
- var _loc4 = sExtraData.substr(1).split("|");
- var _loc5 = 0;
- while (++_loc5, _loc5 < _loc4.length)
- {
- var _loc6 = _loc4[_loc5].split(";");
- var _loc7 = Number(_loc6[0]);
- var _loc8 = _global.parseInt(_loc6[1]);
- if (_loc3)
- {
- var _loc9 = new dofus.datacenter.Item(0, _loc8);
- var _loc10 = Number(_loc6[2]);
- switch (_loc10)
- {
- case 0:
- {
- this.api.gfx.updateCellObjectExternalWithExternalClip(_loc7, _loc9.iconFile, 1, true, true, _loc9);
- break;
- }
- case 1:
- {
- if (this.api.gfx.mapHandler.getCellData(_loc7).layerObjectExternalData.unicID != _loc8)
- {
- this.api.gfx.updateCellObjectExternalWithExternalClip(_loc7, _loc9.iconFile, 1, true, false, _loc9);
- }
- else
- {
- _loc9 = this.api.gfx.mapHandler.getCellData(_loc7).layerObjectExternalData;
- } // end else if
- _loc9.durability = Number(_loc6[3]);
- _loc9.durabilityMax = Number(_loc6[4]);
- break;
- }
- } // End of switch
- continue;
- } // end if
- this.api.gfx.initializeCell(_loc7, 1);
- } // end while
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement