Samuel
-
Content Count
397 -
Joined
-
Last visited
-
Days Won
20
Posts posted by Samuel
-
-
Hello Everyone!
Just saw this source when browsing the web. Although I believe there is already a script that utilizes this, I tried to convert it into a plugin (for self study purposes)
What does this plugin do?
//===== Description: =========================================//= Shows map name upon entering//= Uses txt database where in you can edit what will show for//= a certain map -> see map_desc.txt//= @reloadmapdesc - reloads map_name_desc.txt//= With ability to customized color and font size//===== Credits: =============================================//= [Cydh] - rAthena//============================================================Known bug: At login, the announcement is twice.. Still finding a way to correct it though..
Enjoy!
-
-
hmmm but how to make this charm like a food buff..
for example:
i get apple that gives +5 Damage to demi-human for 5 minutes Duration..
I see, you want to set bonus with certain duration and conditions, just saw rathena's script command section and it comes handy, i think it's better to make a pull request of it rather than making it a plugin, will try to do so as it's a little complicated one.
Hello everyone!
Just saw this topic and just gave a try to make a mapflag plugin for it..
//===== Description: =========================================
//= Disable Homunculus in a certain map
//===== Usage: ===============================================
//= alberta <tab> mapflag <tab> nohomunc
//============================================================
sir samuel is it possible for you to convert this Bonus_Script by Cydh into Plugin?...
Coffee for you
why not use the charm plugin instead?
>
Hello everyone!
Just saw this topic and just gave a try to make a mapflag plugin for it..
//===== Description: =========================================
//= Disable Homunculus in a certain map
//===== Usage: ===============================================
//= alberta <tab> mapflag <tab> nohomunc
//============================================================
Any by chance for rAthena emulator.
rathena doesn't have a plugin feature. but this could be converted to a patch,
Well you make .patch for rAthena please?
Hmmm, as of now I only support Herc/RagEmu but will try to do so when I'm free and motivated to do so..
-
Hello everyone!
Just saw this topic and just gave a try to make a mapflag plugin for it..
//===== Description: =========================================
//= Disable Homunculus in a certain map
//===== Usage: ===============================================
//= alberta <tab> mapflag <tab> nohomunc
//============================================================sir samuel is it possible for you to convert this Bonus_Script by Cydh into Plugin?...
Coffee for youwhy not use the charm plugin instead?
Hello everyone!
Just saw this topic and just gave a try to make a mapflag plugin for it..
//===== Description: =========================================
//= Disable Homunculus in a certain map
//===== Usage: ===============================================
//= alberta <tab> mapflag <tab> nohomunc
//============================================================Any by chance for rAthena emulator.
rathena doesn't have a plugin feature. but this could be converted to a patch,
-
Hello everyone!
Just saw this topic and just gave a try to make a mapflag plugin for it..
//===== Description: =========================================
//= Disable Homunculus in a certain map
//===== Usage: ===============================================
//= alberta <tab> mapflag <tab> nohomunc
//============================================================ -
Samuel it says you can't receive PMs on the forums.
Anyway : http://pastebin.com/TUu6jj4j
I'll try to delete some messages lol..
hmm, with regards to the fix, I don't encounter a map crash when logging out when buffs are active. Can you specify how to reproduce the crash?
-
Works like a charm, there were 2 warnings in line 55 and 151 I think but they were easily fixable.
Thanks for sharing.
What's the warming you're getting?
I have compiled the plugin with Visual Studio 2011 and compiled with no warnings.
Please tell us so we could fix it.
-
hmm, there you go, didn't know what happened with the link, lol
-
Hello everyone!
Updated Annie's plugin and applied Functor's bug fix.
With this plugin, it will display party member's special buffs in party list (Alt+Z)
Buffs are:
B - Blessing
A - Agility Up
F - Full Chemical Protection
S - Soul Link
+ - Devotion
Look like
[BAFS+]Player name
See original : Topic
Enjoy!
-
Hello everyone!
Saw this feature in RagEmu so I adapted their code and turned it into a plugin.
With this plugin enabled, custom commands that were created using bindcmd will be shown when you use @command depending on the gm level the account has if that custom command is available for his level.
Enjoy!
Credits to: RagEmu
-
are you encountering this error with just hercules? because i think it's client side
-
the best thing to do i think is find the last client where you can still hear the sound effect, then maybe we could ask Neo to make a patch or plugin for Nemo to add it again to newer clients
-
dastgir updated the plugin, try it!
tried it but it's not working.. well he said in his commit that it's in trial..
try this:
#include "common/hercules.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include "common/HPMi.h" #include "common/memmgr.h" #include "common/mmo.h" #include "common/nullpo.h" #include "common/strlib.h" #include "common/socket.h" #include "map/clif.h" #include "map/map.h" #include "map/pc.h" #include "plugins/HPMHooking.h" #include "common/HPMDataCheck.h" HPExport struct hplugin_info pinfo = { "Chat TimeStamp", SERVER_TYPE_MAP, "1.0", HPM_VERSION, }; const char *clif_process_chat_message_post(const char *retVal___, struct map_session_data *sd, const struct packet_chat_message *packet, char *out_buf, int out_buflen) { char prefix[CHAT_SIZE_MAX + NAME_LENGTH + 3 + 1]; time_t t; int textlen = 0, namelen = 0; nullpo_ret(sd); if (retVal___ == NULL) return NULL; #if PACKETVER >= 20151001 // Packet doesn't include a NUL terminator textlen = packet->packet_len - 4; #else // PACKETVER < 20151001 // Packet includes a NUL terminator textlen = packet->packet_len - 4 - 1; #endif // PACKETVER > 20151001 safestrncpy(out_buf,packet->message,textlen+1); t = time(NULL); strftime(prefix, 10, "[%H:%M] ", localtime(&t)); strcat(prefix, out_buf); safestrncpy(out_buf,prefix,textlen+10); retVal___ = out_buf; return retVal___; } HPExport void plugin_init (void) { addHookPost(clif, process_chat_message, clif_process_chat_message_post); }
Edit: It's working as I have tested it, the only thing that bothers me is this warning I get when I compile with Visual Studio 2011
warning C4090: 'function' : different 'const' qualifiers
Edit2: how to use code with code select?
-
yeah, just saw the code and found out that it works with guild and party chat only for now..
hmm, will try to do a plugin for normal chat.
-
I think this is the plugin you need to use for this..
https://github.com/dastgir/HPM-Plugins/blob/master/src/plugins/chat_timestamp.c
-
-
@@monkeydlufy for now it's configured to show map name, i'll update it to add an option for custom name
monkeydlufy reacted to this -
try using my bind @go script
http://herc.ws/board/topic/11136-samuels-script-collections/#entry69360
monkeydlufy reacted to this -
-
using player variable @message$ i suppose, what's the error you're getting?
-
depends on your setting here: conf/battle/items.conf
// Unequip the equipments that has disabled by map_zone_db.conf ?// 0 : disabled equipments and cards are nullify (official)// 1 : disabled equipments are unequip, disabled cards are nullify// 2 : disabled equipments are nullify, disabled cards will caused the equipment to unequip// 3 : disabled equipments are unequip, disabled cards will caused the equipment to unequip (1+2)unequip_restricted_equipment: 0 -
@@Litro isn't the use of global variable server extensive? specially if you're running a large populated server.
-
yes, this is possible to script
-
Disable Certain Items on Certain Map
in Script Support
Posted · Edited by Samuel
the second one is i think through a mapflag, hmm or use loadevents wherein upon entering that map and they have equipped armor, remove them