Mosaic Posted August 19, 2019 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
0 Naruto Posted August 20, 2019 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
0 dantoki Posted August 20, 2019 Posted August 20, 2019 Set it to 1 instead of 2. there is no penalty if you se it to 1. Quote
0 Mosaic Posted August 20, 2019 Author 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
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 Mosaic4 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.