Jump to content
  • 0

NPC Animations


Skorm

Question


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

I was wondering if I were to use a monster sprite as my npc is there any way I could access animations from the npc via a command. Like npcplayaction(1) something like that? It would be really REALLY cool if someone could do this for me.

As an extended example if I were to click a poring npc the npc would then play his death animation.

tytyty!!

Because I wantt his really bad! BUMP!

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  


prontera,155,161,5 script Sample -1,{

hideonnpc .npc_name$;

monster .npc_map$,.npc_x,.npc_y,.npc_name$,.mob_id,1,"";

sleep 500;

killmonsterall .npc_map$,"All";

sleep 1000;

hideoffnpc .npc_name$;

end;

OnInit:

set .mob_id,1002;

set .npc_name$,strnpcinfo(0);

getmapxy( .npc_map$,.npc_x,.npc_y,1 );

setnpcdisplay( .npc_name$,.mob_id );

end;

}

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

bump

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

prontera,155,161,5 script Sample -1,{hideonnpc .npc_name$;monster .npc_map$,.npc_x,.npc_y,.npc_name$,.mob_id,1,"";sleep 500;killmonsterall .npc_map$,"All";sleep 1000;hideoffnpc .npc_name$;end;OnInit:set .mob_id,1002;set .npc_name$,strnpcinfo(0);getmapxy( .npc_map$,.npc_x,.npc_y,1 );setnpcdisplay( .npc_name$,.mob_id );end;}
 

I was aiming for a clickable npc without the monster mouse effect with a fluid transition. I was able to do that using this method though. Thanks.

 

prontera,155,161,5	script	Sample	-1,{
	disablenpc .npc_name$;
	hideonnpc .npc_name$;
	monster(.npc_map$,.npc_x,.npc_y,.npc_name$,1002,1,"");
	killmonsterall .npc_map$,"All";
	sleep 2000;
	enablenpc .npc_name$;
	hideoffnpc .npc_name$;
	end;
 
OnInit:
	set .npc_name$,strnpcinfo(0);
	getmapxy( .npc_map$,.npc_x,.npc_y,1 );
	setnpcdisplay( .npc_name$,909 );
	end;
}
Edited by Skorm
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
Answer this question...

×   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...