getmonsterinfo.txt 886 B

1234567891011121314151617181920212223
  1. //===== rAthena Script =======================================
  2. //= Sample: Getmonsterinfo
  3. //===== By: ==================================================
  4. //= Lupus
  5. //===== Last Updated: ========================================
  6. //= 20140208
  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) == "null") {
  14. mes "Invalid monster ID.";
  15. close;
  16. }
  17. mes "Monster ID: "+.@value+" '"+getmonsterinfo(.@value,MOB_NAME)+"'";
  18. mes "Current Monster info:";
  19. for (.@i = MOB_NAME; .@i <= MOB_MVPEXP; .@i++)
  20. mes " getmonsterinfo("+.@value+","+.@i+") = "+getmonsterinfo(.@value,.@i);
  21. close;
  22. }