@pk patch v1.1

is this compatible also with rathena? since same coding structure

 
Last edited by a moderator:
Why use @pk? I thought we have

killable: "Make your character killable."
why not just make killable an alias?

Code:
aliases: {	killable: ["pk"]	mobinfo: ["monsterinfo", "mi"]	iteminfo: ["ii"]	time: ["date", "serverdate", "servertime"]	autotrade: ["at"]	help: ["h"]	jumpto: ["goto", "warpto"]	mount: ["mountpeco"]	who: ["whois"]	npctalk: ["npctalkc"]	gvgon: ["gpvpon"]	gvgoff: ["gpvpoff"]	jobchange: ["job"]	load: ["return"]	warp: ["rura", "mapmove"]	dye: ["ccolor"]	hairstyle: ["hstyle"]	haircolor: ["hcolor"]	monster: ["spawn"]	blvl: ["lvup", "blevel", "baselvl", "baselvup", "baselevel", "baselvlup"]	jlvl: ["jlevel", "joblvl", "joblvup", "joblevel", "joblvlup"]	glvl: ["glevel", "guildlvl", "guildlvup", "guildlevel", "guildlvlup"]	resetstat: ["streset"]	resetskill: ["skreset"]	allskill: ["allskills", "skillall", "skillsall"]	allstats: ["allstat", "statall", "statsall"]	ban: ["banish"]	unban: ["unbanish"]	unjail: ["discharge"]	homlevel: ["hlvl", "hlevel", "homlvl", "homlvup"]	homevolution: ["homevolve"]	mutearea: ["stfu"]	monsterignore: ["battleignore"]	raise: ["revive"]	kill: ["die"]	guildstorage: ["gstorage"]	accinfo: ["accountinfo"]	itemreset: ["clearinventory"]	channel: ["main"]}
 
Bump.. getting error while compiling

Code:
Error	3	error C2039: 'flag' : is not a member of 'map_interface'        \src\map\atcommand.c	4424	1	map-server
Error	4	error C2039: 'flag' : is not a member of 'map_interface'	\src\map\battle.c	6704	1	map-server
Error	5	error C2039: 'flag' : is not a member of 'map_interface'	\src\map\battle.c	6776	1	map-server
 
Bump.. getting error while compiling

Error 3 error C2039: 'flag' : is not a member of 'map_interface' \src\map\atcommand.c 4424 1 map-server
Error 4 error C2039: 'flag' : is not a member of 'map_interface' \src\map\battle.c 6704 1 map-server
Error 5 error C2039: 'flag' : is not a member of 'map_interface' \src\map\battle.c 6776 1 map-server

got this error too

 
@CraftNCheez This patch was written many years ago and was already outdated.

Try this solution, tho I haven't tried it to run:

1)
On this line find:

+ if( map[sd->bl.m].flag.pvp || map[sd->bl.m].flag.gvg || map[sd->bl.m].flag.gvg_castle || map[sd->bl.m].flag.gvg_dungeon ) {


and replace it with:

+ if (map->list[sd->bl.m].flag.pvp || map->list[sd->bl.m].flag.gvg || map->list[sd->bl.m].flag.gvg_castle || map->list[sd->bl.m].flag.gvg_dungeon) {



2)
On this line find:

+ if( map[m].flag.pvp && sd->state.pk_mode && flag&BCT_ENEMY && s_bl->type != BL_MOB )


and replace it with:

+ if( map->list[m].flag.pvp && sd->state.pk_mode && flag&BCT_ENEMY && s_bl->type != BL_MOB )




3)
On this line find:

+ else if( map[m].flag.pvp && sd->state.pk_mode && t_bl->type != BL_MOB )


and replace it with:

Code:
+				else if( map->list[m].flag.pvp && sd->state.pk_mode && t_bl->type != BL_MOB )
 
@CraftNCheez This patch was written many years ago and was already outdated.

Try this solution, tho I haven't tried it to run:

1)
On this line find:

+ if( map[sd->bl.m].flag.pvp || map[sd->bl.m].flag.gvg || map[sd->bl.m].flag.gvg_castle || map[sd->bl.m].flag.gvg_dungeon ) {


and replace it with:

+ if (map->list[sd->bl.m].flag.pvp || map->list[sd->bl.m].flag.gvg || map->list[sd->bl.m].flag.gvg_castle || map->list[sd->bl.m].flag.gvg_dungeon) {



2)
On this line find:

+ if( map[m].flag.pvp && sd->state.pk_mode && flag&BCT_ENEMY && s_bl->type != BL_MOB )


and replace it with:

+ if( map->list[m].flag.pvp && sd->state.pk_mode && flag&BCT_ENEMY && s_bl->type != BL_MOB )




3)
On this line find:

+ else if( map[m].flag.pvp && sd->state.pk_mode && t_bl->type != BL_MOB )


and replace it with:

+ else if( map->list[m].flag.pvp && sd->state.pk_mode && t_bl->type != BL_MOB )

I recently updated the plugin: https://github.com/dastgir/HPM-Plugins/blob/master/src/plugins/%40pk.c

 
Hello everyone, is this the one that is same settings with malufett from rAthena? Can someone update this?

 
Back
Top