Jump to content
  • 0
Energy

Standart Enchan System

Question

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

6 answers to this question

Recommended Posts

  • 0

/...

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];
  • Upvote 1
Link to comment
Share on other sites

  • 0

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 by Energy
Link to comment
Share on other sites

  • 0

Thank you very much for the tip !

I made the example script Devil Master Enchantment
 

 

Link to comment
Share on other sites

  • 0

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)
Link to comment
Share on other sites

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.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.