Energy Posted January 10, 2016 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 [email protected], 1, 1, 0, 0, 0, 0, 0, [email protected]; [spoiler=My Code give item]getitem2 [email protected], 1, 1, 0, 0, 0, 0, [email protected], 0; or getitem2 [email protected], 1, 1, 0, 0, 0, 0, [email protected], 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 12, 2016 Share Posted January 12, 2016 u don't understand at all. 1. Stores all current 4-slots (possible) items IDs in variables by using [email protected]= getequipcardid(<equipment slot>,0); [email protected]= getequipcardid(<equipment slot>,1); [email protected]= getequipcardid(<equipment slot>,2); [email protected]= getequipcardid(<equipment slot>,3); 2. Change the deserved slots (leave the slots that u don't want to change). [email protected]= <item_id>; [email protected]= <item_id>; [email protected]= <item_id>; [email protected]= <item_id>; 3. Give it to player getitem2 <item id>,<amount>,<identify>,<refine>,<attribute>,[email protected],[email protected],[email protected],[email protected]; 1 Quote Link to comment Share on other sites More sharing options...
0 Cydh Posted January 10, 2016 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 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 [email protected], 1, 1, 0, 0, 0, 0, [email protected], 0; [spoiler=Second]getitem2 [email protected], 1, 1, 0, 0, 0, 0, 1, [email protected]; or getitem2 [email protected], 1, 1, 0, 0, 0, 0, 0, [email protected]; 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 Energy Posted January 12, 2016 Author Share Posted January 12, 2016 Thank you very much for the tip ! I made the example script Devil Master Enchantment getitem2 [email protected]_id,1,1,[email protected]_refine,0,[email protected]_card[0],[email protected]_card[1],[email protected]_card[2],[email protected]; Quote Link to comment Share on other sites More sharing options...
0 Cydh Posted January 12, 2016 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 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...
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 [email protected], 1, 1, 0, 0, 0, 0, 0, [email protected];
[spoiler=My Code give item]getitem2 [email protected], 1, 1, 0, 0, 0, 0, [email protected], 0;
or
getitem2 [email protected], 1, 1, 0, 0, 0, 0, [email protected], 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