Jump to content

  •  

Sunzuki

Member Since 29 Apr 2014
Offline Last Active Jul 03 2014 01:49 AM
-----

Topics I've Started

error when compiling autoatk but not when compiling hooking

30 June 2014 - 11:22 PM

1> ------ Build started new: Project: auto attack, Configuration: Debug Win32 ------ 
1> C:  Program Files (x86)  MSBuild  Microsoft.Cpp  v4.0  Platforms  Win32  Microsoft.Cpp.Win32.Targets (518.5): error MSB8008: The specified Plattformtoolset (v110) is not installed or invalid. Make sure that a supported PlatformToolset value was selected. 
========== Rebuild All: 0 successful, error at 1, 0 skipped ==========
 
 
can someone help me on this? if you need more information ask please. 
I assume it's the autoatk plugin from http://herc.ws/board...ugin-HPMHooking worked. I tried both but it didn't work. 
However HPMHooking works
 
1> ------ Build started new: Project: plugin-HPMHooking, Configuration: Debug Win32 ------
1> HPMHooking.c 
1> Library "plugin-HPMHooking  Debug  HPMHooking.lib" and object "plugin-HPMHooking  Debug  HPMHooking.exp" be created. 
1> plugin-HPMHooking.vcxproj -> Z:  server  htdocs  website  server  vcproj-10  ..  plugins  HPMHooking.dll 
========== Rebuild All: 1 successful, skipped error at 0, 0 ==========

 

basically I just selected the hercules projectmap and added autoatk from existing project

sql and txt

30 June 2014 - 12:25 AM

when I use sql item db can I delete itemdb.txt?


from rA to hercules @autoattack

22 June 2014 - 02:12 PM

Can someone convert this?

 

http://rathena.org/b...297-autoattack/

 

Index: src/map/atcommand.c===================================================================--- src/map/atcommand.c	(revision 17103)+++ src/map/atcommand.c	(working copy)@@ -8563,10 +8563,66 @@ 	} 	return 0; }+static int buildin_autoattack_sub(struct block_list *bl,va_list ap)+{+	int *target_id=va_arg(ap,int *);+	*target_id = bl->id;+	return 1;+}+void autoattack_motion(struct map_session_data* sd)+{+	int i, target_id;+	for(i=0;i<=9;i++)+	{+		target_id=0;+		map_foreachinarea(buildin_autoattack_sub, sd->bl.m, sd->bl.x-i, sd->bl.y-i, sd->bl.x+i, sd->bl.y+i, BL_MOB, &target_id);+		if(target_id)+		{+			unit_attack(&sd->bl,target_id,1);+			break;			+		}+		target_id=0;+	}+	if(!target_id)+	{+		unit_walktoxy(&sd->bl,sd->bl.x+(rand()%2==0?-1:1)*(rand()%10),sd->bl.y+(rand()%2==0?-1:1)*(rand()%10),0);+	}+	return;+}+int autoattack_timer(int tid, unsigned int tick, int id, intptr_t data)+{+	struct map_session_data *sd=NULL; +	sd=map_id2sd(id);+	if(sd==NULL)+		return 0;+	if(sd->sc.option & OPTION_AUTOATTACK)+	{+		autoattack_motion(sd);+		add_timer(gettick()+2000,autoattack_timer,sd->bl.id,0);+	}+	return 0;+}+ACMD_FUNC(autoattack)+{+	nullpo_retr(-1, sd);+	if (sd->sc.option & OPTION_AUTOATTACK)+	{+		clif_displaymessage(fd, "Auto-attack OFF");+		sd->sc.option &= ~OPTION_AUTOATTACK;+		unit_stop_attack(&sd->bl);+	}else+	{+		clif_displaymessage(fd, "Auto-attack ON");+		sd->sc.option |= OPTION_AUTOATTACK;+		add_timer(gettick()+200,autoattack_timer,sd->bl.id,0);+	}+	clif_changeoption(&sd->bl);+	return 0;+} ACMD_FUNC(accinfo) { 	char query[NAME_LENGTH];-+	 	if (!message || !*message || strlen(message) > NAME_LENGTH ) { 		clif_displaymessage(fd, msg_txt(1365)); // Usage: @accinfo/@accountinfo <account_id/char name> 		clif_displaymessage(fd, msg_txt(1366)); // You may search partial name by making use of '%' in the search, ex. "@accinfo %Mario%" lists all characters whose name contains "Mario".@@ -8828,6 +8884,7 @@ 	 * Command reference list, place the base of your commands here 	 **/ 	AtCommandInfo atcommand_base[] = {+		ACMD_DEF(autoattack), 		ACMD_DEF2("warp", mapmove), 		ACMD_DEF(where), 		ACMD_DEF(jumpto),Index: src/map/status.h===================================================================--- src/map/status.h	(revision 17103)+++ src/map/status.h	(working copy)@@ -1489,6 +1489,7 @@ 	// compound constants 	OPTION_DRAGON    = OPTION_DRAGON1|OPTION_DRAGON2|OPTION_DRAGON3|OPTION_DRAGON4|OPTION_DRAGON5, 	OPTION_MASK      = ~OPTION_INVISIBLE,+	OPTION_AUTOATTACK   = 0x10000000, };  //Defines for the manner system [Skotlex]

thanks to you


General Item Type Script

23 May 2014 - 12:38 PM

Hello,

 

 

how is it possible to add an item script for a complete item type

for example: all shoes +30% movement speed

without to actually giving each shoe 30% move speed?

 

(:


Novice immun to other Classes

17 May 2014 - 01:17 PM

Hello,

 

can someone gift me a source edit where Novices and Babies (0 & 4023) are immun to Skills and Auto Attacks (like they are using @battleignore)? (Thtat way these classes can check out the PvP Room without getting killed)

But not immun to autoattacks by the given classes. So novices can still PvP each other. and I can run last novice standing etc.

 

Thank youuu :D :D