• Content count

  • Joined

  • Last visited

  • Days Won


Easycore last won the day on May 11

Easycore had the most liked content!


About Easycore

  • Rank
    Advanced Member

Recent Profile Visitors

1533 profile views
  1. You need to make a new clif->specialeffect function or simply use a sc_start, and when that status ends trigger a clif->specialeffect.
  2. hand1 = sd->status.inventory[sd->equip_index[EQI_HAND_L]].nameid; hand2 = sd->status.inventory[sd->equip_index[EQI_HAND_R]].nameid;
  3. See Note 3: // Note 3: Value is a bit field. If no description is given, // assume unit types (1: Pc, 2: Mob, 4: Pet, 8: Homun, 16: Mercenary)
  4. Configure your attack_attr_none in battle.conf: https://github.com/HerculesWS/Hercules/blob/master/conf/map/battle/battle.conf#L140
  5. Why not remove the "source releases" section then?
  6. Tonto culiao, mándame un PM. x'D
  7. Which client are you using?
  8. https://github.com/dastgir/HPM-Plugins/tree/master/src/plugins
  9. Add a custom mapflag http://herc.ws/wiki/Adding_New_Mapflag And finally open battle.c, find: switch (t_bl->type) { case BL_MOB: // Source => PC, Target => MOB if (pc_has_permission(s_sd, PC_PERM_DISABLE_PVM)) And replace for: switch (t_bl->type) { case BL_MOB: // Source => PC, Target => MOB if (pc_has_permission(s_sd, PC_PERM_DISABLE_PVM) || map->list[m].flag.yourcustommapflag)
  10. npc->event_doall_id( "OnTradeEvent", sd->bl.id ); npc->event_doall_id( "OnTradeEvent", tsd->bl.id ); // Save char RID of exchanger into @trader variable pc->setreg(sd,script->add_str("@trader"),tsd->status.account_id); pc->setreg(tsd,script->add_str("@trader"),sd->status.account_id); - script TradeTest FAKE_NPC,{ OnTradeEvent: mes "Has exchanged with the player "+rid2name(@trader); close; }
  11. Open src/map/trade.c, find: // save both player to avoid crash: they always have no advantage/disadvantage between the 2 players if (map->save_settings&1) { chrif->save(sd,0); chrif->save(tsd,0); } Add below: npc->event_doall_id( "OnTradeEvent", sd->bl.id ); npc->event_doall_id( "OnTradeEvent", tsd->bl.id ); Test NPC: - script TradeTest FAKE_NPC,{ OnTradeEvent: mes "Hello, world!"; close; }
  12. 1. You're using a npctimer, so there aren't players attached. getmapxy("<variable for map name>", <variable for x>, <variable for y>, <type>{, "<search parameter>"}) 2. You need to specific the search parameter, in this case the monster GID, if you don't specific this, getmapxy will take as PC Character invoked. 3. Also, you've used PC variables (@). 4. Replace .@GID temporal variable for .GID permanent variable (you need to store this). 5. For HP/SP see 'getunitdata'.