skyundersea 0 Posted March 16, 2019 Hi guys, i'm here to make a request if its possible I need a visual item at shoes slot that make character float a little and increase speed by some %, also need to know if is possible to add Visual option to manner PK system, when ppl kill someone it show Option i choose! thank you ! Quote Share this post Link to post Share on other sites
0 banhelba2019 20 Posted March 17, 2019 (edited) I dont think you can make them float as easily as you want, without using union or something. . . cause the head is separate from the body right your gonna have to wait for annie Edited March 17, 2019 by lllaaazzz Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted March 17, 2019 increase movement speed bonus bSpeedAddRate,`n`; but to make the character floating, nope, only star gladiator can fly prontera,157,180,4 script Option Master 4_DOG01,{ setoption Option_Flying, true; sleep2 1000; setoption Option_Flying, false; } this will make the character flying while changing the cloth to star gladiatorhttp://herc.ws/board/topic/15912-only-star-gladiator-can-fly/#comment-87647 its restricted by client side, which I hope someone who are good at client can take a crack at it 18 hours ago, skyundersea said: also need to know if is possible to add Visual option to manner PK system, when ppl kill someone it show Option i choose! no idea what's this means Quote Share this post Link to post Share on other sites
0 utofaery 7 Posted March 17, 2019 20 hours ago, skyundersea said: also need to know if is possible to add Visual option to manner PK system, when ppl kill someone it show Option i choose! 1 hour ago, AnnieRuru said: prontera,157,180,4 script Option Master 4_DOG01,{ setoption Option_Flying, true; sleep2 1000; setoption Option_Flying, false; } no idea what's this means This should means on PvP enabled map? When player A kill player B, Show effect xxx on player A. But what is "manner"? Side note : Why can't I delete code box (and content of code box) on Android chrome? And it's same with quote box! Quote Share this post Link to post Share on other sites
0 skyundersea 0 Posted March 17, 2019 11 hours ago, AnnieRuru said: no idea what's this means manner system is PK system at conf/misc.conf is there any script to activate a "option effect" when people PK? 10 hours ago, utofaery said: prontera,157,180,4 script Option Master 4_DOG01,{ setoption Option_Flying, true; sleep2 1000; setoption Option_Flying, false; } i can use this with OnPCKill to activate option? Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted March 18, 2019 (edited) need source modification plugin to do this #include "common/hercules.h" #include "map/pc.h" #include "map/battle.h" #include "plugins/HPMHooking.h" #include "common/HPMDataCheck.h" HPExport struct hplugin_info pinfo = { "pk_showeffect", SERVER_TYPE_MAP, "x_O", HPM_VERSION, }; int battle_check_target_post( int retVal, struct block_list *src, struct block_list *target, int flag ) { struct block_list *s_bl = src, *t_bl = target; if ( (t_bl = battle->get_master(target)) == NULL ) t_bl = target; if ( (s_bl = battle->get_master(src)) == NULL ) s_bl = src; if ( s_bl->type == BL_PC && t_bl->type == BL_PC && (flag & BCT_ENEMY) == BCT_ENEMY && retVal == 1 ) clif->specialeffect( s_bl, 548, AREA ); // EF_RED_HIT return retVal; } HPExport void plugin_init (void) { addHookPost( battle, check_target, battle_check_target_post ); } player will blink with red effect when hitting another player yes, possible, setoption, specialeffect, sc_start ... you name it you just need some source modification knowledge to do it Edited March 19, 2019 by AnnieRuru Quote Share this post Link to post Share on other sites
0 skyundersea 0 Posted March 18, 2019 17 hours ago, AnnieRuru said: need source modification plugin to do this #include "common/hercules.h" #include "map/pc.h" #include "map/battle.h" #include "plugins/HPMHooking.h" #include "common/HPMDataCheck.h" HPExport struct hplugin_info pinfo = { "pk_showoption", SERVER_TYPE_MAP, "x_O", HPM_VERSION, }; int battle_check_target_post( int retVal, struct block_list *src, struct block_list *target, int flag ) { struct block_list *s_bl = src, *t_bl = target; if ( (t_bl = battle->get_master(target)) == NULL ) t_bl = target; if ( (s_bl = battle->get_master(src)) == NULL ) s_bl = src; if ( s_bl->type == BL_PC && t_bl->type == BL_PC && (flag & BCT_ENEMY) == BCT_ENEMY && retVal == 1 ) clif->specialeffect( s_bl, 548, AREA ); // EF_RED_HIT return retVal; } HPExport void plugin_init (void) { addHookPost( battle, check_target, battle_check_target_post ); } player will blink with red effect when hitting another player yes, possible, setoption, specialeffect, sc_start ... you name it you just need some source modification knowledge to do it Thank you again Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted March 19, 2019 (edited) not very satisfy with my previous attempt, so redo again with *hateffect #include "common/hercules.h" #include "map/pc.h" #include "map/battle.h" #include "common/timer.h" #include "plugins/HPMHooking.h" #include "common/HPMDataCheck.h" HPExport struct hplugin_info pinfo = { "pk_showeffect", SERVER_TYPE_MAP, "0.2", HPM_VERSION, }; int hateffect_timerid = INVALID_TIMER; int hateffect_countdown( int tid, int64 tick, int id, intptr data ) { struct map_session_data *sd = map->id2sd(id); if ( sd != NULL ) clif->hat_effect_single( &sd->bl, 27, false ); hateffect_timerid = INVALID_TIMER; return 0; } int battle_check_target_post( int retVal, struct block_list *src, struct block_list *target, int flag ) { struct block_list *s_bl = src, *t_bl = target; if ( (t_bl = battle->get_master(target)) == NULL ) t_bl = target; if ( (s_bl = battle->get_master(src)) == NULL ) s_bl = src; if ( s_bl->type == BL_PC && t_bl->type == BL_PC && (flag & BCT_ENEMY) == BCT_ENEMY && retVal == 1 ) { if ( hateffect_timerid != INVALID_TIMER ) { timer->delete( hateffect_timerid, hateffect_countdown ); hateffect_timerid = INVALID_TIMER; } hateffect_timerid = timer->add( timer->gettick() + battle->bc->prevent_logout, hateffect_countdown, ((struct map_session_data*)s_bl)->bl.id, 0 ); clif->hat_effect_single( s_bl, 27, true ); } return retVal; } HPExport void plugin_init (void) { addHookPost( battle, check_target, battle_check_target_post ); } Edited March 19, 2019 by AnnieRuru 1 skyundersea reacted to this Quote Share this post Link to post Share on other sites
Hi guys,
i'm here to make a request if its possible
I need a visual item at shoes slot that make character float a little and increase speed by some %,
also need to know if is possible to add Visual option to manner PK system, when ppl kill someone it show Option i choose!
thank you !
Share this post
Link to post
Share on other sites