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