Agysx

Untitled

Dec 1st, 2020
700
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Zmiana grafiki itemka - Marger version
  2. (function(root,data,undefined){
  3.     'use strict';
  4.     var oldLoad = root.loadImg;
  5.     root.loadImg = function(a,b,c){
  6.         var oldPath = root.g.opath;
  7.         if(root.g.item[b] && typeof data[root.g.item[b].name] !== 'undefined'){
  8.             a = data[root.g.item[b].name];
  9.             root.g.opath = '';
  10.         }
  11.         var ret = oldLoad(a,b,c);
  12.         root.g.opath = oldPath;
  13.         return ret;
  14.     };
  15. })(window,{
  16.     'Kusza łowcy skarbów': 'http://emargo.pl/margonem/obrazki/itemy/luk/kusza56.gif'
  17. });
RAW Paste Data