Everade Posted July 21, 2016 Share Posted July 21, 2016 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. Quote Link to comment Share on other sites More sharing options...
0 Everade Posted July 21, 2016 Author Share Posted July 21, 2016 (edited) Just found a second doc entry which states that only getgroupitem supports this, but not getrandgroupitem nor groupranditem... Edited July 21, 2016 by Everade Quote Link to comment Share on other sites More sharing options...
0 Kurofly Posted July 21, 2016 Share Posted July 21, 2016 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 [email protected] , 1228 , 1229; getitem [email protected][rand(getarraysize([email protected]))],1,getarg(0); } Quote Link to comment Share on other sites More sharing options...
0 Secrets Posted July 21, 2016 Share Posted July 21, 2016 Remove the brackets. Quote Link to comment Share on other sites More sharing options...
0 Stolao Posted July 21, 2016 Share Posted July 21, 2016 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 [email protected] , 1228 , 1229; getitem [email protected][rand(getarraysize([email protected]))],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 Quote Link to comment Share on other sites More sharing options...
I'm trying to create account bound items upon opening a box.
The documentary says it should work like this:
But i guess i'm doing something wrong?
Link to comment
Share on other sites