nobukadnezar Posted June 23, 2012 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 163 Reputation: 7 Joined: 01/07/12 Last Seen: March 7, 2017 Share Posted June 23, 2012 i use this code for sample, but i can still hit the mobs etc. anyone know why? caspen,1,2,3 script Supporter1#supp1-1 844,{ OnInit: setcell "caspen",0,0,300,300,cell_basilica,1; end; } Quote Link to comment Share on other sites More sharing options...
Yanji Posted June 23, 2012 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 23 Reputation: 1 Joined: 06/22/12 Last Seen: October 5, 2012 Share Posted June 23, 2012 (edited) For the OnInit event command, you must have the NPC on your screen, otherwise it does nothing. Try this: caspen,0,0,0<TAB>script<TAB>Supporter1#supp1-1<TAB>-1,{ OnInit: setcell "caspen",0,0,300,300,cell_basilica,1; end; } PS: I'm not sure if 'cell_basilica' even works for monsters... Edited June 23, 2012 by Yanji Quote Link to comment Share on other sites More sharing options...
nobukadnezar Posted June 23, 2012 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 163 Reputation: 7 Joined: 01/07/12 Last Seen: March 7, 2017 Author Share Posted June 23, 2012 At first time i am thinking for using basilica to make monster invulnerable, but i did more search and got the answer by using npc skill. Thanks for reply Quote Link to comment Share on other sites More sharing options...
Yanji Posted June 23, 2012 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 23 Reputation: 1 Joined: 06/22/12 Last Seen: October 5, 2012 Share Posted June 23, 2012 (edited) By the way, if you make the NPC's coordinates 0, make the direction they face also 0 and the sprite ID 0, leaving only the map name as their location. Then, it will trigger the OnInit event command when you get into the map, sort of like OnPCLoadMapEvent. Edited June 23, 2012 by Yanji Quote Link to comment Share on other sites More sharing options...
Question
nobukadnezar
i use this code for sample, but i can still hit the mobs etc. anyone know why?
Link 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.