Jump to content

  •  

Grimmjow

Member Since 28 Jan 2016
Offline Last Active May 28 2017 05:47 PM
-----

Topics I've Started

Hercules emulator

02 October 2016 - 07:01 PM

The last 5 updates to the emulator for no reason just crash!

The picture freezes and nothing happens!

What is the problem?


Episode 13.3 : El Dicastes

30 September 2016 - 10:26 PM

Asking for help from experts!

 

How can I get what I need based on this:

http://herc.ws/board...isode-timeline/

 

2009.12.23 : Episode 13.3 : El Dicastes ?


The time before a message in game chat

13 July 2016 - 06:47 PM

I want to ask help from experts to adapt code for the latest version of Hercules.

I tried to change, but not enough knowledge in src.

Please help.

 

 

Open clif.c
Найти void clif_parse_GlobalMessage(int fd, struct map_session_data* sd)

After:

char *name, *message;
int namelen, messagelen;

Add:

char prefix[255]; // prefix for timestamp [Qwadrat]
time_t t = time(NULL); // time var [Qwadrat]

Continue to find:

// send message to others (using the send buffer for temp. storage)
And to prepend:

// timestamp feature by Qwadrat
strftime(prefix, 10, "[%H:%M] ", localtime(&t));
strcat(prefix,text);
textlen = strlen(prefix)+1;

Further:

// send message to others (using the send buffer for temp. storage)
Replace the original piece of code:

WFIFOHEAD(fd, 8 + textlen);
WFIFOW(fd,0) = 0x8d;
WFIFOW(fd,2) = 8 + textlen;
WFIFOL(fd,4) = sd->bl.id;
safestrncpy((char*)WFIFOP(fd,8), prefix, textlen);
clif_send(WFIFOP(fd,0), WFIFOW(fd,2), &sd->bl, sd->chatID ? CHAT_WOS : AREA_CHAT_WOC);
// send back message to the speaker
//memcpy(WFIFOP(fd,0), RFIFOP(fd,0), RFIFOW(fd,2));-original
memcpy(WFIFOP(fd,4), prefix, textlen); // [Qwadrat]
WFIFOW(fd,0) = 0x8e;
WFIFOW(fd,2) = RFIFOW(fd,2) + 8; // 8 - textlen [Qwadrat]
WFIFOSET(fd, WFIFOW(fd,2));

@emotion @dance @detach/afk @hold @heart

30 April 2016 - 08:37 PM

Hello, I would like to add @emotion @dance @detach/afk @.hold @heart these commands to your server but don't know how could You please help me in this?

Can a full guide to add these commands in atcommand.c ?

 

Thank You very much !!!


1265 - Data truncated for column 'equip_jobs' at row 1

30 April 2016 - 01:24 PM

[Err] 1265 - Data truncated for column 'equip_jobs' at row 1
[Err] REPLACE INTO `item_db` VALUES ('501','Red_Potion','Red Potion','0','50','25','70','0','0','0','0','0','0xFFFFFFFFFFFFFFFF','63','2','0','0','0',NULL,'0','0','0','0','0','0','0',NULL,'0',NULL,'0',NULL,'0','itemheal rand(45,65),0;','','');
[Msg] Finished - Unsuccessfully
--------------------------------------------------
 
Help!