Jump to content
  • 0
Sign in to follow this  
luizragna

'OnNPCKillEvent' does not work with 'setunidata'

Question

Hello guys. The command setunitdata not worked with setunitdata how show bellow example:

1st Script:

	set .@amount,1;
		for (.@i = 0; .@i < .@amount; .@i++) {
	.@mobGID = monster ("pay_dun04",122,123,"[DG] Planta Vermelha",1078,1,strnpcinfo(0)+"::OnBonus"); //planta vermelha
		setunitdata .@mobGID,UDT_LEVEL,7;
		setunitdata .@mobGID,UDT_MAXHP,10;
		setunitdata .@mobGID,UDT_HP,2;
		}
	end;

2nd script:

OnNPCKillEvent:

	mes "Do you killed the monster ID: "+killedrid+" ";
	close;

The variable killedrid show the last mob that i killed, but if he created with .@mobGID do not add the mobid to variable when i kill.

(Sorry for my bad English)

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.