• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[Trinity C++] Boss Announcer

Synth

Exalted Member
Hello Emudevs,today i'm going to share a simple script called "Boss Announcer" made by Jameyboor,and updated by me.

Script info:
●When you kill a boss it will send an automactly global message to server which boss you have kill and ho is the leader of the group kill the boss.

Script:
Boss Announcer - C++ - Pastebin

Screenshot:
DISABLED AT THIS MOMENT why? CZ i compile today my own core and there is an error with permissions when i put the right permission id of admin nothing happen i can't teleport to a map or something.

If you have any question feel free to ask me.

Thank you!
Best regards,
Synth !
 
Last edited:

Rochet2

Moderator / Eluna Dev
boss->GetName() also likely gets an std::string that needs to be converted to const char.
Use stringstreams :)?
 

Tommy

Founder
That's correct, it should be the same as how the player's name is being called:

Code:
boss->GetName().c_str();

Else, it will crash the server.

The script wasn't tested. The indentation looks like it was just copied/pasted then put on pastebin. :/
 
Last edited:

Synth

Exalted Member
That's correct, it should be the same as how the player's name is being called:

Code:
boss->GetName().c_str();

Else, it will crash the server.

The script wasn't tested. The indentation looks like it was just copied/pasted then put on pastebin. :/
Its not tested cz i can't go to icc or any map cz i have problem with permissions also i can't access any commands and sorry i forget to add this i fix player one and i forget boss one,and its not copy/paste you can check it out here:

Thank you.
 
Last edited by a moderator:

Tommy

Founder
Its not tested cz i can't go to icc or any map cz i have problem with permissions also i can't access any commands and sorry i forget to add this i fix player one and i forget boss one,and its not copy/paste you can check it out here:

Thank you.

If it isn't tested you might wanna remove the 'Comment: Tested' in the header of the script. :p
 

Jameyboor

Retired Staff
It's funny because I once made this for some guy, he then edited some parts of it to add colors he said, never knew why he removed the const char* conversion though.
 
Last edited:
Top