Jump to content
  • 0

getitem2 in item script


LithiumFire

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   3
  • Joined:  08/06/12
  • Last Seen:  

Is getitem2 working on item scripts?

 

I've been following this guide to create a box that will give the players some items. I've even looked for a sample from the item_db.txt file with no luck

 

For starters and testing I wrote a Refined Adventurer's Suit with an embedded Pupa Card but it's not working, the box does nothing.

 

This is the code.

30000,Start_Pack,Start Pack,18,20,,10,,,,,0xFFFFFFFF,63,2,,,,,,{ getitem2 2306,1,1,5,0,4003,0,0,0,0; },{},{}

Am I doing something wrong? or getitem2 is just not supported by item scripts?

If this is the case, is there any other way I could accomplish this? I really need the player to get items this way, with embedded cards and stuff.

 

Thanks in advance

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

There is an extra param in your getitem2 (about the account, acc id 0), try

getitem2 2306,1,1,5,0,4003,0,0,0;
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   3
  • Joined:  08/06/12
  • Last Seen:  

Thanks a lot sir, I'll try that!

Edited by LithiumFire
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...