Jump to content

Cydh

Developer
  • Posts

    2285
  • Joined

  • Last visited

  • Days Won

    77

Everything posted by Cydh

  1. rADev is working on that Achievement Feature. @Aleos leads for its development
  2. Can not. Maybe you can use makeitem3. But, it's kinda interesting to put value range.
  3. try this maybe src/map/skill.c | 10 ++++++++++ src/map/skill.h | 1 + 2 files changed, 11 insertions(+) diff --git a/src/map/skill.c b/src/map/skill.c index db8cc49..23c3a4c 100755 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -13500,6 +13500,7 @@ int skill_unit_onplace_timer(struct skill_unit *unit, struct block_list *bl, uns sg->limit=DIFF_TICK(tick,sg->tick)+1500; //Target will be stopped for 3 seconds sc_start(ss,bl,SC_STOP,100,0,skill_get_time2(sg->skill_id,sg->skill_lv)); + skill_someoneStepOnMyTrap(ss, bl); } break; @@ -21184,6 +21185,15 @@ static void skill_db_destroy(void) { skill_db = NULL; } +void skill_someoneStepOnMyTrap(struct block_list *src, struct block_list *bl) { + if (!bl || !src) + return; + if (src == bl || src->type != BL_PC || src->m != bl->m) + return; + /* clif_viewpoint need id, and it's bad! */ + clif_viewpoint(BL_CAST(BL_PC, src), src->id, 0, bl->x, bl-> y, rnd()%255, 0xFF0000); +} + /*=============================== * DB reading. * skill_db.txt diff --git a/src/map/skill.h b/src/map/skill.h index a5df73b..df669d8 100644 --- a/src/map/skill.h +++ b/src/map/skill.h @@ -2135,6 +2135,7 @@ void skill_combo_toogle_inf(struct block_list* bl, uint16 skill_id, int inf); void skill_combo(struct block_list* src,struct block_list *dsrc, struct block_list *bl, uint16 skill_id, uint16 skill_lv, int tick); void skill_reveal_trap_inarea(struct block_list *src, int range, int x, int y); +void skill_someoneStepOnMyTrap(struct block_list *src, struct block_list *bl); #ifdef ADJUST_SKILL_DAMAGE /// Skill Damage target
  4. This feature is merged and as rAthena's feature since Git Hash: e59cdfff903c1f7ea920858eb62a6ce1b31db9c6 SEE ALSO: For Item Random Option: getitem3, getitembound3, rentitem3, makeitem3, delitem3, countitem3 There are 2 new db files for this feature. item_randomopt_group.txt where you defines the group (that will be used later in mob_drop) with its entries and some rates. mob_drop.txt (whew, actually I want remove drops from mob_db.txt 'in previous life'), this is your workplace if you want to add drop item with the random option group, just like iRO's Crimson Weapon! How to add Custom Again, here my custom while testing this just now (Good! I create this feature only for 2 days) Don't forget add the item random option group to db/const.txt just like when you add item group. RDMOPTG_MaxHP 2 RDMOPTG_MaxSP 3 Then defines the group entries in db/[pre-]re/item_randomopt_group.txt // MaxHP RDMOPTG_MaxHP,100,RDMOPT_VAR_MAXHPAMOUNT,100,0 RDMOPTG_MaxHP,60,RDMOPT_VAR_MAXHPAMOUNT,150,0 RDMOPTG_MaxHP,30,RDMOPT_VAR_MAXHPAMOUNT,200,0 RDMOPTG_MaxHP,12,RDMOPT_VAR_MAXHPAMOUNT,300,0 RDMOPTG_MaxHP,6,RDMOPT_VAR_MAXHPAMOUNT,400,0 RDMOPTG_MaxHP,3,RDMOPT_VAR_MAXHPAMOUNT,600,0,RDMOPT_VAR_HPACCELERATION,10,0 RDMOPTG_MaxHP,2,RDMOPT_VAR_MAXHPAMOUNT,600,0,RDMOPT_VAR_HPACCELERATION,10,0,RDMOPT_VAR_MAXHPPERCENT,5,0 RDMOPTG_MaxHP,1,RDMOPT_VAR_MAXHPAMOUNT,600,0,RDMOPT_VAR_HPACCELERATION,20,0,RDMOPT_VAR_MAXHPPERCENT,7,0 // MaxSP RDMOPTG_MaxSP,100,RDMOPT_VAR_MAXSPAMOUNT,50,0 RDMOPTG_MaxSP,60,RDMOPT_VAR_MAXSPAMOUNT,100,0 RDMOPTG_MaxSP,30,RDMOPT_VAR_MAXSPAMOUNT,150,0 RDMOPTG_MaxSP,12,RDMOPT_VAR_MAXSPAMOUNT,250,0 RDMOPTG_MaxSP,6,RDMOPT_VAR_MAXSPAMOUNT,350,0 RDMOPTG_MaxSP,3,RDMOPT_VAR_MAXSPAMOUNT,500,0,RDMOPT_VAR_SPACCELERATION,10,0 RDMOPTG_MaxSP,2,RDMOPT_VAR_MAXSPAMOUNT,500,0,RDMOPT_VAR_SPACCELERATION,10,0,RDMOPT_VAR_MAXSPPERCENT,5,0 RDMOPTG_MaxSP,1,RDMOPT_VAR_MAXSPAMOUNT,500,0,RDMOPT_VAR_SPACCELERATION,20,0,RDMOPT_VAR_MAXSPPERCENT,7,0 Now, add for monster's drop in db/[pre-]re/mob_drop.txt // Additional Valkyrja's Shield as normal drop for Valkyrie Randgris 1751,2115,2000,RDMOPTG_MaxHP 1751,2115,2000,RDMOPTG_MaxSP // Additional Valkyrian Armor and Valkyrian Shoes as MVP reward for Valkyrie Randgris 1751,2357,1000,RDMOPTG_MaxHP,2 1751,2421,1000,RDMOPTG_MaxSP,2 OK, you can test it. Screen Shots Links Branch Initial release commit and its Diff Changelogs and its Diff or download the file Thanks for people who gave information, MrDiablo (what's again his account here?), Oda (that iRO's CM), Secrets (for the Random option system and make me wait and think 'what will he does about the rest item random option expansion?'), and Allanon (from OpenKore, for confirming a thing for me).
  5. Thank you guys for using this. Any feedback are welcome, and you can post your in-game SS while using the channel message maybe
  6. It's mean, conflicts in ur file after merger. It's common when u have modified file. You can read also Resolving a merge conflict from the command line Resolving Conflicts How to resolve merge conflicts in Git? But from me, I'll explain a little. The conflicted lines always have these information like this <<<<<<< cb279a724341d27700e09b92eee766df77de0ede // These are codes below are from rAthena/rAthena@cb279a72 /* random option attributes */ export_constant(ROA_ID); export_constant(ROA_VALUE); export_constant(ROA_PARAM); export_constant(CARD0_FORGE); export_constant(CARD0_CREATE); export_constant(CARD0_PET); export_constant(STOR_MODE_NONE); export_constant(STOR_MODE_GET); export_constant(STOR_MODE_PUT); ======= // This code below are from my 'current' source, I added this line script_set_constant("bNoEleStone",SP_NO_ELESTONE,false); >>>>>>> 17718a6e36db0ef3dfcf5247bc5fe2a88e045b85 So, if I want to conflict that lines above, become /* random option attributes */ export_constant(ROA_ID); export_constant(ROA_VALUE); export_constant(ROA_PARAM); export_constant(CARD0_FORGE); export_constant(CARD0_CREATE); export_constant(CARD0_PET); export_constant(STOR_MODE_NONE); export_constant(STOR_MODE_GET); export_constant(STOR_MODE_PUT); script_set_constant("bNoEleStone",SP_NO_ELESTONE,false); Idk what the hell were you doing, maybe you 'cut' some lines so the conflicted lines look so terrible.
  7. those 2 bonus will never displayed at that stat window. try hit mobs
  8. Didn't we plan to make this as Xmas Nightmare bundle? From my comment at Pull: 1620#issuecomment-253699196 Sample to use the 'premium' storage conf/inter_server.conf Sample NPC Extra
  9. all support forums becomes QA style (stackoverflow-like, WP AnsPress, WP CM Answer), better you guys learn how to vote and never forget to mark reply as best answer. and because it's as QA, by default, it's sorted by vote, not by date.
  10. ATTENTION: This feature requires Item Random Option System enabled! Just as title said (too lazy to create description for now) Links Branch Initial release commit and its Diff Changelogs and its Diff or download the file *getitem3 <item id>,<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>,<RandomIDArray>,<RandomValueArray>,<RandomParamArray>{,<account ID>}; *getitem3 "<item name>",<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>,<RandomIDArray>,<RandomValueArray>,<RandomParamArray>{,<account ID>}; *getitembound3 <item id>,<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>,<bound type>,<RandomIDArray>,<RandomValueArray>,<RandomParamArray>{,<account ID>}; *getitembound3 "<item name>",<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>,<bound type>,<RandomIDArray>,<RandomValueArray>,<RandomParamArray>{,<account ID>}; *rentitem3 <item id>,<time>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>,<RandomIDArray>,<RandomValueArray>,<RandomParamArray>{,<account_id>}; *rentitem3 "<item name>",<time>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>,<RandomIDArray>,<RandomValueArray>,<RandomParamArray>{,<account_id>}; *makeitem3 <item id>,<amount>,"<map name>",<X>,<Y>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>,<RandomIDArray>,<RandomValueArray>,<RandomParamArray>; *makeitem3 "<item name>",<amount>,"<map name>",<X>,<Y>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>,<RandomIDArray>,<RandomValueArray>,<RandomParamArray>; *delitem3 <item id>,<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>,<RandomIDArray>,<RandomValueArray>,<RandomParamArray>{,<account ID>}; *delitem3 "<item name>",<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>,<RandomIDArray>,<RandomValueArray>,<RandomParamArray>{,<account ID>}; *countitem3(<item id>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>,<RandomIDArray>,<RandomValueArray>,<RandomParamArray>) *countitem3("<item name>",<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>,<RandomIDArray>,<RandomValueArray>,<RandomParamArray>)
  11. If you can't equip it, just check the job and class for those items see Corrected job for Crimson Weapons, Infinity Weapons, and a Spoon! if u don't know how to set the option for the weapon, try read this maybe: Crimson Weapon and Item Random Options
  12. Cydh

    Headgear

    I believe it's not Poring Hat because it's Eleanor's Head. maybe http://www.divine-pride.net/database/item/31062/
  13. I believe your config something like this // Rate at which exp. is given. (Note 2) base_exp_rate: 500 ... // Base exp. penalty rate (Each 100 is 1% of their exp) death_penalty_base: 100 ... // The rate the common items are dropped (Items that are in the ETC tab, besides card) item_rate_common: 1000
  14. client version mismatch? <version> != packet_db_ver
×
×
  • Create New...