summaryrefslogtreecommitdiff
path: root/npc/sample/getmonsterinfo.txt
diff options
context:
space:
mode:
authorLupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-18 14:41:02 +0000
committerLupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-18 14:41:02 +0000
commita6867e5a3fbf02bc42ec1ccc8bdef6575508acda (patch)
treedc3f0bdcf340fd5a4eaf886a4c2e0803c51b9961 /npc/sample/getmonsterinfo.txt
parent95454f80676a0619583a91e7194007fd433a755f (diff)
downloadhercules-a6867e5a3fbf02bc42ec1ccc8bdef6575508acda.tar.gz
hercules-a6867e5a3fbf02bc42ec1ccc8bdef6575508acda.tar.bz2
hercules-a6867e5a3fbf02bc42ec1ccc8bdef6575508acda.tar.xz
hercules-a6867e5a3fbf02bc42ec1ccc8bdef6575508acda.zip
added script function 'getmonsterinfo'
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5659 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc/sample/getmonsterinfo.txt')
-rw-r--r--npc/sample/getmonsterinfo.txt18
1 files changed, 18 insertions, 0 deletions
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