Jump to content
  • 0

cell_basilica not working


nobukadnezar

Question


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  163
  • Reputation:   7
  • Joined:  01/07/12
  • Last Seen:  

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;

}

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   1
  • Joined:  06/22/12
  • Last Seen:  

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 by Yanji
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  163
  • Reputation:   7
  • Joined:  01/07/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   1
  • Joined:  06/22/12
  • Last Seen:  

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 by Yanji
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...