Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('<div id="cfg_options"><div id="infoAtak" style="background-position: '+((getCookie("_IA")=="true")?'0px -22px':'0px 0px')+'; width: 18px; position: absolute; left: 122px; top: 230px; padding: 4px 4px 0px;"></div></div>').appendTo("#panel").click(function(){
- var d=new Date();d.setTime(d.getTime()+3600000*24*30);
- if (getCookie("_IA")=="true"){
- setCookie("_IA",false,d);
- $("#infoAtak").css("background-position","0px 0px");
- }
- else{
- setCookie("_IA",true,d);
- $("#infoAtak").css("background-position","0px -22px");
- }
- });
- oldFight=fight;
- fight=function(h){
- if (isset(h.init)) {
- var a = []
- , p = [];
- var wyslac=true;
- for (var c in h.w) {
- if (h.w[c].gender=="x")
- wyslac=false;
- if (h.w[c].team != 2) {
- a.push(h.w[c].name + "(" + h.w[c].lvl + h.w[c].prof + ")")
- } else {
- p.push(h.w[c].name + "(" + h.w[c].lvl + h.w[c].prof + ")")
- }
- }if (wyslac){
- if (hero.hp>1){
- if (getCookie("_IA")=="true"){
- _g('chat&c='+esc("123)"));
- }
- }
- }
- }
- oldFight(h);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement