View Single Post
  #13  
Old 10-19-2016, 01:31 PM
lordnivek1
Sarnak
 
Join Date: Feb 2013
Posts: 65
Default

so running with the idea that a generic sword named "unidentified sword" drops and they have to take it to an npc to get it identified. is this how you would set up your array to spit out an item with augments in it. .Hopefully I understood what you were trying to say was possible.

Code:
{
	if($itemid == x)
	{

		$client->NukeItem(itemnum)

		my @add_aug1 = ('1000', '1001', '1005', '1007')

		my @add_aug2 = ('5000', '5001', '5005', '5007')

		my $random = int(rand 4);
 
		my $aug1 = $add_aug1[$random];

		my $aug2 = $add_aug2[$random];

		$client->SummonItem(XXX, 0, 1, $aug1, $aug2)
	}
}
Reply With Quote