Jump to content
  • 0

Standart Enchan System


Energy

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   3
  • Joined:  12/26/11
  • Last Seen:  

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

  • 0

  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

/...

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

  • 0

  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

u have to 'save' the 3rd slot first, and when add the 4th slot, u add back 3rd + 4th at once.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   3
  • Joined:  12/26/11
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   3
  • Joined:  12/26/11
  • Last Seen:  

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;

 

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

you're welcome.

 

who is 'Devil Master Enchantment'? /omg

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   3
  • Joined:  12/26/11
  • Last Seen:  

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...