Advertisement
Nolifeq

Untitled

Oct 3rd, 2024 (edited)
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. function checkItems() {
  2. if (map.id === 1) {
  3. for (const [itemId, {own, name}] of Object.entries(g.item)) {
  4. if (name.includes("Zwój teleportacji do Margorii") && hero.id === own) {
  5. _g(`moveitem&st=1&id=${itemId}`);
  6. }
  7. }
  8. }
  9. }
  10.  
  11. function startInterval() {
  12. const interval = Math.floor(Math.random() * 1000) + 1000; // Losowa wartość między 1000 a 2000 ms
  13. setTimeout(() => {
  14. checkItems();
  15. startInterval();
  16. }, interval);
  17. }
  18.  
  19. startInterval();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement