nobukadnezar Posted June 23, 2012 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
Yanji Posted June 23, 2012 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
nobukadnezar Posted June 23, 2012 Author 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
Yanji Posted June 23, 2012 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
Question
nobukadnezar
i use this code for sample, but i can still hit the mobs etc. anyone know why?
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.