luizragna
New member
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)
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)