Jump to content

  •  

Gerz

Member Since 21 Apr 2013
Offline Last Active Nov 02 2016 06:33 AM
-----

#65081 Add *pcblockattack *pcblockskill *pcblockchat *pcimmune script commands

Posted by Gerz on 31 October 2015 - 02:41 AM

@AnnieRuru how about this?
 
/** * pcblock <account_id>, <value>, <type> * <value>: 1 = on, 0 = off * <type> can be: *     0 = block move *     1 = block attack *     2 = block skill *     3 = block chat *     4 = immune attack **/BUILDIN(pcblock) {	int id, flag, type;	TBL_PC *sd = NULL;	id = script_getnum(st,2);	flag = script_getnum(st,3);	type = script_getnum(st,4);	if( id )		sd = map->id2sd(id);	else		sd = script->rid2sd(st);	switch( type ) {		case 0: sd->state.blockedmove = flag > 0; break;		case 1: sd->state.blockedattack = flag > 0; break;		case 2: sd->state.blockedskill = flag > 0; break;		case 3: sd->state.blockedchat = flag > 0; break;		case 4: sd->state.monster_ignore = flag > 0; break;	}	return true;}
BUILDIN_DEF(pcblock,"iii"),



#63387 Enabling HighJump on noteleport mapflag

Posted by Gerz on 26 September 2015 - 07:29 PM

if( strcmp(map->list[src->m].name,"pvp_room") != 0 && map->list[src->m].flag.noteleport && !(map->list[src->m].flag.battleground || map_flag_gvg2(src->m)) ) {



#62477 [help] sp healing script

Posted by Gerz on 03 September 2015 - 11:48 AM

:v +rep to me?Attached File  bAddItemSpRate.diff   2.71K   2 downloads

 

 




#62104 callshop/openshop pointing to a trader

Posted by Gerz on 26 August 2015 - 06:58 AM

openshop("shopname"); 

 

:v




#42960 @petinfo command request

Posted by Gerz on 06 September 2014 - 10:44 AM

ACMD(petinfo) {	struct pet_data *pd;		if( !sd->status.pet_id || !sd->pd ) {		clif->message(fd, msg_txt(184)); // Sorry, but you have no pet.		return false;	}		pd = sd->pd;		snprintf(atcmd_output, sizeof(atcmd_output), "Pet name: %s", // Pet Name		pd->pet.name);	clif->message(fd, atcmd_output);		snprintf(atcmd_output, sizeof(atcmd_output), "Intimate: %u", // Intimate		pd->pet.intimate/100);	clif->message(fd, atcmd_output);		snprintf(atcmd_output, sizeof(atcmd_output), "Hungry: %d", // Hungry		pd->pet.hungry);	clif->message(fd, atcmd_output);		return true;}

 

ACMD_DEF(petinfo),

 

You can add more, but valid type here:

 

	int pet_id;	short class_;	short level;	short egg_id;//pet egg id	short equip;//pet equip name_id	short intimate;//pet friendly	short hungry;//pet hungry	char name[NAME_LENGTH];	char rename_flag;



#30999 isequipped() can check same item?

Posted by Gerz on 09 March 2014 - 10:50 AM

if( getequipid(7) == itemid &&  getequipid(8) == itemid ) {

blahblah

}