chromus28 Posted July 26, 2013 Group: Members Topic Count: 91 Topics Per Day: 0.02 Content Count: 263 Reputation: 1 Joined: 04/25/13 Last Seen: December 20, 2014 Share Posted July 26, 2013 Hi team rAthena. I just wanna ask if can make the forged weapon points become 1000 if they make it +10? Quote Link to comment Share on other sites More sharing options...
Emistry Posted July 26, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: 21 hours ago Share Posted July 26, 2013 /*========================================== * Refine +1 item at pos and log and display refine *------------------------------------------*/ BUILDIN_FUNC(successrefitem) { int i=-1,num,ep; TBL_PC *sd; num = script_getnum(st,2); sd = script_rid2sd(st); if( sd == NULL ) return 0; if (num > 0 && num <= ARRAYLENGTH(equip)) i=pc_checkequip(sd,equip[num-1]); if(i >= 0) { ep=sd->status.inventory[i].equip; //Logs items, got from (N)PC scripts [Lupus] log_pick_pc(sd, LOG_TYPE_SCRIPT, -1, &sd->status.inventory[i]); sd->status.inventory[i].refine++; pc_unequipitem(sd,i,2); // status calc will happen in pc_equipitem() below clif_refine(sd->fd,0,i,sd->status.inventory[i].refine); clif_delitem(sd,i,1,3); //Logs items, got from (N)PC scripts [Lupus] log_pick_pc(sd, LOG_TYPE_SCRIPT, 1, &sd->status.inventory[i]); clif_additem(sd,i,1,0); pc_equipitem(sd,i,ep); clif_misceffect(&sd->bl,3); if(sd->status.inventory[i].refine == MAX_REFINE && sd->status.inventory[i].card[0] == CARD0_FORGE && sd->status.char_id == (int)MakeDWord(sd->status.inventory[i].card[2],sd->status.inventory[i].card[3]) ){ // Fame point system [DracoRPG] switch (sd->inventory_data[i]->wlv){ case 1: pc_addfame(sd,1); // Success to refine to +10 a lv1 weapon you forged = +1 fame point break; case 2: pc_addfame(sd,25); // Success to refine to +10 a lv2 weapon you forged = +25 fame point break; case 3: pc_addfame(sd,1000); // Success to refine to +10 a lv3 weapon you forged = +1000 fame point break; } } } return 0; } switch (sd->inventory_data[i]->wlv){ case 1: pc_addfame(sd,1); // Success to refine to +10 a lv1 weapon you forged = +1 fame point break; case 2: pc_addfame(sd,25); // Success to refine to +10 a lv2 weapon you forged = +25 fame point break; case 3: pc_addfame(sd,1000); // Success to refine to +10 a lv3 weapon you forged = +1000 fame point break; } Quote Link to comment Share on other sites More sharing options...
chromus28 Posted July 26, 2013 Group: Members Topic Count: 91 Topics Per Day: 0.02 Content Count: 263 Reputation: 1 Joined: 04/25/13 Last Seen: December 20, 2014 Author Share Posted July 26, 2013 where i should go to change that? Sir emistry please give me a guide and steps on this topic >.< i dont know where to start Quote Link to comment Share on other sites More sharing options...
chromus28 Posted July 27, 2013 Group: Members Topic Count: 91 Topics Per Day: 0.02 Content Count: 263 Reputation: 1 Joined: 04/25/13 Last Seen: December 20, 2014 Author Share Posted July 27, 2013 this is about the script you gave me on blacksmith forged points..i dont know on how or where should i start...please can you give me an guide or step by step guide for it? Quote Link to comment Share on other sites More sharing options...
Emistry Posted July 27, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: 21 hours ago Share Posted July 27, 2013 that script command also do what you want..there is nothing you have to add or change =='' and...please refrain from creating multiple topic just for one problem... Quote Link to comment Share on other sites More sharing options...
chromus28 Posted July 28, 2013 Group: Members Topic Count: 91 Topics Per Day: 0.02 Content Count: 263 Reputation: 1 Joined: 04/25/13 Last Seen: December 20, 2014 Author Share Posted July 28, 2013 this script command also do what i want? uhmm i dont know where should i put this script, or where should i start. help T_T Quote Link to comment Share on other sites More sharing options...
chromus28 Posted July 30, 2013 Group: Members Topic Count: 91 Topics Per Day: 0.02 Content Count: 263 Reputation: 1 Joined: 04/25/13 Last Seen: December 20, 2014 Author Share Posted July 30, 2013 bump Quote Link to comment Share on other sites More sharing options...
Lil Troll Posted August 11, 2013 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 276 Reputation: 24 Joined: 07/06/13 Last Seen: April 19, 2014 Share Posted August 11, 2013 (edited) case 1: pc_addfame(sd,1); // Success to refine to +10 a lv1 weapon you forged = +1 fame point break; case 2: pc_addfame(sd,25); // Success to refine to +10 a lv2 weapon you forged = +25 fame point break; case 3: pc_addfame(sd,1000); // Success to refine to +10 a lv3 weapon you forged = +1000 fame point break; } This is source modification, its scr located in your trunk/src. (In skill.c and script.c) You dont need to change the src, because the default value of +10 forge = 1000 fame. Change (sd,1000) "1000" to how many fame points you want in those cases, after doing that compile your server. Edited August 11, 2013 by Lil Troll Quote Link to comment Share on other sites More sharing options...
Question
chromus28
Hi team rAthena.
I just wanna ask if can make the forged weapon points become 1000 if they make it +10?
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.