getmonsterinfo.txt 873 B

1234567891011121314151617181920212223
  1. //===== rAthena Script =======================================
  2. //= Sample: Getmonsterinfo
  3. //===== By: ==================================================
  4. //= Lupus
  5. //===== Current Version: =====================================
  6. //= 20121003
  7. //===== Description: =========================================
  8. //= Demonstrates the 'getmonsterinfo' command.
  9. //============================================================
  10. prontera,156,179,6 script test_getmonsterinfo 117,{
  11. mes "Please enter a monster ID.";
  12. input .@value;
  13. if(getmonsterinfo(.@value,MOB_LV)<0 || getmonsterinfo(.@value,MOB_NAME)=="Dummy") {
  14. mes "Invalid monster ID.";
  15. close;
  16. }
  17. mes "Monster ID: "+.@value+" '"+getmonsterinfo(.@value,MOB_NAME)+"'";
  18. mes "Current Monster info:";
  19. for(set .@id,0; .@id<23; set .@id,.@id+1)
  20. mes " getmonsterinfo("+.@value+","+@id+") = "+getmonsterinfo(.@value,@id);
  21. close;
  22. }