Jump to content

Question

Posted (edited)

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

6 answers to this question

Recommended Posts

  • 0
Posted

 

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

  • 0
Posted

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;
        }
  • 0
Posted

 

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.

  • 0
Posted

 

 

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.
  • 0
Posted

 

 

 

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.
  • 0
Posted

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...