Welcome to the Builder Academy

Question Circle Mount patch to tba

More
23 Apr 2017 20:23 #6648 by JTP
Replied by JTP on topic Circle Mount patch to tba
Any luck ?

Please Log in or Create an account to join the conversation.

More
24 Apr 2017 00:47 #6649 by Liko
Replied by Liko on topic Circle Mount patch to tba
sorry, been busy. I am gonna work on it tonight and tomorrow.

Randian(0.0.0)
Owner/Developer

Please Log in or Create an account to join the conversation.

More
24 Apr 2017 02:00 #6650 by Liko
Replied by Liko on topic Circle Mount patch to tba

JTP wrote: Few Things dont Work though.

Taming a Mount sets spell tame twice:
Master is: <none>, Followers are: <none>
AFF: TAMED
SPL: ( 25hr) tame
SPL: ( 25hr) tame
Triggers:
None.

Mounting the mob and move doesnt move the Mount, but only the char moves. Character is montering a horse when i look in the room. But if the character goes to n, s, e or w or what ever, horse is left behind, only the character moves. If the character comes back, he is again mounts on the horse.

Move messages isnt showing right. Maybe because the Mount dont move with the character.

And more :(

Iwe tried my best over the past week, hope someone feels up for making this patch Work on tbamud some day.


Since I don't have time to do this code, let me break down what I found while reading thru it.

Issue one: Setting tame twice. I believe this code block in do_tame is causing the issue:
Code:
af.type = SKILL_TAME; af.duration = 24; af.modifier = 0; af.location = APPLY_NONE; af.bitvector = AFF_TAMED; affect_join(vict, &af, FALSE, FALSE, FALSE, FALSE);

I think it should be set like this:
Code:
new_affect(&af); af.spell = SKILL_TAME; af.duration = 24; SET_BIT_AR(af.bitvector, AFF_TAMED); affect_to_char(vict, &af);

Issue 2: Mount not moving. Going over the whole act.movement.c part probably needs to be completely rewritten. I would suggest you write it from scratch and use the snippet as an example. The reason the mount did not move is because their isn't anything really write it for tba mud 3.68. It only contains stuff for do_simple_move, but movement for followers and stuff is handled at: int perform_move. I would use this example as how to write a move block for mounts:
Code:
struct follow_type *k, *next; for (k = ch->followers; k; k = next) { next = k->next; if ((IN_ROOM(k->follower) == was_in) && (GET_POS(k->follower) >= POS_STANDING)) { act("You follow $N.\r\n", FALSE, k->follower, 0, ch, TO_CHAR); perform_move(k->follower, dir, 1); } }

If I were writing a code block for movement for the mount, I would write a check to see if you are both in same room, then if you are riding it and it is tamed, then have it perform_move.

If any typos I am sorry, kinda wrote this on the fly.

Randian(0.0.0)
Owner/Developer

Please Log in or Create an account to join the conversation.

More
24 Apr 2017 11:16 #6652 by JTP
Replied by JTP on topic Circle Mount patch to tba
Hope you have time to solve it all and poste it as a tbamud patch. Its over my head to solve, had to give it up.

Please Log in or Create an account to join the conversation.

More
24 Apr 2017 13:06 #6655 by krell
Replied by krell on topic Circle Mount patch to tba

JTP wrote: Hope you have time to solve it all and poste it as a tbamud patch. Its over my head to solve, had to give it up.


You might want to consider recruiting a coder or two for your MUD. Having skilled coders in your administration could do wonders for your codebase.

Please Log in or Create an account to join the conversation.

More
24 Apr 2017 16:47 #6656 by JTP
Replied by JTP on topic Circle Mount patch to tba
My mud is mainly for my kid and her friends so that might be a bit overkill :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.214 seconds