Jump to content

Samuel

Members
  • Content Count

    397
  • Joined

  • Last visited

  • Days Won

    20

Posts posted by Samuel


  1. Is it possible to disable certain item ids or item slots per map?

     

    Example:

    On the map prt_fild08, I want to disable the weapon Main Gauche [4] (item id 1208) from being equipped.

    And on the map ama_fild01, I want to disable armor (EQP_ARMOR) from being equipped.

     

    Is any of this possible?

     

    Thanks.

    Your first request can be done via map zone conf, create a new zone where the items u want to be disabled is listed and apply that zone to your desired maps

     

    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


  2. 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) :D

     

    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!

     

    mapannounce.zip


  3. 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. :D

     

     

     

     

     

     

     

    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

    //============================================================

     

    Plugin Link

    sir samuel is it possible for you to convert this Bonus_Script by Cydh into Plugin?...

     

    Coffee for you  :D  :D  :D  :D 

    1zn4i9z.jpg

     

     

     

    why not use the charm plugin instead?

     

     

    &gt

    ;

     

    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

    //============================================================

     

    Plugin Link

    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? :D

     

     

     

     

    Hmmm, as of now I only support Herc/RagEmu but will try to do so when I'm free and motivated to do so.. :D


  4.  

     

     

    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
    //============================================================

     

    Plugin Link

    sir samuel is it possible for you to convert this Bonus_Script by Cydh into Plugin?...


    Coffee for you  :D  :D  :D  :D 
    1zn4i9z.jpg

     

     

     

    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
    //============================================================

     

    Plugin Link

    Any by chance for rAthena emulator.

     

    rathena doesn't have a plugin feature. but this could be converted to a patch, 


  5. 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.


  6. 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

     

    Link


  7. 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


  8. 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? :D


  9. @@Ranz

     

    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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.