purist Posted December 21, 2023 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 2 Reputation: 0 Joined: 01/22/14 Last Seen: April 28, 2024 Share Posted December 21, 2023 Hey, everyone! If anyone can help, I would be very grateful! I need an NCP that works like the Race Of The Day, but displays this symbol on the screen when its respective race receives the bonus. Thanks! Quote Link to comment Share on other sites More sharing options...
0 Winterfox Posted December 22, 2023 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 245 Reputation: 92 Joined: 06/30/18 Last Seen: November 27, 2024 Share Posted December 22, 2023 That symbol and message is created by a status effect. You will need to add a new status effect to your client. Afterward, you can use the status effect id in a script as a parameter for sc_start to make it appear for players that you want to see it for the duration you would like them to see it. Quote Link to comment Share on other sites More sharing options...
0 purist Posted December 25, 2023 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 2 Reputation: 0 Joined: 01/22/14 Last Seen: April 28, 2024 Author Share Posted December 25, 2023 Sure, but in which files do I make changes, whether in the client or the emulator, to create it? Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted December 29, 2023 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10015 Reputation: 2364 Joined: 10/28/11 Last Seen: Saturday at 07:02 PM Share Posted December 29, 2023 you can make use of bonus_script to grant custom sc bonuses without need to touch the source code. *bonus_script "<script code>",<duration>{,<flag>{,<type>{,<status_icon>{,<char_id>}}}}; This command will attach a script to a player for a given duration, in seconds. After that time, the script will automatically expire. The same bonus cannot be stacked. By default, this bonus will be stored on `bonus_script` table when player logs out. Flags (bitmask): 1 : Remove when dead. 2 : Removable by Dispell. 4 : Removable by Clearance. 8 : Remove when player logs out. 16 : Removeable by Banishing Buster. 32 : Removable by Refresh. 64 : Removable by Lux Anima. 128 : Remove when Madogear is activated or deactivated. 256 : Remove when receive damage. 512 : Script is permanent, cannot be cleared by bonus_script_clear. 1024: Force to replace duplicated script by expanding the duration. 2048: Force to add duplicated script. This flag cannot be stacked with 1024, if both are defined, 1024 will be checked first and ignore this flag. Types: This will be used to decide negative or positive buff for 'debuff_on_logout'. 0: Ignore the buff type and won't be removed if the flag is not &8 (Default) 1: Buff 2: Debuff Status_icon: See "Status Icon" section in 'src/map/script_constants.hpp'. Default is SI_BLANK (-1). bonus_script "{ bonus bStr,5; }",60; Quote Link to comment Share on other sites More sharing options...
Question
purist
Hey, everyone!
If anyone can help, I would be very grateful! I need an NCP that works like the Race Of The Day, but displays this symbol on the screen when its respective race receives the bonus.
Thanks!
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.