-
Posts
8 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
SiRoCu's Achievements
Poring (1/15)
0
Reputation
-
Still not work properly when we have the same item ID in the inventory. Is there any other function for delete item in specific item's ID?
-
How can I send notification to my hotmail box from ingame script?
SiRoCu replied to SiRoCu's question in General Support
This is my function in map/script.c Work best with SMTP authentication & mail client on linux box. Useage: sendmail "messages..."; or sendmail("messages..."); ---------------- +Code ---------------- #include<string.h> #include<stdio.h> . . BUILDIN_FUNC(sendmail) { struct npc_data* nd = NULL; const char* str = script_getstr(st,2); if (script_hasdata(st, 3)) nd = npc_name2id(script_getstr(st, 3)); else nd = (struct npc_data *)map_id2bl(st->oid); if (nd != NULL && nd->chat_id) { char message[80]; safesnprintf(message, sizeof(message), "%s", str); char newstr[256]; strcpy(newstr, "echo \""); strcat(newstr, message); strcat(newstr, "\" | mail -s \"Fixed Subject\" [email protected]"); system(newstr); } return SCRIPT_CMD_SUCCESS; } . . BUILDIN_DEF(sendmail,"s?"), -
How can I send notification to my hotmail box from ingame script?
SiRoCu replied to SiRoCu's question in General Support
Thank you to reply. Well, adding email functionality look like the best solution. -
How can I send notification to my hotmail box from ingame script?
SiRoCu replied to SiRoCu's question in General Support
Thank to reply But my server is running on linux box. Need a try. -
How can I send notification to my hotmail box from ingame script?
SiRoCu posted a question in General Support
How can I send some messages to my hotmail box for real-time alert on my mobile from NPC in game when user enter some code into that NPC? Is there a script functions or need to develop and rebuild C source code to do that job? -
Hello all. I'm just download and install rAthena on my linux box last week. The server go well, but I notice in the battle between Pc and NPC when I(Pc) make a hit on NPC the system report that "[NPC Name] receive damage xxx(points)" and when NPC hit me(Pc) the system report is "[NPC Name] make a damage xxx(point)". So it's not in sense, How can I change the report side from Me instead of NPC. Sorry about my english.