Welcome to the Builder Academy

Question Portal as a skill problems

More
08 Oct 2017 11:18 #6970 by JTP
Replied by JTP on topic Portal as a skill problems
Iwe updated the post alittle

But yes they were both in same room, didnt test yet if they were in different rooms.


Also seems to be some odd with messages:

Tester slowly fades into existence.
Tester slowly fades out of existence and is gone.
Tester slowly fades into existence.

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

More
08 Oct 2017 12:15 #6971 by zusuk
Replied by zusuk on topic Portal as a skill problems
You need to be in the same group as caster... following is not necessary, make sure both the caster and the person you want to travel with the caster are in the same room and groupped together. If that does not work, please let me know.

To fix the double message, look for this code:
Code:
/* first, take care of the group, since we want to make sure they are all in the same room as the caster */ if (GROUP(ch) != NULL) { /* caster groupped? */ while ((tch = (struct char_data *) simple_list(GROUP(ch)->members)) != NULL) { /* iterate through group */ if (IN_ROOM(tch) != IN_ROOM(ch)) /* in same room? */ continue; /* we are in the same room, and groupped with caster, time to teleport */ char_tele_to_room(tch, to_room); } }

change it to:
Code:
/* first, take care of the group, since we want to make sure they are all in the same room as the caster */ if (GROUP(ch) != NULL) { /* caster groupped? */ while ((tch = (struct char_data *) simple_list(GROUP(ch)->members)) != NULL) { /* iterate through group */ if (tch == ch) continue; if (IN_ROOM(tch) != IN_ROOM(ch)) /* in same room? */ continue; /* we are in the same room, and groupped with caster, time to teleport */ char_tele_to_room(tch, to_room); } }

Website
www.luminariMUD.com

Main Game Port
luminariMUD.com:4100
The following user(s) said Thank You: JTP

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

More
08 Oct 2017 12:23 #6972 by JTP
Replied by JTP on topic Portal as a skill problems
if (tch == ch)
continue;

Seems to fix everything...i will test further.

User now only see one room desc. And it now doesnt matter if user is leader or follower, all come.

And if leader and user is in two different rooms, only user goes to target :)

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

More
08 Oct 2017 12:29 #6973 by JTP
Replied by JTP on topic Portal as a skill problems
In your void:
Code:
send_to_char(ch, "You slowly fade out of existence...\r\n"); act("$n slowly fades out of existence and is gone.", FALSE, ch, 0, 0, TO_ROOM); char_from_room(ch); char_to_room(ch, to_room); act("$n slowly fades into existence.", FALSE, ch, 0, 0, TO_ROOM); send_to_char(ch, "You slowly fade back into existence...\r\n");

2 send_to_char(ch,
2 act with FALSE, ch

Any of those that should be tch ??

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

More
08 Oct 2017 12:31 #6974 by zusuk
Replied by zusuk on topic Portal as a skill problems
That how you want it to work or did you desire something different?

Website
www.luminariMUD.com

Main Game Port
luminariMUD.com:4100

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

More
08 Oct 2017 12:32 #6975 by zusuk
Replied by zusuk on topic Portal as a skill problems
nope, when the function is called for tch it gets changed to ch in that function

Website
www.luminariMUD.com

Main Game Port
luminariMUD.com:4100

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

Time to create page: 0.274 seconds