Hello rathena people ! I'm simply trying to make two monsters fight amongst themselves with the following script :
prontera,155,175,4 script test 46,{
mes "[test]";
mes "Je vais invoquer deux monstres et tenter de les faire combattre ."; //I'm gonna spawn 2 mobs and make them fight each other
if (select("ok:non") == 2) end;
@gid1 = monster ("prontera",153,170,"poring",1002,1);
@gid2 = monster ("prontera",155,170,"drops",1113,1);
unitattack @gid1 , @gid2 , 1;
unitattack @gid2 , @gid1 , 1;
}
When the monsters spawn, they run into each other. When they're on the same square they stop and turn into "I don't give a damn" mode, doing what they want again.
I already followed this guide to have the GID based functions working and so the unitattack command returns 1(success).
I also downloaded this patch as it seemed to be able to solve my problem but when I compiled my server I got errors (I'm running on rA 17706).
Question
Kurofly
Hello rathena people !
I'm simply trying to make two monsters fight amongst themselves with the following script :
When the monsters spawn, they run into each other. When they're on the same square they stop and turn into "I don't give a damn" mode, doing what they want again.
I already followed this guide to have the GID based functions working and so the unitattack command returns 1(success).
I also downloaded this patch as it seemed to be able to solve my problem but when I compiled my server I got errors (I'm running on rA 17706).
If anyone could help me, I'd really appreciate it
Edited by Kurofly4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.