Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function checkItems() {
- if (map.id === 1) {
- for (const [itemId, {own, name}] of Object.entries(g.item)) {
- if (name.includes("Zwój teleportacji do Margorii") && hero.id === own) {
- _g(`moveitem&st=1&id=${itemId}`);
- }
- }
- }
- }
- function startInterval() {
- const interval = Math.floor(Math.random() * 1000) + 1000; // Losowa wartość między 1000 a 2000 ms
- setTimeout(() => {
- checkItems();
- startInterval();
- }, interval);
- }
- startInterval();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement