Mosaic Posted August 19, 2019 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 23 Reputation: 1 Joined: 08/08/16 Last Seen: March 22 Share Posted August 19, 2019 (edited) Quote If pk_mode is set to 2 instead of 1 (yes), players will receive a manner penalty of 5 each time they kill another player I set the pk mode to 2 so that they will be punished if they killed a player. Question: How to remove the current penalty/manner of the player? Edited August 20, 2019 by Mosaic Quote Link to comment Share on other sites More sharing options...
0 Naruto Posted August 20, 2019 Group: Members Topic Count: 20 Topics Per Day: 0.01 Content Count: 416 Reputation: 74 Joined: 05/16/19 Last Seen: January 24, 2021 Share Posted August 20, 2019 Sorry i dont understand the manner system but i think this is it You lose 5 manner when you kill somebody ? then this is it pc.c if (src && src->type == BL_PC) { struct map_session_data *ssd = (struct map_session_data *)src; pc_setparam(ssd, SP_KILLEDRID, sd->bl.id); npc_script_event(ssd, NPCE_KILLPC); if (battle_config.pk_mode&2) { ssd->status.manner -= 5; if(ssd->status.manner < 0) sc_start(&sd->bl,src,SC_NOCHAT,100,0,0); #if 0 // PK/Karma system code (not enabled yet) [celest] // originally from Kade Online, so i don't know if any of these is correct ^^; // note: karma is measured REVERSE, so more karma = more 'evil' / less honourable, // karma going down = more 'good' / more honourable. // The Karma System way... if (sd->status.karma > ssd->status.karma) { // If player killed was more evil sd->status.karma--; ssd->status.karma--; } else if (sd->status.karma < ssd->status.karma) // If player killed was more good ssd->status.karma++; // or the PK System way... if (sd->status.karma > 0) // player killed is dishonourable? ssd->status.karma--; // honour points earned sd->status.karma++; // honour points lost // To-do: Receive exp on certain occasions #endif } } a few more things... status.c case SC_NOCHAT: if(sd) { sd->status.manner++; clif_changestatus(sd,SP_MANNER,sd->status.manner); clif_updatestatus(sd,SP_MANNER); if (sd->status.manner < 0) { // Every 60 seconds your manner goes up by 1 until it gets back to 0. sc_timer_next(60000+tick); return 0; } } break; you can pm me if you want more details Quote Link to comment Share on other sites More sharing options...
0 dantoki Posted August 20, 2019 Group: Members Topic Count: 67 Topics Per Day: 0.01 Content Count: 235 Reputation: 42 Joined: 10/21/12 Last Seen: Saturday at 07:10 AM Share Posted August 20, 2019 Set it to 1 instead of 2. there is no penalty if you se it to 1. Quote Link to comment Share on other sites More sharing options...
0 Mosaic Posted August 20, 2019 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 23 Reputation: 1 Joined: 08/08/16 Last Seen: March 22 Author Share Posted August 20, 2019 5 hours ago, mharkeke said: Set it to 1 instead of 2. there is no penalty if you se it to 1. No. I need the manner system. I want them to be punished when they killed a player. Quote Link to comment Share on other sites More sharing options...
0 dantoki Posted August 21, 2019 Group: Members Topic Count: 67 Topics Per Day: 0.01 Content Count: 235 Reputation: 42 Joined: 10/21/12 Last Seen: Saturday at 07:10 AM Share Posted August 21, 2019 then set it to 2. Quote Link to comment Share on other sites More sharing options...
Question
Mosaic
I set the pk mode to 2 so that they will be punished if they killed a player.
Question: How to remove the current penalty/manner of the player?
Edited by MosaicLink to comment
Share on other sites
4 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.