Energy Posted January 10, 2016 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 31 Reputation: 3 Joined: 12/26/11 Last Seen: March 28, 2020 Share Posted January 10, 2016 Hi! I have standart script Enchan Armor. I need to insert the "enchanitem" into the slot 3 , but save the "enchanitem" in 4 Slot. [spoiler=Standart code give item]getitem2 .@itemid, 1, 1, 0, 0, 0, 0, 0, .@addpart; [spoiler=My Code give item]getitem2 .@itemid, 1, 1, 0, 0, 0, 0, .@addpart, 0; or getitem2 .@itemid, 1, 1, 0, 0, 0, 0, .@addpart, 1; But the "enchanitem" in slot 4 is not saved... Please help, who knows. Sorry for my english. Quote Link to comment Share on other sites More sharing options...
0 Cydh Posted January 10, 2016 Group: Developer Topic Count: 153 Topics Per Day: 0.03 Content Count: 2285 Reputation: 748 Joined: 06/16/12 Last Seen: February 21 Share Posted January 10, 2016 u have to 'save' the 3rd slot first, and when add the 4th slot, u add back 3rd + 4th at once. Quote Link to comment Share on other sites More sharing options...
0 Energy Posted January 11, 2016 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 31 Reputation: 3 Joined: 12/26/11 Last Seen: March 28, 2020 Author Share Posted January 11, 2016 (edited) u have to 'save' the 3rd slot first, and when add the 4th slot, u add back 3rd + 4th at once. Hi, thx. But not working... [spoiler=Fist] getitem2 .@itemid, 1, 1, 0, 0, 0, 0, .@addpart, 0; [spoiler=Second]getitem2 .@itemid, 1, 1, 0, 0, 0, 0, 1, .@addpart; or getitem2 .@itemid, 1, 1, 0, 0, 0, 0, 0, .@addpart; The same effect...empty slot or apple How to keep a 3- slot , when added to the 4 slot? 3 slot just reset, when i added to the 4 slot. Edited January 11, 2016 by Energy Quote Link to comment Share on other sites More sharing options...
0 Cydh Posted January 12, 2016 Group: Developer Topic Count: 153 Topics Per Day: 0.03 Content Count: 2285 Reputation: 748 Joined: 06/16/12 Last Seen: February 21 Share Posted January 12, 2016 u don't understand at all. 1. Stores all current 4-slots (possible) items IDs in variables by using .@slot1= getequipcardid(<equipment slot>,0); .@slot2= getequipcardid(<equipment slot>,1); .@slot3= getequipcardid(<equipment slot>,2); .@slot4= getequipcardid(<equipment slot>,3); 2. Change the deserved slots (leave the slots that u don't want to change). .@slot1= <item_id>; .@slot2= <item_id>; .@slot3= <item_id>; .@slot4= <item_id>; 3. Give it to player getitem2 <item id>,<amount>,<identify>,<refine>,<attribute>,.@slot1,.@slot2,.@slot3,.@slot4; 1 Quote Link to comment Share on other sites More sharing options...
0 Energy Posted January 12, 2016 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 31 Reputation: 3 Joined: 12/26/11 Last Seen: March 28, 2020 Author Share Posted January 12, 2016 Thank you very much for the tip ! I made the example script Devil Master Enchantment getitem2 .@equip_id,1,1,.@equip_refine,0,.@equip_card[0],.@equip_card[1],.@equip_card[2],.@enchant; Quote Link to comment Share on other sites More sharing options...
0 Cydh Posted January 12, 2016 Group: Developer Topic Count: 153 Topics Per Day: 0.03 Content Count: 2285 Reputation: 748 Joined: 06/16/12 Last Seen: February 21 Share Posted January 12, 2016 you're welcome. who is 'Devil Master Enchantment'? Quote Link to comment Share on other sites More sharing options...
0 Energy Posted January 13, 2016 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 31 Reputation: 3 Joined: 12/26/11 Last Seen: March 28, 2020 Author Share Posted January 13, 2016 Sorry for my English.. Standart NPC weapon enchan "Devil Master Enchantment". npc/re/merchants/enchan_upg.txt I understand how it works and remade for themselves. Before that, i am trying to rewrite the ordinary.(Standart Enchant Armor) Quote Link to comment Share on other sites More sharing options...
Question
Energy
Hi! I have standart script Enchan Armor.
I need to insert the "enchanitem" into the slot 3 , but save the "enchanitem" in 4 Slot.
[spoiler=Standart code give item]getitem2 .@itemid, 1, 1, 0, 0, 0, 0, 0, .@addpart;
[spoiler=My Code give item]getitem2 .@itemid, 1, 1, 0, 0, 0, 0, .@addpart, 0;
or
getitem2 .@itemid, 1, 1, 0, 0, 0, 0, .@addpart, 1;
But the "enchanitem" in slot 4 is not saved...
Please help, who knows.
Sorry for my english.
Link to comment
Share on other sites
6 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.