Jump to content
  • 0
bearnope246

Change color in script?

Question

i have 3 question.

 

1. How to use more color in an announce? 

This is a narrator script, i want to have the killer name and the death player have different color.

mapannounce @map$,"The Player [ "+strcharinfo(0)+" ] killed [ "[email protected]$+" ] | "[email protected]$,bc_map;

2. This is a GMsupport script.

I try to change the (online), (offline) color, but it only appear for awhile, and after relog its back to normal.

if ( isloggedin( [email protected],[email protected] ) ) {


[email protected] = checkidle( [email protected]$ );

if ( [email protected] >= .afk_second && .afk_second ) {
[email protected]$ = "(AFK/Away)";
}
else {
[email protected]$ = "(Online)";
}
}
else {
[email protected]$ = "(Offline)";
}

return [email protected]$;
}

}

But if i change this part of the script

mes get_GM_Title( [email protected]$[[email protected]],[email protected]_id[[email protected]] )+" -^0011FF "+get_GM_State([email protected][[email protected]],[email protected][[email protected]],[email protected]$[[email protected]] );

The color changed, but all the state are same color, i want it to be diferent color.

 

3.This is a pvp warper script.

OnInit:
while(1) {
        waitingroom "PvP Normal ["+getmapusers("guild_vs3")+"]",0;
        sleep 100;
        delwaitingroom;
        }

This is the waiting room part, how can i change the color of the number only?

"+getmapusers("guild_vs3")+"
Edited by bearnope246
Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

 

try to change this

mapannounce @map$,"The Player [ "+strcharinfo(0)+" ] killed [ "[email protected]$+" ] | "[email protected]$,bc_map;0xE71Ac9;

into

mapannounce @map$,"The Player [ "+strcharinfo(0)+" ] killed [ "[email protected]$+" ] | "[email protected]$,bc_map,0xE71Ac9;

 

 

 

 

 

1. Change FFFF00 with the color you desire.

mapannounce @map$,"The Player [ "+strcharinfo(0)+" ] killed [ "[email protected]$+" ] | "[email protected]$,bc_map,0xFFFF00;

2. NPC Color. Replace FF0000 with the color you desire.

if ( isloggedin( [email protected],[email protected] ) ) {


[email protected] = checkidle( [email protected]$ );

if ( [email protected] >= .afk_second && .afk_second ) {
[email protected]$ = "^FF0000(AFK/Away)^000000";
}
else {
[email protected]$ = "^FF0000(Online)^00000";
}
}
else {
[email protected]$ = "^FF0000(Offline)^00000";
}

return [email protected]$;
}

}

 

3. Change FF0000 with the color you desire.

OnInit:
while(1) {
        waitingroom "PvP Normal [^FF0000"+getmapusers("guild_vs3")+"^000000]",0;
        sleep 100;
        delwaitingroom;
        }

Number 2 worked, thanks, i try that before but it doesnt work, now it does.

Number 1: Sorry but i want 2 color for 2 names in the announce, is it possible?

Like this.

....The Player player1 killed player2.....

number 3: 

i type 

waitingroom "PvP Normal [^0011FF"+getmapusers("guild_vs3")+"^000000]",0;

but it show up on the room title: ^0011FF<number>^000000.

 

RE: Sorry but i want 2 color for 2 names in the announce, is it possible?

Nope, it's not possible. You can only pick 1 color for announcements.

 

RE: but it show up on the room title: ^0011FF<number>^000000.

Ah! It won't work if it's in a chatroom (waiting room). It'll only work on NPC Messages.

 

Thanks guys ^^ solved

Link to comment
Share on other sites

  • 0

1. Change FFFF00 with the color you desire.

mapannounce @map$,"The Player [ "+strcharinfo(0)+" ] killed [ "[email protected]$+" ] | "[email protected]$,bc_map,0xFFFF00;

2. NPC Color. Replace FF0000 with the color you desire.

if ( isloggedin( [email protected],[email protected] ) ) {


[email protected] = checkidle( [email protected]$ );

if ( [email protected] >= .afk_second && .afk_second ) {
[email protected]$ = "^FF0000(AFK/Away)^000000";
}
else {
[email protected]$ = "^FF0000(Online)^00000";
}
}
else {
[email protected]$ = "^FF0000(Offline)^00000";
}

return [email protected]$;
}

}

 
3. Change FF0000 with the color you desire.

OnInit:
while(1) {
        waitingroom "PvP Normal [^FF0000"+getmapusers("guild_vs3")+"^000000]",0;
        sleep 100;
        delwaitingroom;
        }
Link to comment
Share on other sites

  • 0

 

1. Change FFFF00 with the color you desire.

mapannounce @map$,"The Player [ "+strcharinfo(0)+" ] killed [ "[email protected]$+" ] | "[email protected]$,bc_map,0xFFFF00;

2. NPC Color. Replace FF0000 with the color you desire.

if ( isloggedin( [email protected],[email protected] ) ) {


[email protected] = checkidle( [email protected]$ );

if ( [email protected] >= .afk_second && .afk_second ) {
[email protected]$ = "^FF0000(AFK/Away)^000000";
}
else {
[email protected]$ = "^FF0000(Online)^00000";
}
}
else {
[email protected]$ = "^FF0000(Offline)^00000";
}

return [email protected]$;
}

}

 

3. Change FF0000 with the color you desire.

OnInit:
while(1) {
        waitingroom "PvP Normal [^FF0000"+getmapusers("guild_vs3")+"^000000]",0;
        sleep 100;
        delwaitingroom;
        }

Number 2 worked, thanks, i try that before but it doesnt work, now it does.

Number 1: Sorry but i want 2 color for 2 names in the announce, is it possible?

Like this.

....The Player player1 killed player2.....

number 3: 

i type 

waitingroom "PvP Normal [^0011FF"+getmapusers("guild_vs3")+"^000000]",0;

but it show up on the room title: ^0011FF<number>^000000.

Link to comment
Share on other sites

  • 0

 

 

1. Change FFFF00 with the color you desire.

mapannounce @map$,"The Player [ "+strcharinfo(0)+" ] killed [ "[email protected]$+" ] | "[email protected]$,bc_map,0xFFFF00;

2. NPC Color. Replace FF0000 with the color you desire.

if ( isloggedin( [email protected],[email protected] ) ) {


[email protected] = checkidle( [email protected]$ );

if ( [email protected] >= .afk_second && .afk_second ) {
[email protected]$ = "^FF0000(AFK/Away)^000000";
}
else {
[email protected]$ = "^FF0000(Online)^00000";
}
}
else {
[email protected]$ = "^FF0000(Offline)^00000";
}

return [email protected]$;
}

}

 

3. Change FF0000 with the color you desire.

OnInit:
while(1) {
        waitingroom "PvP Normal [^FF0000"+getmapusers("guild_vs3")+"^000000]",0;
        sleep 100;
        delwaitingroom;
        }

Number 2 worked, thanks, i try that before but it doesnt work, now it does.

Number 1: Sorry but i want 2 color for 2 names in the announce, is it possible?

Like this.

....The Player player1 killed player2.....

number 3: 

i type 

waitingroom "PvP Normal [^0011FF"+getmapusers("guild_vs3")+"^000000]",0;

but it show up on the room title: ^0011FF<number>^000000.

 

RE: Sorry but i want 2 color for 2 names in the announce, is it possible?

Nope, it's not possible. You can only pick 1 color for announcements.

 

RE: but it show up on the room title: ^0011FF<number>^000000.

Ah! It won't work if it's in a chatroom (waiting room). It'll only work on NPC Messages.
Link to comment
Share on other sites

  • 0

 

 

 

1. Change FFFF00 with the color you desire.

mapannounce @map$,"The Player [ "+strcharinfo(0)+" ] killed [ "[email protected]$+" ] | "[email protected]$,bc_map,0xFFFF00;

2. NPC Color. Replace FF0000 with the color you desire.

if ( isloggedin( [email protected],[email protected] ) ) {


[email protected] = checkidle( [email protected]$ );

if ( [email protected] >= .afk_second && .afk_second ) {
[email protected]$ = "^FF0000(AFK/Away)^000000";
}
else {
[email protected]$ = "^FF0000(Online)^00000";
}
}
else {
[email protected]$ = "^FF0000(Offline)^00000";
}

return [email protected]$;
}

}

 

3. Change FF0000 with the color you desire.

OnInit:
while(1) {
        waitingroom "PvP Normal [^FF0000"+getmapusers("guild_vs3")+"^000000]",0;
        sleep 100;
        delwaitingroom;
        }

Number 2 worked, thanks, i try that before but it doesnt work, now it does.

Number 1: Sorry but i want 2 color for 2 names in the announce, is it possible?

Like this.

....The Player player1 killed player2.....

number 3: 

i type 

waitingroom "PvP Normal [^0011FF"+getmapusers("guild_vs3")+"^000000]",0;

but it show up on the room title: ^0011FF<number>^000000.

 

RE: Sorry but i want 2 color for 2 names in the announce, is it possible?

Nope, it's not possible. You can only pick 1 color for announcements.

 

RE: but it show up on the room title: ^0011FF<number>^000000.

Ah! It won't work if it's in a chatroom (waiting room). It'll only work on NPC Messages.

 

 

oh ok. thanks

Back to number1. 

I change the code from

mapannounce @map$,"The Player [ "+strcharinfo(0)+" ] killed [ "[email protected]$+" ] | "[email protected]$,bc_map;

to

 

mapannounce @map$,"The Player [ "+strcharinfo(0)+" ] killed [ "[email protected]$+" ] | "[email protected]$,bc_map;0xE71Ac9;

and i got error.

Parse_line: expect command, missing funtion name or calling undeclare funtion.
Link to comment
Share on other sites

  • 0

try to change this

mapannounce @map$,"The Player [ "+strcharinfo(0)+" ] killed [ "[email protected]$+" ] | "[email protected]$,bc_map;0xE71Ac9;

 

into

mapannounce @map$,"The Player [ "+strcharinfo(0)+" ] killed [ "[email protected]$+" ] | "[email protected]$,bc_map,0xE71Ac9;
  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.