Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ SMAUG coding
➜ I want to mpforce follow then mpforce group a mobile
|
I want to mpforce follow then mpforce group a mobile
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1 2
| Posted by
| Kingsmill
USA (78 posts) Bio
|
| Date
| Mon 17 Jul 2006 01:16 AM (UTC) |
| Message
| 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. |
T.A.N.S.T.A.F.L.
There Aint No Such Thing As Free Lunch,
From the moon is a harsh mistress. | | Top |
|
| Posted by
| Zeno
USA (2,871 posts) Bio
|
| Date
| Reply #1 on Mon 17 Jul 2006 01:29 AM (UTC) |
| Message
| | I don't think mobs can group. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | | Top |
|
| Posted by
| Kingsmill
USA (78 posts) Bio
|
| Date
| Reply #2 on Mon 17 Jul 2006 01:30 AM (UTC) |
| Message
| Then how do I summon a "pet" or a "guard" or "what-ever-their-called" ?
Thank you for answering me.
|
T.A.N.S.T.A.F.L.
There Aint No Such Thing As Free Lunch,
From the moon is a harsh mistress. | | Top |
|
| Posted by
| Zeno
USA (2,871 posts) Bio
|
| Date
| Reply #3 on Mon 17 Jul 2006 02:52 AM (UTC) |
| Message
| | Summon? What do you mean? What about using mptransfer? |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | | Top |
|
| Posted by
| Kingsmill
USA (78 posts) Bio
|
| Date
| Reply #4 on Mon 17 Jul 2006 03:37 PM (UTC) |
| Message
| I want a sort of npc group member, or a summoned pet to guard me...
I guess it's not possible... |
T.A.N.S.T.A.F.L.
There Aint No Such Thing As Free Lunch,
From the moon is a harsh mistress. | | Top |
|
| Posted by
| David Haley
USA (3,881 posts) Bio
|
| Date
| Reply #5 on Mon 17 Jul 2006 03:40 PM (UTC) |
| Message
| 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'. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | | Top |
|
| Posted by
| Kingsmill
USA (78 posts) Bio
|
| Date
| Reply #6 on Mon 17 Jul 2006 05:26 PM (UTC) |
| Message
| How does one 'charm' an npc pet ?
Does one use a charm command ?
Or does one cast charm person ?
|
T.A.N.S.T.A.F.L.
There Aint No Such Thing As Free Lunch,
From the moon is a harsh mistress. | | Top |
|
| Posted by
| Kingsmill
USA (78 posts) Bio
|
| Date
| Reply #7 on Mon 17 Jul 2006 05:49 PM (UTC) |
| Message
| 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.... |
T.A.N.S.T.A.F.L.
There Aint No Such Thing As Free Lunch,
From the moon is a harsh mistress. | | Top |
|
| Posted by
| David Haley
USA (3,881 posts) Bio
|
| Date
| Reply #8 on Mon 17 Jul 2006 06:36 PM (UTC) |
| Message
| | 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. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | | Top |
|
| Posted by
| Kingsmill
USA (78 posts) Bio
|
| Date
| Reply #9 on Mon 17 Jul 2006 06:38 PM (UTC) |
| Message
| | I am reffering to the skills.dat commands.dat, and other smaug code as a seperate entity. |
T.A.N.S.T.A.F.L.
There Aint No Such Thing As Free Lunch,
From the moon is a harsh mistress. | | Top |
|
| Posted by
| David Haley
USA (3,881 posts) Bio
|
| Date
| Reply #10 on Mon 17 Jul 2006 06:50 PM (UTC) |
| Message
| | 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. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | | Top |
|
| Posted by
| Kingsmill
USA (78 posts) Bio
|
| Date
| Reply #11 on Fri 21 Jul 2006 06:37 PM (UTC) |
| Message
| 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. |
T.A.N.S.T.A.F.L.
There Aint No Such Thing As Free Lunch,
From the moon is a harsh mistress. | | Top |
|
| Posted by
| David Haley
USA (3,881 posts) Bio
|
| Date
| Reply #12 on Fri 21 Jul 2006 06:45 PM (UTC) |
| Message
| 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. :-) |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | | Top |
|
| Posted by
| Kingsmill
USA (78 posts) Bio
|
| Date
| Reply #13 on Fri 21 Jul 2006 06:49 PM (UTC) |
| Message
| | 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. |
T.A.N.S.T.A.F.L.
There Aint No Such Thing As Free Lunch,
From the moon is a harsh mistress. | | Top |
|
| Posted by
| Kingsmill
USA (78 posts) Bio
|
| Date
| Reply #14 on Fri 21 Jul 2006 06:54 PM (UTC) |
| Message
| 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. |
T.A.N.S.T.A.F.L.
There Aint No Such Thing As Free Lunch,
From the moon is a harsh mistress. | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
46,076 views.
This is page 1, subject is 2 pages long: 1 2
It is now over 60 days since the last post. This thread is closed.
Refresh page
top