Kozima Posted January 7, 2014 Group: Members Topic Count: 36 Topics Per Day: 0.01 Content Count: 82 Reputation: 2 Joined: 10/30/13 Last Seen: October 26, 2023 Share Posted January 7, 2014 7948,Box,Box,18,20,,10,,,,,0xFFFFFFFF,7,2,,,,,,{},{},{} Can all of you give me a script for auto newbie item refiner Get Item from that box : Tidal Shoes +7 Wool Scarft +7 Orlean Server +7 Main Gaunche +7 Thanks For Helping ^^ Quote Link to comment Share on other sites More sharing options...
Kozima Posted January 13, 2014 Group: Members Topic Count: 36 Topics Per Day: 0.01 Content Count: 82 Reputation: 2 Joined: 10/30/13 Last Seen: October 26, 2023 Author Share Posted January 13, 2014 Thanks Kido , AnieRuru and Patskie , i think http://rathena.org/board/topic/89818-how-to-make-a-customized-box/ work 100% 1 Quote Link to comment Share on other sites More sharing options...
1 Kido Posted January 13, 2014 Group: Members Topic Count: 127 Topics Per Day: 0.03 Content Count: 1445 Reputation: 164 Joined: 08/17/13 Last Seen: July 11, 2019 Share Posted January 13, 2014 glad to hear (: if you have any more question you'll find us here (: Quote Link to comment Share on other sites More sharing options...
Patskie Posted January 7, 2014 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 6 hours ago Share Posted January 7, 2014 Follow the syntax : *getitem2 <item id>,<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>{,<account ID>}; Quote Link to comment Share on other sites More sharing options...
Kido Posted January 8, 2014 Group: Members Topic Count: 127 Topics Per Day: 0.03 Content Count: 1445 Reputation: 164 Joined: 08/17/13 Last Seen: July 11, 2019 Share Posted January 8, 2014 7948,Box,Box,18,20,,10,,,,,0xFFFFFFFF,7,2,,,,,,{},{},{} Can all of you give me a script for auto newbie item refiner Get Item from that box : Tidal Shoes +7 Wool Scarft +7 Orlean Server +7 Main Gaunche +7 Thanks For Helping ^^ Follow the syntax : *getitem2 <item id>,<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>{,<account ID>}; o: Patskie, what to put on <attribute> (i guess 0 ?) and <aaount ID> ? D: for example, tidal shoes: getitem2 <2424>,<1>,<1>,<7>,<0>,<0>,<0>,<0>,<0>{,<account ID>}; 1 Quote Link to comment Share on other sites More sharing options...
Patskie Posted January 8, 2014 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 6 hours ago Share Posted January 8, 2014 attribute - Whether the item is broken (1) or not (0). 1 Quote Link to comment Share on other sites More sharing options...
Kido Posted January 8, 2014 Group: Members Topic Count: 127 Topics Per Day: 0.03 Content Count: 1445 Reputation: 164 Joined: 08/17/13 Last Seen: July 11, 2019 Share Posted January 8, 2014 and account ID ? because if it's for freebies wouldn't be useless? or should i just leave it as 0? because it comes to my mind that there is the ID of the acc. of the player D: 1 Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted January 8, 2014 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted January 8, 2014 BUILDIN_DEF(getitem2,"viiiiiiii?"),v = value ( can be string or integer )i = integer ? = optional parameter usually when you see a {,<flag>}; the {} part can be omitted prontera,156,184,5 script kdjhfksdjf 100,{ getitem2 501, 1,1,0,0 ,0,0,0,0; getitem2 501, 1,1,0,0 ,0,0,0,0 , getcharid(3); end; }both will work 1 Quote Link to comment Share on other sites More sharing options...
Kido Posted January 8, 2014 Group: Members Topic Count: 127 Topics Per Day: 0.03 Content Count: 1445 Reputation: 164 Joined: 08/17/13 Last Seen: July 11, 2019 Share Posted January 8, 2014 BUILDIN_DEF(getitem2,"viiiiiiii?"),v = value ( can be string or integer )i = integer ? = optional parameter usually when you see a {,<flag>}; the {} part can be omitted prontera,156,184,5 script kdjhfksdjf 100,{ getitem2 501, 1,1,0,0 ,0,0,0,0; getitem2 501, 1,1,0,0 ,0,0,0,0 , getcharid(3); end; }both will work thanks o: so for Tidal shoes +7 it would be getitem2 2424,1,1,7,0,0,0,0,0,getcharid(3); ? 1 Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted January 8, 2014 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted January 8, 2014 (edited) getitem2 "Tidal_Shoes",1,1,7,0,0,0,0,0; its better to use constants in script so you can debug the script much easier, especially in utility scriptand don't need the getcharid(3) ... its actually meant for event scripts http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=1035 well, at your current scripting standard you might still learning how to write simple utility script but when you have advance enough, you'll see this optional parameter is very useful in event scripts example like prontera,157,184,6 script dksfskfsd 100,{ if ( !getcharid(1) ) { getitem 512, 1; end; } getpartymember getcharid(1), 1; getpartymember getcharid(1), 2; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) getitem 512, 1, $@partymemberaid[.@i]; end; }I just telling this because I know you'll 1 day gonna become a good scripter like emistryPS: ... you know ... this @Kido ... exactly the same as @Emistry 2~3 years back xD btw I feel like I didn't answer to the topic lol Edited January 8, 2014 by AnnieRuru 1 Quote Link to comment Share on other sites More sharing options...
Kido Posted January 8, 2014 Group: Members Topic Count: 127 Topics Per Day: 0.03 Content Count: 1445 Reputation: 164 Joined: 08/17/13 Last Seen: July 11, 2019 Share Posted January 8, 2014 Kozima, the answer has been alreadi give by AnnieRuru and Patskie (credits to them) here it is for tidal shoes: getitem2 "Tidal_Shoes",1,1,7,0,0,0,0,0; so, at the end would be like this (just add the others items like tidal shoes): 7948,Box,Box,18,20,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ getitem2 "Tidal_Shoes",1,1,7,0,0,0,0,0; },{},{} copy and paste for the other items, please note that you will need to change the name of "Tidal_Shoe" for the proper item name in your item_db i hope your question has been answered (: oh thanks o: i remember that i used a ifday and ifnight script on my custom item so i just thinked that it would be need it D:! however, there are some items that uses getcharid(3) i jsut took this from item_db pre-re 14517,CP_Helm_Scroll,Chemical Protection Helm Scroll,2,0,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ unitskilluseid getcharid(3),"AM_CP_HELM",5; },{},{} 14518,CP_Shield_Scroll,Chemical Protection Shield Scrol,2,0,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ unitskilluseid getcharid(3),"AM_CP_SHIELD",5; },{},{} 14519,CP_Armor_Scroll,Chemical Protection Armor Scroll,2,0,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ unitskilluseid getcharid(3),"AM_CP_ARMOR",5; },{},{} 14520,CP_Weapon_Scroll,Chemical Protection Weapon Scroll,2,0,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ unitskilluseid getcharid(3),"AM_CP_WEAPON",5; },{},{} 14521,Repair_Scroll,Repair Weapon Scroll,2,0,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ unitskilluseid getcharid(3),"BS_REPAIRWEAPON",1; },{},{} 14522,Big_Bun,Big Bun,0,0,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ percentheal 100,0; },{},{} o: ow that's a great compliment (just being half of good of emistry is today would be great o:! [i know, it's bad writed, writed too is bad writed]), it's about time, i'll studying on vacations because university already keeps me busy x_x but i'm free on vacations so i will dedicate more time to it :DD! 1 Quote Link to comment Share on other sites More sharing options...
Kozima Posted January 12, 2014 Group: Members Topic Count: 36 Topics Per Day: 0.01 Content Count: 82 Reputation: 2 Joined: 10/30/13 Last Seen: October 26, 2023 Author Share Posted January 12, 2014 7948,Box,Box,18,20,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ getitem2 "Tidal_Shoes",1,1,7,0,0,0,0,0; },{},{} it's not work.. T.T Quote Link to comment Share on other sites More sharing options...
Kozima Posted January 13, 2014 Group: Members Topic Count: 36 Topics Per Day: 0.01 Content Count: 82 Reputation: 2 Joined: 10/30/13 Last Seen: October 26, 2023 Author Share Posted January 13, 2014 i think thant script like this one function script GetItem { switch(select("Swordsman:Magician:Archer:Acolyte:Merchant:Thief")) { case 1: getitem2 7227,1,1,7,0,0,0,0,0; getitem2 7227,1,1,7,0,0,0,0,0; getitem2 7227,1,1,7,0,0,0,0,0; getitem2 7227,1,1,7,0,0,0,0,0; close; case 2: getitem2 7227,1,1,7,0,0,0,0,0; getitem2 7227,1,1,7,0,0,0,0,0; getitem2 7227,1,1,7,0,0,0,0,0; getitem2 7227,1,1,7,0,0,0,0,0; close; case 3: getitem2 7227,1,1,7,0,0,0,0,0; getitem2 7227,1,1,7,0,0,0,0,0; getitem2 7227,1,1,7,0,0,0,0,0; getitem2 7227,1,1,7,0,0,0,0,0; close; case 4: getitem2 7227,1,1,7,0,0,0,0,0; getitem2 7227,1,1,7,0,0,0,0,0; getitem2 7227,1,1,7,0,0,0,0,0; getitem2 7227,1,1,7,0,0,0,0,0; close; case 5: getitem2 7227,1,1,7,0,0,0,0,0; getitem2 7227,1,1,7,0,0,0,0,0; getitem2 7227,1,1,7,0,0,0,0,0; getitem2 7227,1,1,7,0,0,0,0,0; close; case 6: getitem2 7227,1,1,7,0,0,0,0,0; getitem2 7227,1,1,7,0,0,0,0,0; getitem2 7227,1,1,7,0,0,0,0,0; getitem2 7227,1,1,7,0,0,0,0,0; close; } return; } Quote Link to comment Share on other sites More sharing options...
Kido Posted January 13, 2014 Group: Members Topic Count: 127 Topics Per Day: 0.03 Content Count: 1445 Reputation: 164 Joined: 08/17/13 Last Seen: July 11, 2019 Share Posted January 13, 2014 7948,Box,Box,18,20,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ getitem2 "Tidal_Shoes",1,1,7,0,0,0,0,0; },{},{} it's not work.. T.T hello, sorry i was a little busy these days @_@ it worked for me, i believe that something on that item is misconfigured 11503,Siege_White_Potion,WoE White Potion,0,0,,100,,,,,0xFFFFFFFF,7,2,,,,,,{ itemheal rand(400,500),0; getitem2 "Tidal_Shoes",1,1,7,0,0,0,0,0; },{},{} I used a siege white potion to test it and it worked perfectly let's see huh try with this: 7948,Box,Box,,0,0,,100,,,,,0xFFFFFFFF,7,2,,,,,,{ getitem2 "Tidal_Shoes",1,1,7,0,0,0,0,0; },{},{} I just added this ,0,0,,100,,,,,0xFFFFFFFF,7,2,,,,,, that will make your item "Box" "7948" consumable it should work Edit: For the npc, that line isn't working or it is? try this one switch(select("Swordsman:Magician:Archer:Acolyte:Merchant:Thief:Super Novice:Taekwon:Ninja")) { o wait lol as far as i know, your npc should be like this, try to switch with this: case 1: getitem2 7227,1,1,7,0,0,0,0,0; getitem2 7227,1,1,7,0,0,0,0,0; getitem2 7227,1,1,7,0,0,0,0,0; getitem2 7227,1,1,7,0,0,0,0,0; close; case 2: getitem2 7227,1,1,7,0,0,0,0,0; getitem2 7227,1,1,7,0,0,0,0,0; getitem2 7227,1,1,7,0,0,0,0,0; getitem2 7227,1,1,7,0,0,0,0,0; close; case 3: getitem2 7227,1,1,7,0,0,0,0,0; getitem2 7227,1,1,7,0,0,0,0,0; getitem2 7227,1,1,7,0,0,0,0,0; getitem2 7227,1,1,7,0,0,0,0,0; close; case 4: getitem2 7227,1,1,7,0,0,0,0,0; getitem2 7227,1,1,7,0,0,0,0,0; getitem2 7227,1,1,7,0,0,0,0,0; getitem2 7227,1,1,7,0,0,0,0,0; close; case 5: getitem2 7227,1,1,7,0,0,0,0,0; getitem2 7227,1,1,7,0,0,0,0,0; getitem2 7227,1,1,7,0,0,0,0,0; getitem2 7227,1,1,7,0,0,0,0,0; close; case 6: getitem2 7227,1,1,7,0,0,0,0,0; getitem2 7227,1,1,7,0,0,0,0,0; getitem2 7227,1,1,7,0,0,0,0,0; getitem2 7227,1,1,7,0,0,0,0,0; close; } return; } just added spaces Quote Link to comment Share on other sites More sharing options...
Question
Kozima
7948,Box,Box,18,20,,10,,,,,0xFFFFFFFF,7,2,,,,,,{},{},{}
Can all of you give me a script for auto newbie item refiner
Get Item from that box :
Tidal Shoes +7
Wool Scarft +7
Orlean Server +7
Main Gaunche +7
Thanks For Helping ^^
Link to comment
Share on other sites
13 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.