kevo89 Posted February 29, 2020 Share 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 Link to comment Share on other sites More sharing options...
Serken Posted February 29, 2020 Share 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 Link to comment Share on other sites More sharing options...
kevo89 Posted March 1, 2020 Author Share Posted March 1, 2020 gracias algun ejemplo? Quote Link to comment Share on other sites More sharing options...
Angeluz Posted March 22, 2020 Share Posted March 22, 2020 Intenta con algo así - script poring_walk -1,{ end; OnInit: npcspeed 100; initnpctimer; end; OnTimer4000: getmapxy [email protected]$, [email protected], [email protected], BL_NPC; set [email protected], callfunc("rent_aliceXY",[email protected],46,61); set [email protected], callfunc("rent_aliceXY",[email protected],54,73); npcwalkto [email protected], [email protected]; initnpctimer; end; } prontera,153,155,3 duplicate(poring_walk) Poring#gm 1002 function script rent_aliceXY { set [email protected], getarg(0); // Present position XoY set [email protected], rand(1,5); // Distance to cross if (rand(2)) // Direccion a tomar (izq der arr abj) set [email protected], [email protected] + [email protected]; else set [email protected], [email protected] - [email protected]; if ([email protected] < getarg(1)) set [email protected], [email protected] + [email protected]; // If the new point is smaller, thats the minimum if ([email protected] > getarg(2)) set [email protected], [email protected] - [email protected]; // If the new point is greater, thats the maximum return [email protected]; } 1 Quote Link to comment Share on other sites More sharing options...
kevo89 Posted March 25, 2020 Author Share Posted March 25, 2020 muchas gracias lo tomare en cuenta Quote Link to comment Share on other sites More sharing options...