View Single Post
  #4  
Old 03-06-2012, 01:31 AM
Valdis01
Sarnak
 
Join Date: Aug 2006
Posts: 41
Default

Code:
my $NewStatus = $status;
my $AcctID = $client->AccountID();
my $SQLQuery = '';

sub EVENT_ITEM
{
  if(plugin::check_handin(\%itemcount, <itemid> => 1, <itemid> => 1, <itemid => 1))
  {
	$NewStatus = $NewStatus + 1;
	$SQLQuery = 'update account set status = '.$NewStatus.' where id = '.$AcctID.';';
	$status = idk;
	$dbh->do($SQLQuery);
	$client->Message(315, "$NPCNAME whispers to you, 'Congratulations, you now have flags for <enter name>.'");
  }
  else
  {
	$client->Message(315,"$NPCNAME whispers to you, 'What is this carp?'");
	plugin::return_items(\%itemcount);
  }
}
is a template my coder worked out... Not sure if it's okay, or....
Reply With Quote