View Single Post
  #1  
Old 09-05-2010, 05:23 PM
Astal
Hill Giant
 
Join Date: Mar 2010
Posts: 236
Default Simple Charm To Give Player Money Every Update

I cant seem to get it working, can anyone help?

Code:
sub EVENT_SCALE_CALC {

	my $currentmoney = $client->GetPlatinum();
	my $moneytogive = $currentmoney / 100 ;
	my $itemscale = 1;

	#check all slots for items
  if(plugin::check_hasitem($client, 2415)) {
	 $itemscale = $itemscale + 2; #scale charm up by 1 per item
  }

  if(plugin::check_hasitem($client, 2421)) {
	 $itemscale = $itemscale + 2;
  }
 
  if(plugin::check_hasitem($client, 2393)) {
	 $itemscale = $itemscale + 2;
  }
  
	$questitem->SetScale($itemscale);
	AddMoneyToPP(0, 0, 0, $moneytogive, 1);

}
Reply With Quote