Jump to content
  • 0

Change color in script?


bearnope246

Question


  • Group:  Members
  • Topic Count:  41
  • Topics Per Day:  0.01
  • Content Count:  94
  • Reputation:   5
  • Joined:  06/30/16
  • Last Seen:  

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 [ "+@Morto$+" ] | "+@Tocar$,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( .@aid,.@cid ) ) {


.@idle = checkidle( .@name$ );

if ( .@idle >= .afk_second && .afk_second ) {
.@state$ = "(AFK/Away)";
}
else {
.@state$ = "(Online)";
}
}
else {
.@state$ = "(Offline)";
}

return .@state$;
}

}

But if i change this part of the script

mes get_GM_Title( .@name$[.@i],.@group_id[.@i] )+" -^0011FF "+get_GM_State(.@aid[.@i],.@cid[.@i],.@name$[.@i] );

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

  • Group:  Members
  • Topic Count:  41
  • Topics Per Day:  0.01
  • Content Count:  94
  • Reputation:   5
  • Joined:  06/30/16
  • Last Seen:  

 

try to change this

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

into

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

 

 

 

 

 

1. Change FFFF00 with the color you desire.

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

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

if ( isloggedin( .@aid,.@cid ) ) {


.@idle = checkidle( .@name$ );

if ( .@idle >= .afk_second && .afk_second ) {
.@state$ = "^FF0000(AFK/Away)^000000";
}
else {
.@state$ = "^FF0000(Online)^00000";
}
}
else {
.@state$ = "^FF0000(Offline)^00000";
}

return .@state$;
}

}

 

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

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  149
  • Reputation:   24
  • Joined:  02/11/16
  • Last Seen:  

1. Change FFFF00 with the color you desire.

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

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

if ( isloggedin( .@aid,.@cid ) ) {


.@idle = checkidle( .@name$ );

if ( .@idle >= .afk_second && .afk_second ) {
.@state$ = "^FF0000(AFK/Away)^000000";
}
else {
.@state$ = "^FF0000(Online)^00000";
}
}
else {
.@state$ = "^FF0000(Offline)^00000";
}

return .@state$;
}

}

 
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

  • Group:  Members
  • Topic Count:  41
  • Topics Per Day:  0.01
  • Content Count:  94
  • Reputation:   5
  • Joined:  06/30/16
  • Last Seen:  

 

1. Change FFFF00 with the color you desire.

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

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

if ( isloggedin( .@aid,.@cid ) ) {


.@idle = checkidle( .@name$ );

if ( .@idle >= .afk_second && .afk_second ) {
.@state$ = "^FF0000(AFK/Away)^000000";
}
else {
.@state$ = "^FF0000(Online)^00000";
}
}
else {
.@state$ = "^FF0000(Offline)^00000";
}

return .@state$;
}

}

 

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

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  149
  • Reputation:   24
  • Joined:  02/11/16
  • Last Seen:  

 

 

1. Change FFFF00 with the color you desire.

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

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

if ( isloggedin( .@aid,.@cid ) ) {


.@idle = checkidle( .@name$ );

if ( .@idle >= .afk_second && .afk_second ) {
.@state$ = "^FF0000(AFK/Away)^000000";
}
else {
.@state$ = "^FF0000(Online)^00000";
}
}
else {
.@state$ = "^FF0000(Offline)^00000";
}

return .@state$;
}

}

 

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

  • Group:  Members
  • Topic Count:  41
  • Topics Per Day:  0.01
  • Content Count:  94
  • Reputation:   5
  • Joined:  06/30/16
  • Last Seen:  

 

 

 

1. Change FFFF00 with the color you desire.

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

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

if ( isloggedin( .@aid,.@cid ) ) {


.@idle = checkidle( .@name$ );

if ( .@idle >= .afk_second && .afk_second ) {
.@state$ = "^FF0000(AFK/Away)^000000";
}
else {
.@state$ = "^FF0000(Online)^00000";
}
}
else {
.@state$ = "^FF0000(Offline)^00000";
}

return .@state$;
}

}

 

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 [ "+@Morto$+" ] | "+@Tocar$,bc_map;

to

 

mapannounce @map$,"The Player [ "+strcharinfo(0)+" ] killed [ "+@Morto$+" ] | "+@Tocar$,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

  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  108
  • Reputation:   1
  • Joined:  02/10/12
  • Last Seen:  

try to change this

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

 

into

mapannounce @map$,"The Player [ "+strcharinfo(0)+" ] killed [ "+@Morto$+" ] | "+@Tocar$,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...