diff options
author | L0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-03-31 18:57:22 +0000 |
---|---|---|
committer | L0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-03-31 18:57:22 +0000 |
commit | 6f88f2409f1853ae205573257865462540f935fc (patch) | |
tree | 30598fa37157d159bce0f8712a8b2b38047e2eab /doc/sample/getmonsterinfo.txt | |
parent | d35717644b58c55b50098b3b0a08cf8002d39cca (diff) | |
download | hercules-6f88f2409f1853ae205573257865462540f935fc.tar.gz hercules-6f88f2409f1853ae205573257865462540f935fc.tar.bz2 hercules-6f88f2409f1853ae205573257865462540f935fc.tar.xz hercules-6f88f2409f1853ae205573257865462540f935fc.zip |
Moved /npc/sample/ to /doc/sample. These are examples, not actual npcs.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14277 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'doc/sample/getmonsterinfo.txt')
-rw-r--r-- | doc/sample/getmonsterinfo.txt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/sample/getmonsterinfo.txt b/doc/sample/getmonsterinfo.txt new file mode 100644 index 000000000..fd30c66df --- /dev/null +++ b/doc/sample/getmonsterinfo.txt @@ -0,0 +1,18 @@ +//by Lupus + +prontera,156,179,6 script test_getmonsterinfo 117,{ + mes "Please enter a monster ID (1001 ... 2000)"; + input @value; + if(getmonsterinfo(@value,MOB_LV)<0 || getmonsterinfo(@value,MOB_NAME)=="Dummy") { + mes "Wrong MOB ID."; + close; + } + mes "Monster ID: "+@value+" '"+getmonsterinfo(@value,MOB_NAME)+"'"; + mes "Current Monster info:"; + set @id,0; +L_LOOP: + mes " getmonsterinfo("+@value+","+@id+") = "+getmonsterinfo(@value,@id); + set @id,@id+1; + if(@id<22) goto L_LOOP; + close; +}
\ No newline at end of file |