kevo89 Posted February 29, 2020 Posted February 29, 2020 Hola que tal buen día me gustaría saber si me pueden apoyar con un script ejemplo de un poring que se mueva en ciertas cardenas de prontera pero que nadie lo pueda matar o apuntar y que se esté paseando en un rango en específico como adorno, como si fuera npc pero con Sprite de mob sin que lo puedan matar etc Quote
Serken Posted February 29, 2020 Posted February 29, 2020 Simplemente ponle el sprite de Poring en vez de algun NPC, luego pon las coordenadas por donde quieras que se mueva pero sin que ejecute ningun script al clicarlo y no saldrá nada cuando clikes pero irá moviendose Quote
Angeluz Posted March 22, 2020 Posted March 22, 2020 Intenta con algo así - script poring_walk -1,{ end; OnInit: npcspeed 100; initnpctimer; end; OnTimer4000: getmapxy .@map$, .@x, .@y, BL_NPC; set .@curX, callfunc("rent_aliceXY",.@x,46,61); set .@curY, callfunc("rent_aliceXY",.@y,54,73); npcwalkto .@curX, .@curY; initnpctimer; end; } prontera,153,155,3 duplicate(poring_walk) Poring#gm 1002 function script rent_aliceXY { set .@CP, getarg(0); // Present position XoY set .@DST, rand(1,5); // Distance to cross if (rand(2)) // Direccion a tomar (izq der arr abj) set .@CP, .@CP + .@DST; else set .@CP, .@CP - .@DST; if (.@CP < getarg(1)) set .@CP, .@CP + .@DST; // If the new point is smaller, thats the minimum if (.@CP > getarg(2)) set .@CP, .@CP - .@DST; // If the new point is greater, thats the maximum return .@CP; } 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.