Gelo Posted November 10, 2017 Group: Members Topic Count: 22 Topics Per Day: 0.01 Content Count: 56 Reputation: 1 Joined: 05/10/12 Last Seen: September 28, 2018 Share Posted November 10, 2017 (edited) Hi, Need help on this script, I am creating a custom refiner script from different scripts. My idea is refine items to players choice. They can change the refine number anytime they want. This is a free refiner. Problem: It is refining well whenever I want to refine but all items in the inventory is also affected. Help! quiz_02,144,367,3 script Refine Smith 63,{ mes "[Smith]"; mes "Hi,I can Refine your"; mes "Equipment to Maximum of +10"; mes "What do you want from me?"; next; switch(select("Refine:Nothing")){ case 1: mes "[Smith]"; mes "Which item you want to refine?"; next; setarray .@position$[1],"Head upper","Armor","Left hand","Right hand","Robe","Shoes","Accessory 1","Accessory 2","Head middle","Head lower"; setarray .@indices[1], EQI_HEAD_TOP, EQI_ARMOR, EQI_HAND_L, EQI_HAND_R, EQI_GARMENT, EQI_SHOES, EQI_ACC_L, EQI_ACC_R, EQI_HEAD_MID, EQI_HEAD_LOW; for(set .@i,1; .@i<=10; set .@i,.@i+1) set .@menu$, .@menu$+((getequipisequiped(.@indices[.@i]))?getequipname(.@indices[.@i]):.@position$[.@i]+"- [Empty]")+":"; set .@part, .@indices[ select(.@menu$) ]; if (!getequipisequiped(.@part)) { mes "[Refine Master]"; mes "You have to equip the item you want to refine."; close; } if (!getequipisenableref(.@part)) { emotion e_otl; mes "[Refine Master]"; mes "Oh, I'm sorry."; mes "This item is impossible to refine."; close; } else { mes "Choose your ups"; next; switch (select("+1:+2:+3:+4:+5:+6:+7:+8:+9:+10")){ case 1: mes "ok"; atcommand "@refine "+ .@part[@menu] +" -10"; atcommand "@refine "+ .@part[@menu] +" +1"; next; mes "thanks"; close; case 2: mes "ok"; atcommand "@refine "+ .@part[@menu] +" -10"; atcommand "@refine "+ .@part[@menu] +" +2"; next; mes "thanks"; close; case 31: mes "ok"; atcommand "@refine "+ .@part[@menu] +" -10"; next; atcommand "@refine "+ .@part[@menu] +" +3"; next; mes "thanks"; close; case 4: mes "ok"; atcommand "@refine "+ .@part[@menu] +" -10"; next; atcommand "@refine "+ .@part[@menu] +" +4"; next; mes "thanks"; close; case 5: mes "ok"; atcommand "@refine "+ .@part[@menu] +" -10"; next; atcommand "@refine "+ .@part[@menu] +" +5"; next; mes "thanks"; close; case 6: mes "ok"; atcommand "@refine "+ .@part[@menu] +" -10"; next; atcommand "@refine "+ .@part[@menu] +" +6"; next; mes "thanks"; close; case 7: mes "ok"; atcommand "@refine "+ .@part[@menu] +" -10"; next; atcommand "@refine "+ .@part[@menu] +" +7"; next; mes "thanks"; close; case 8: mes "ok"; atcommand "@refine "+ .@part[@menu] +" -10"; next; atcommand "@refine "+ .@part[@menu] +" +8"; next; mes "thanks"; close; case 9: mes "ok"; atcommand "@refine "+ .@part[@menu] +" -10"; next; atcommand "@refine "+ .@part[@menu] +" +9"; next; mes "thanks"; close; case 10: mes "ok"; atcommand "@refine "+ .@part[@menu] +" -10"; next; atcommand "@refine "+ .@part[@menu] +" +10"; next; mes "thanks"; close; } } case 2: mes "ok"; close; end; } } Edited November 10, 2017 by Gelo Quote Link to comment Share on other sites More sharing options...
Question
Gelo
Hi,
Need help on this script, I am creating a custom refiner script from different scripts.
My idea is refine items to players choice. They can change the refine number anytime they want. This is a free refiner.
Problem: It is refining well whenever I want to refine but all items in the inventory is also affected.
Help!
quiz_02,144,367,3 script Refine Smith 63,{ mes "[Smith]"; mes "Hi,I can Refine your"; mes "Equipment to Maximum of +10"; mes "What do you want from me?"; next; switch(select("Refine:Nothing")){ case 1: mes "[Smith]"; mes "Which item you want to refine?"; next; setarray .@position$[1],"Head upper","Armor","Left hand","Right hand","Robe","Shoes","Accessory 1","Accessory 2","Head middle","Head lower"; setarray .@indices[1], EQI_HEAD_TOP, EQI_ARMOR, EQI_HAND_L, EQI_HAND_R, EQI_GARMENT, EQI_SHOES, EQI_ACC_L, EQI_ACC_R, EQI_HEAD_MID, EQI_HEAD_LOW; for(set .@i,1; .@i<=10; set .@i,.@i+1) set .@menu$, .@menu$+((getequipisequiped(.@indices[.@i]))?getequipname(.@indices[.@i]):.@position$[.@i]+"- [Empty]")+":"; set .@part, .@indices[ select(.@menu$) ]; if (!getequipisequiped(.@part)) { mes "[Refine Master]"; mes "You have to equip the item you want to refine."; close; } if (!getequipisenableref(.@part)) { emotion e_otl; mes "[Refine Master]"; mes "Oh, I'm sorry."; mes "This item is impossible to refine."; close; } else { mes "Choose your ups"; next; switch (select("+1:+2:+3:+4:+5:+6:+7:+8:+9:+10")){ case 1: mes "ok"; atcommand "@refine "+ .@part[@menu] +" -10"; atcommand "@refine "+ .@part[@menu] +" +1"; next; mes "thanks"; close; case 2: mes "ok"; atcommand "@refine "+ .@part[@menu] +" -10"; atcommand "@refine "+ .@part[@menu] +" +2"; next; mes "thanks"; close; case 31: mes "ok"; atcommand "@refine "+ .@part[@menu] +" -10"; next; atcommand "@refine "+ .@part[@menu] +" +3"; next; mes "thanks"; close; case 4: mes "ok"; atcommand "@refine "+ .@part[@menu] +" -10"; next; atcommand "@refine "+ .@part[@menu] +" +4"; next; mes "thanks"; close; case 5: mes "ok"; atcommand "@refine "+ .@part[@menu] +" -10"; next; atcommand "@refine "+ .@part[@menu] +" +5"; next; mes "thanks"; close; case 6: mes "ok"; atcommand "@refine "+ .@part[@menu] +" -10"; next; atcommand "@refine "+ .@part[@menu] +" +6"; next; mes "thanks"; close; case 7: mes "ok"; atcommand "@refine "+ .@part[@menu] +" -10"; next; atcommand "@refine "+ .@part[@menu] +" +7"; next; mes "thanks"; close; case 8: mes "ok"; atcommand "@refine "+ .@part[@menu] +" -10"; next; atcommand "@refine "+ .@part[@menu] +" +8"; next; mes "thanks"; close; case 9: mes "ok"; atcommand "@refine "+ .@part[@menu] +" -10"; next; atcommand "@refine "+ .@part[@menu] +" +9"; next; mes "thanks"; close; case 10: mes "ok"; atcommand "@refine "+ .@part[@menu] +" -10"; next; atcommand "@refine "+ .@part[@menu] +" +10"; next; mes "thanks"; close; } } case 2: mes "ok"; close; end; } }
Link to comment
Share on other sites
0 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.