Jump to content
  • 0

Standart Enchan System


Question

Posted

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.

6 answers to this question

Recommended Posts

  • 0
Posted

/...

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;
  • Upvote 1
  • 0
Posted (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 by Energy
  • 0
Posted

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;

 

  • 0
Posted

Sorry for my English.. /sry 

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)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...