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

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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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