I want to mpforce follow then mpforce group a mobile

Posted by Kingsmill on Mon 17 Jul 2006 01:16 AM — 16 posts, 53,877 views.

USA #0
I have the following code on a scroll when I drop it:

look $n
mpmload 9918
mpforce imp follow $n
mpforce $n group imp
mpforce imp mppurge scroll

And when I drop it it tells me "The imp is not following you" even though follow came before group...
Also I have a program that changes the imp into a gargoyle if you make sure it survives for five minutes this program is on the imp itself:

look $t
mpmload 9919
mpforce 9919 follow $t if ispc
mpforce $t group gargoyle
mppurge 9918

Any ideas ?
Thank you in advance.
USA #1
I don't think mobs can group.
USA #2
Then how do I summon a "pet" or a "guard" or "what-ever-their-called" ?
Thank you for answering me.
USA #3
Summon? What do you mean? What about using mptransfer?
USA #4
I want a sort of npc group member, or a summoned pet to guard me...
I guess it's not possible...
USA #5
Pets are implemented differently, by being "charmed" by their master rather than following the leader. I'm not sure if this can be done outside petshops. You could try looking at another spell that does this, if there is one. Quite possibly you will have to delve into the code.

By the way, these aren't really area editor questions. 'Smaug' > 'Running the Server' would be more appropriate, probably. The Area Editor section refers specifically to issues/problems/discussion of Nick's program, not building in general.

Maybe a new section for Smaug, 'Building', might be warranted. What do you think, Nick? Not sure how different it is from 'Running the Server'.
USA #6
How does one 'charm' an npc pet ?
Does one use a charm command ?
Or does one cast charm person ?
USA #7
Nvm
I figured that out.
Still a bit puzzled on where to start messing with code to make it work, I know some c++,
but I don't know whether to mess with area editor code, smaug skills code, smaug commands, smaug code itself, or what....
USA #8
You would be editing the SMAUG code. I'm not sure what distinction you're making between SMAUG skills code, SMAUG command code, and SMAUG code itself.
USA #9
I am reffering to the skills.dat commands.dat, and other smaug code as a seperate entity.
USA #10
Oh. Those aren't really what we call the "code" files, those are just data. I was referring to the C code in the src/ directory.
USA #11
Ok I'm still not sure where to edit the code with the charmed part in it ...
Which .c file would it be in ?
Or are there several files I would need to edit, if so please list them.
USA #12
You could try searching the code for pets (e.g. 'pet') or stables. I'm not sure where it is exactly (don't have the code here to look at); but searching for this kind of thing is an important skill to learn.

But before you start fiddling with the code, you should know how compiling works, what source files are, what it means to compile source into object files, etc. Nick has several guides here; look at the forum section headers for links. I'm not trying to sound dismissive at all; you just need to take things easy and not get started on too much too soon otherwise you might get frustrated and really not enjoy the experience.

I would advise, for instance, that you be quite familiar with running a server without touching the code before you start editing the code. It would be very hard to edit the code without knowing how all the pieces fit together from the user's perspective -- and then of course you have to learn how it all fits together from the coder's perspective. :-)
USA #13
If you think I am clueless about what to do, you are correct however, once I find the piece(s) of code I need to edit I will then be able to form a plan, it may seem crazy but I rely heavily on the right side of my brain. Which means I am extreamly visual and have to see it before I can do anything. Also if your wondering why I post so many different projects at once, it's not because I have no commitment to my project, rather it is that I cannot handle sitting around on one project the whole time, as I will just get angry, tired, and frustrated. Switching keeps me going and refreshes me so I can be the most efficient I can be.
USA #14
I'm not a complete moron, I just think very different.
I will go through the doc's as you advised,
and hopefully in a little bit, start on the code.
Thanks for being patient despite my inablility to think quite like everyone else does.
USA #15
Oh yeah, and in the future I will post on the smaug part of the forum, it's just most of our conversation is here.
Sorry for the inconvienence. And for horrid spelling.