Jump to content
  • 0
FabulousFred

NPC disguised as mob disguised as player (mob_avail.txt): Display & interaction issues arise.

Question

Greetings,

 

I started writing a script just yesterday, and apparently the documentation available did not prove sufficient for me to solve everything to my satisfaction.

As I haven't written anything for Hercules before, I am still very much in need of experience. But let me begin at the start...

 

Meet Malyguard:

 

7Nj6COv.png

 

Malyguard is my testing NPC. As you can see, he spends his time guarding the empty cities of Prontera.

However, he isn't actually an NPC like any other! Because I followed the instructions given here, he is apparently rather a mob disguised as a player, which is used as an NPC sprite in a script.

 

Naturally, I wanted nothing more than to use the very sprite displayed above to be used in a regular NPC, blue text and all. Instead, he usually looks like this:

 

wZIBDEn.png

 

That means he can be right-clicked like any actual player (the menu doesn't work) but not directly clicked to start a conversation like all the other, blue-fonted NPCs using a real NPC sprite.

No good! I can do that, too, but only if I use any other sprite that is not created by re-skinning a mob and disguising it as a player.

 

Since the NPC is supposed to look like an actual player, there have been some minor imperfections in my implementation to say the least. What I did was rename the sprite NPC to " " (...yeah) and put an invisible HIDDEN_NPC above him, which at least makes "Malyguard's" boots and lower legs click-able like the entire NPC normally would.

 

Now, that would be a good start, but the illusion is quickly dispelled by right-clicking anywhere in the general vicinity:

 

SNx35ps.png

 

I have a few ideas how I might have to change the client-side by adding a new, custom sprite and importing that to the server's database, but I'd rather avoid all that extra hassle.

 

So before I do that, or add lots of small, invisible NPCs around him, I thought I'd ask here and see what the more experienced folk might suggest.

 

Cheers,

Fred

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.