getmonsterinfo.txt 511 B

123456789101112131415161718
  1. //by Lupus
  2. prontera.gat,156,179,6 script test_getmonsterinfo 117,{
  3. mes "Please enter a monster ID (1001 ... 2000)";
  4. input @value;
  5. if(getmonsterinfo(@value,MOB_LV)<0 || getmonsterinfo(@value,MOB_NAME)=="Dummy") {
  6. mes "Wrong MOB ID.";
  7. close;
  8. }
  9. mes "Monster ID: "+@value+" '"+getmonsterinfo(@value,MOB_NAME)+"'";
  10. mes "Current Monster info:";
  11. set @id,0;
  12. L_LOOP:
  13. mes " getmonsterinfo("+@value+","+@id+") = "+getmonsterinfo(@value,@id);
  14. set @id,@id+1;
  15. if(@id<22) goto L_LOOP;
  16. close;
  17. }