From a6867e5a3fbf02bc42ec1ccc8bdef6575508acda Mon Sep 17 00:00:00 2001 From: Lupus Date: Sat, 18 Mar 2006 14:41:02 +0000 Subject: added script function 'getmonsterinfo' git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5659 54d463be-8e91-2dee-dedb-b68131a5f0ec --- npc/sample/getmonsterinfo.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 npc/sample/getmonsterinfo.txt (limited to 'npc/sample') diff --git a/npc/sample/getmonsterinfo.txt b/npc/sample/getmonsterinfo.txt new file mode 100644 index 000000000..a935771c7 --- /dev/null +++ b/npc/sample/getmonsterinfo.txt @@ -0,0 +1,18 @@ +//by Lupus + +prontera.gat,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-60-g2f50