Oraios Posted July 8, 2016 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 60 Reputation: 1 Joined: 11/06/12 Last Seen: December 16, 2016 Share Posted July 8, 2016 Dear community, could anyone help me to write a script of a "refiner npc" which refine's every part of the equipment (also mid and lower hg) safe to +5 and from +6 - +10 there's a chance of 25% that it refines the item to the next lvl. Best regards! Quote Link to comment Share on other sites More sharing options...
0 _Okuz_ Posted July 8, 2016 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 92 Reputation: 17 Joined: 08/11/12 Last Seen: August 30, 2017 Share Posted July 8, 2016 (edited) Hello Oraios, how are you buddy!?I can do it for you. I'll be back soon with your script.C ya! EDIT--Here is your request: prontera,150,150,5 script Nemir Faiax 726,{ mes "[Nemir Faiax]"; mes "Hello young "+(Sex ? "man" : "lady")+"!"; mes "I'm able to refine ^FF0000all of your equipments^000000 to +5 without any price!"; mes "Plus, from +6 to +10 there's a chance of ^FF000025% of success^000000."; mes "What do you think!?"; next; if (select("Go ahead babe!")) { for (set .@i, 2; .@i < 10; set .@i, .@i + 1) { if (getequipid(.@i) > -1 /* && getequipisenableref(.@i) */) { if (getequiprefinerycnt(.@i) > 4 && getequiprefinerycnt(.@i) < 11) { if (rand(100) > 74) { successrefitem .@i; } else { failedrefitem .@i; } } else if (getequiprefinerycnt(.@i) < 5) { successrefitem .@i, 5; } } } } mes "[Nemir Faiax]"; mes "My job here is done."; mes "Bye!"; close2; emotion e_kis; end; } If you want to enable the refinable flag, change this: if (getequipid(.@i) > -1 /* && getequipisenableref(.@i) */) { To this: if (getequipid(.@i) > -1 && getequipisenableref(.@i)) { C ya! Edited July 9, 2016 by _Okuz_ Quote Link to comment Share on other sites More sharing options...
0 Oraios Posted July 9, 2016 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 60 Reputation: 1 Joined: 11/06/12 Last Seen: December 16, 2016 Author Share Posted July 9, 2016 Hey man, I am fine dude ;D Thanks buddy! Quote Link to comment Share on other sites More sharing options...
0 _Okuz_ Posted July 9, 2016 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 92 Reputation: 17 Joined: 08/11/12 Last Seen: August 30, 2017 Share Posted July 9, 2016 (edited) @OraiosDone! C ya! Edited July 9, 2016 by _Okuz_ Quote Link to comment Share on other sites More sharing options...
0 Oraios Posted July 10, 2016 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 60 Reputation: 1 Joined: 11/06/12 Last Seen: December 16, 2016 Author Share Posted July 10, 2016 thank you a lot! Quote Link to comment Share on other sites More sharing options...
Question
Oraios
Dear community,
could anyone help me to write a script of a "refiner npc" which refine's every part of the equipment (also mid and lower hg) safe to +5 and from +6 - +10 there's a chance of 25% that it refines the item to the next lvl.
Best regards!
Link to comment
Share on other sites
4 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.