Please check out TwistedMUCK !

Member Discussions

terms



[Previous] [Next] [Post] [Reply] [Topics] [Summary] [Search]


1. i cant seem to figure how to fix this Wed Aug 24, 2005 [6:44 PM]
zzyzzyzzx2
Email not supplied
member since: Jul 17, 2004
Reply
You are using:
[used as light].....a ball of lightning
[used as light].....a ball of lightning



how would i fix that if you can tell me that would rock thank you.... i have another problem with getting copyover to work so if you could help with that one also thanks


2. RE: i cant seem to figure how to fix this Wed Aug 24, 2005 [9:04 PM]
somarilnos
Email not supplied
member since: Apr 15, 2005
In Reply To
Reply
Being that you've neither identified which codebase you're using or pasted any parts of the code, any replies to this could be merely pure speculation and likely will not help you with your problem.
LegendMUD
mud.legendmud.org 9999


3. RE: i cant seem to figure how to fix this Wed Aug 24, 2005 [10:49 PM]
zzyzzyzzx2
Email not supplied
member since: Jul 17, 2004
In Reply To
Reply
its a rom heavly modified to many codes pertaning to a wearable light to post on so i cant really track it down so im hopeing someone on here can help the copyover thing can wait though


4. RE: i cant seem to figure how to fix this Thu Aug 25, 2005 [1:30 AM]
zzyzzyzzx2
Email not supplied
member since: Jul 17, 2004
In Reply To
Reply
ok i figured out this error but so i dont spam here is another error....


act_info.c:593: error: syntax error before ')' token



void show_char_to_char_0(CHAR_DATA * victim, CHAR_DATA * ch)
{
char buf[MAX_STRING_LENGTH], message[MAX_STRING_LENGTH], pers_buf[MAX_STRING_LENGTH];

buf[0] = '\0';

//set_prename(victim);
//set_prename(ch);

if (!IS_NPC(victim) && !victim->desc )

strcat( buf, '{r({RLinkdead{r){x ' );

if (RIDDEN(victim)){

if (ch != RIDDEN(victim)) {

strcat(buf, '(Ridden) ');

} else {

strcat(buf, '(Your mount) ');

}

}

if (IS_NPC(victim) && ch->questmob > 0 &&

victim->pIndexData->vnum == ch->questmob)

strcat(buf, '[{WTARGET{x] ');

if (IS_SET(victim->comm, COMM_AFK))

strcat(buf, '{G[{gAFK{G]{x ');

if (IS_AFFECTED(victim, AFF_INVISIBLE))

strcat(buf, '{D({BInvis{D){x ');

if (victim->invis_level >= LEVEL_HERO)

strcat(buf, '{D({bWizi{D){x ');

if (IS_AFFECTED(victim, AFF_HIDE))

strcat(buf, '{W({yHide{W){x ');

if (IS_AFFECTED(victim, AFF_CHARM))

strcat(buf, '{W({xCharmed{W){x ');

if (IS_AFFECTED(victim, AFF_FAERIE_FIRE))

strcat(buf, '{M({mPink Aura{M){x ');








error line
if (IS_EVIL(victim) && !IS_NPC(victim)
&& IS_AFFECTED(ch, AFF_DETECT_ALIGNMENT))
strcat(buf, '{R({rRed Aura{R){x {x');








if (IS_GOOD(victim) && !IS_NPC(victim)

&& IS_AFFECTED(ch,

AFF_DETECT_ALIGNMENT))

strcat(buf, '{y({YGolden Aura{y){x ');

if (IS_AFFECTED(victim, AFF_SANCTUARY))

strcat(buf, '{D({wWhite Aura{D){x ');

if (IS_AFFECTED(victim, AFF_REFLECT))

strcat(buf, '{D({WSilver Aura{D){x ');

if (is_affected(victim, skill_lookup('enhance
aura')))

strcat(buf, '{C({cEnhance Aura{C){x ');

if (IS_AFFECTED2(victim, AFF_CHAOTIC))

strcat(buf, '{m({MChaotic{m){x ');

if (IS_AFFECTED2(victim, AFF_DEFLECT))

strcat(buf, '{c({CDeflective{c){x ');

if (!IS_NPC(victim) && IS_SET(victim->act, PLR_KILLER))

strcat(buf, '{D({RTRAITOR{D){x ');

if (!IS_NPC(victim) && IS_SET(victim->act, PLR_THIEF))

strcat(buf, '{D({RCRIMINAL{D){x ');

if (!IS_NPC(victim) && (victim->pcdata->judge == 3))

strcat(buf, '{r(Mercenary){x ');

if (!IS_NPC(victim) && victim->side == SIDE_NONE &&

IS_AFFECTED(ch, AFF_DETECT_ALIGNMENT))

strcat(buf, '{b({BBlue Aura{){x ');

if (victim->position == victim->start_pos &&

!IS_SET(victim->act, PLR_SEVERED) && victim->long_descr[0]

!= '\0') {

strcat(buf, victim->long_descr);

send_to_char(buf, ch);

return;


thanks for the help


5. RE: i cant seem to figure how to fix this Fri Aug 26, 2005 [7:38 AM]
somarilnos
Email not supplied
member since: Apr 15, 2005
In Reply To
Reply
The obvious error in that block is that you don't have a closing bracket for your if block at the very end:

if (victim->position == victim->start_pos .....) {
strcat(buf, victim->long_descr);
send_to_char(buf, ch);
} /* this is what was missing */

return;
LegendMUD
mud.legendmud.org 9999




[Previous] [Next] [Post] [Reply] [Topics] [Summary] [Search]