Jump to content
  • 0

Invulnerable MOB to magic/normal attack.


Cephaler

Question


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  132
  • Reputation:   2
  • Joined:  02/02/12
  • Last Seen:  

Hey guys,

I'd like to add a monster to MAP however, I just need him to be walking around, not attacking anyone nor possible to be attacked either. ( Similar to when a pet runs from the master because it wasn't feeded/wasn't loyal, it just walks around without being touched/attacking )

How can I possibly do it?

Thanks for the amazing work/support!

Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

Current SVN doesn't have monster mode like this, you will need to post in src request. But I'd just make it millions of HP and movable plant mode. So no one can kills it :P

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  132
  • Reputation:   2
  • Joined:  02/02/12
  • Last Seen:  

That's such a shame, cause when the pets go loose they actually have this mode. I will post this in SRC request, or a mod can move it for me?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

You can also use npc script with mob sprite use rand() with npcwalkto <x>,<y>;

P/S: I'm also interest in the src mod so players COULDN'T kill my Wild Rose :P

Edited by darristan
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  132
  • Reputation:   2
  • Joined:  02/02/12
  • Last Seen:  

You can also use npc script with mob sprite use rand() with npcwalkto <x>,<y>;

P/S: I'm also interest in the src mod so players COULDN'T kill my Wild Rose :P

Darristan, what do you mean the npc script with mob sprite? is it possible to make the npc ' walk ' as well? if so, would you give me one example?

Let's suppose I want the npc to walk to 122,108 to 122,122 and the npc ID is 2296, how would it be?

Edited by Cephaler
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

Like normal NPC header, 1002 is ID of Poring. This will make a Poring move every 5 seconds in area of rand(140,160);

prontera,150,150,1	 script	 Happy Poring	 1002,{
end;

OnInit:
initnpctimer;
end;

OnTimer5000:
set .@x, rand (140,160);
set .@y, rand (140,160);
npcwalkto .@x,.@y;
stopnpctimer;
initnpctimer;
end;
}

Edited by darristan
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  132
  • Reputation:   2
  • Joined:  02/02/12
  • Last Seen:  

Like normal NPC header, 1002 is ID of Poring. This will make a Poring move every 5 seconds in area of rand(140,160);

prontera,150,150,1	 script	 Happy Poring	 1002,{
end;

OnInit:
initnpctimer;
end;

OnTimer5000:
set .@x, rand (140,160);
set .@y, rand (140,160);
npcwalkto .@x,.@y;
stopnpctimer;
initnpctimer;
end;
}

It works great! Is there a way to make it so it will move in pre-stablished coordinates? for example, it will always move from 140,160 to 145,62

Maybe if I remove the rand?

Edited by Cephaler
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

Glad I helped you. The script below will only move to the 2 coordinates you stated.

prontera,150,150,1  script  Neutral Deviruchi     1109,{
end;

OnInit:
initnpctimer;
end;

OnTimer5000:
//set .@x, rand (140,160);
//set .@y, rand (140,160);
npcwalkto 140,160;
end;

OnTimer10000:
npcwalkto 145,62;
stopnpctimer;
initnpctimer;
end;
}

Edited by darristan
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  132
  • Reputation:   2
  • Joined:  02/02/12
  • Last Seen:  

WOW! it works like a charm, thanks so much! Always helping me :)!

Darristan for president! haha

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...