Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 03/27/19 in Posts

  1. 1 point
    This is good, thanks to this.
  2. 1 point
    AnnieRuru

    Guild Skill Notification

    static void guild_block_skill(struct map_session_data *sd, int time) { uint16 skill_id[] = { GD_BATTLEORDER, GD_REGENERATION, GD_RESTORE, GD_EMERGENCYCALL }; int i; for (i = 0; i < 4; i++) skill->blockpc_start(sd, skill_id[i], time); } hercules uses skill->blockpc_start and skill->blockpc_end to just set sd->blockskill[skill_id] = true:false; so you can just hook to skill->blockpc_end to display the message for the guild master to display the time left in min:sec, when guild master use the skill, run DIFF_TICK function oh wait this is request section ....
  3. 1 point
    astralprojection

    Trigger OnMobDrop Event

    Is there a way to trigger on ion mob drop a specific item? - scrip itemdrop -1,{ end; OnMobDrop: If(nameid = 601) dispbottom "Monster dropped ^+getitemname(601): end; }
  4. 1 point
    the cards can be done by retrieve the card ID from `item_db` SQL table, its not that hard to do https://github.com/AnnieRuru/Release/blob/master/plugins/addrefinedrop/addrefinedrop_0.2.c btw, this is simple stuffs .... PS: when testing, I turned on autoloot and using custom identifier script
  5. 1 point
    AnnieRuru

    MVP Hunter Points w/ Rank

    I do have my own MVP ranking script https://github.com/AnnieRuru/Release/tree/master/scripts/Games %26 Events/MVP Rank usually people do this simply with if ( getmonsterinfo( killedrid, MOB_MVPEXP ) ) { but since you have 3 different modes, you also have to list out which MVP is easy/moderate/hard a quick sql query to list out MVP in your server select * from mob_db where mexp > 0; note its different in renewal and pre-renewal Renewal -> http://herc.ws/board/topic/16631-npc-mvp-invasion/?do=findComment&comment=90910 Pre-renewal -> https://github.com/rathena/rathena/blob/master/npc/custom/events/mvp_ladder.txt#L232-L270 this one needs achievement system ... its already in my top-priority todo list once its out, I can also add *settitleid script command and so on ... and before you forget, the OnNPCKillEvent cannot run on monsters with event labels http://herc.ws/board/topic/15991-onnpckillevent-changes/ so it couldn't add the kills like bio-lab MVPs , instance MVPs and so on that pull request got stuck ... oh PS: pajodex is currently busy in real life, or so I heard
  6. 1 point
    AnnieRuru

    [Request] Custom Item Script

    not very satisfy with my previous attempt, so redo again with *hateffect #include "common/hercules.h" #include "map/pc.h" #include "map/battle.h" #include "common/timer.h" #include "plugins/HPMHooking.h" #include "common/HPMDataCheck.h" HPExport struct hplugin_info pinfo = { "pk_showeffect", SERVER_TYPE_MAP, "0.2", HPM_VERSION, }; int hateffect_timerid = INVALID_TIMER; int hateffect_countdown( int tid, int64 tick, int id, intptr data ) { struct map_session_data *sd = map->id2sd(id); if ( sd != NULL ) clif->hat_effect_single( &sd->bl, 27, false ); hateffect_timerid = INVALID_TIMER; return 0; } int battle_check_target_post( int retVal, struct block_list *src, struct block_list *target, int flag ) { struct block_list *s_bl = src, *t_bl = target; if ( (t_bl = battle->get_master(target)) == NULL ) t_bl = target; if ( (s_bl = battle->get_master(src)) == NULL ) s_bl = src; if ( s_bl->type == BL_PC && t_bl->type == BL_PC && (flag & BCT_ENEMY) == BCT_ENEMY && retVal == 1 ) { if ( hateffect_timerid != INVALID_TIMER ) { timer->delete( hateffect_timerid, hateffect_countdown ); hateffect_timerid = INVALID_TIMER; } hateffect_timerid = timer->add( timer->gettick() + battle->bc->prevent_logout, hateffect_countdown, ((struct map_session_data*)s_bl)->bl.id, 0 ); clif->hat_effect_single( s_bl, 27, true ); } return retVal; } HPExport void plugin_init (void) { addHookPost( battle, check_target, battle_check_target_post ); }
×
×
  • Create New...

Important Information

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