From 6f88f2409f1853ae205573257865462540f935fc Mon Sep 17 00:00:00 2001 From: L0ne_W0lf Date: Wed, 31 Mar 2010 18:57:22 +0000 Subject: 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 --- doc/sample/getmonsterinfo.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 doc/sample/getmonsterinfo.txt (limited to 'doc/sample/getmonsterinfo.txt') 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 -- cgit v1.2.3-70-g09d2