Jump to content
  • 0

item_group_db Account Bound


Everade

Question


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  192
  • Reputation:   43
  • Joined:  12/13/11
  • Last Seen:  

I'm trying to create account bound items upon opening a box.

 

The documentary says it should work like this:

IG_Asc_Craft_Chest,6225,5{,,,,,,Bound_Account}

But i guess i'm doing something wrong?
 
 
There's no error whatsoever.
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  192
  • Reputation:   43
  • Joined:  12/13/11
  • Last Seen:  

Just found a second doc entry which states that only getgroupitem supports this, but not getrandgroupitem nor groupranditem...

Edited by Everade
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   31
  • Joined:  07/08/14
  • Last Seen:  

Why don't you do you via a script function?

callfunc "GetRandItemBound",getcharid(3);

function	script	GetRandItemBound	{
	attachrid(getarg(0)); // useful? Don't remember if the player is automatically attached
	setarray .@items , 1228 , 1229;
	getitem .@items[rand(getarraysize(.@items))],1,getarg(0);
}
Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   431
  • Joined:  01/26/16
  • Last Seen:  

Remove the brackets.

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

Why don't you do you via a script function?

callfunc "GetRandItemBound",getcharid(3);

function	script	GetRandItemBound	{
	attachrid(getarg(0)); // useful? Don't remember if the player is automatically attached
	setarray .@items , 1228 , 1229;
	getitem .@items[rand(getarraysize(.@items))],1,getarg(0);
}
Looking at this it will work, however IG_ items have a weighted chance not all items have the same rate.

Id use this and replace getitem with getitembound https://github.com/Stolao/Npc_Release/blob/master/Custom_Functions/F_ItemWeight.txt

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