[Request] Custom Item Script

skyundersea

New member
Messages
39
Points
0
Github
skyundersea
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 !

 
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 ;)

 
Last edited by a moderator:
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 gladiator
http://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

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

 
also need to know if is possible to add Visual option to manner PK system, when ppl kill someone it show Option i choose!


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!

 
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

 
Last edited by a moderator:
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 :)

 
not very satisfy with my previous attempt, so redo again with *hateffect

Code:
#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 );
}
 
Last edited by a moderator:
Back
Top