Jump to content

Petición de script de Mobs que se muevan


kevo89

Recommended Posts


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  24
  • Reputation:   1
  • Joined:  06/27/14
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  40
  • Reputation:   3
  • Joined:  10/06/13
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  24
  • Reputation:   1
  • Joined:  06/27/14
  • Last Seen:  

gracias algun ejemplo?

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  100
  • Reputation:   16
  • Joined:  07/28/12
  • Last Seen:  

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;
}

 

  • Love 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  24
  • Reputation:   1
  • Joined:  06/27/14
  • Last Seen:  

muchas gracias lo tomare en cuenta

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...