Thread: Augmentor Quest
View Single Post
  #3  
Old 03-14-2014, 09:48 AM
Traul
Hill Giant
 
Join Date: Jun 2005
Posts: 105
Default

Quote:
Originally Posted by Kingly_Krab View Post
You may use $client->SummonItem(), it has the following paramaters: item_id, charges, attune, aug1, aug2, aug3, aug4, aug5

I use this for some storage code I wrote that allows you to store items with augments and withdraw them.

Here's an example. Although, you could just use $item1, $item2, $item3, and $item4 if you want them to be able to put anything in anything.
Code:
sub EVENT_ITEM
{
	if(plugin::check_handin(\%itemcount, 1001 => 1, 1002 => 1))
	{
		$client->SummonItem(1001, 1, 0, 1002);
	}
}
This is excellent, thanks! I guess the more complicated next step would be to send in a check to make sure the augment would actually fit in the augment slot or is there any chance the summonitem code would do that automatically?
Reply With Quote