Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function(_n, d) {
- let audio = new Audio();
- //audio.src = "http://soundbible.com/mp3/Buzzer-SoundBible.com-188422102.mp3"; //S
- audio.src = "http://cronus.margonem.com/sounds/your_turn.mp3";
- if(!localStorage.getItem("wrógcheck")) localStorage.setItem("wrógcheck", "Jeszcze nikt cię nie odwiedził");
- log(localStorage.getItem("wrógcheck"));
- newOther = e => {
- _n(e);
- for (var i in e) {
- if (e[i].lvl - hero.lvl > 8 && !g.battle && !g.party && map.pvp == 2 && e[i].relation != "cl" && e[i].relation != "cl-fr" && e[i].relation != "fr") {
- var content = `Przylazł do ciebie: ${e[i].nick} ${e[i].lvl}${e[i].prof} Godzina: ${ut_time(unix_time())}`;
- localStorage.setItem("wrógcheck", content);
- log(localStorage.getItem("wrógcheck"));
- message(`${e[i].nick} ${e[i].lvl}${e[i].prof}`);
- audio.play();
- break;
- }
- }
- }
- })(newOther);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement