joelolopez Posted December 14, 2013 Group: Members Topic Count: 154 Topics Per Day: 0.03 Content Count: 493 Reputation: 46 Joined: 01/24/12 Last Seen: August 25, 2022 Share Posted December 14, 2013 (edited) i nid some script that will detect a near by monsters like for example when theres a poring monster in front of you displays Warning! there is a Poring monster ahead! something like that like this X= area O=poring U=you X X OX X X X X X X X X U X X Edited December 14, 2013 by joelolopez Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted December 18, 2013 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted December 18, 2013 (edited) mob_controller_r20131218.patch - script poring_detect -1,{ attachrid .ai_action[AI_ACTION_TAR]; getmobdata .ai_action[AI_ACTION_SRC], .@mob; getmapxy .@map$, .@x, .@y, 0; if ( distance( .@x, .@y, .@mob[6], .@mob[7] ) <= 3 ) { if ( !@display_msg ) { message strcharinfo(0), "Warning! there is a Poring monster ahead! something like that"; @display_msg = 1; } } end; OnInit: .@id = mobspawn( "Poring", 1002, "prontera", 155,180 ); mobattach .@id, strnpcinfo(0); setmobdata .@id, 25, AI_ACTION_TYPE_DETECT; setmobdata .@id, 9, 1 | 4 | 64 | 128 | 256 ; end; }offtopic,I just run a forum search "mob controller" all result direct to my post <.< it seems nobody else here has learn mob controller yet .... no doubt it does have a learning curve ... edit : forgot to add distance check Edited December 18, 2013 by AnnieRuru Quote Link to comment Share on other sites More sharing options...
joelolopez Posted December 18, 2013 Group: Members Topic Count: 154 Topics Per Day: 0.03 Content Count: 493 Reputation: 46 Joined: 01/24/12 Last Seen: August 25, 2022 Author Share Posted December 18, 2013 ahm so it requires source modification... no other way to have this w/o source mod? Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted December 18, 2013 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted December 18, 2013 nope, rathena doesn't have this kind of feature, that's why some source modification are require Quote Link to comment Share on other sites More sharing options...
Question
joelolopez
i nid some script that will detect a near by monsters like for example
when theres a poring monster in front of you
displays Warning! there is a Poring monster ahead! something like that
like this
X= area
O=poring
U=you
X X OX X
X X X X X
X X U X X
Edited by joelolopezLink to comment
Share on other sites
3 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.