45 lines
		
	
	
		
			682 B
		
	
	
	
		
			Plaintext
		
	
	
	
			
		
		
	
	
			45 lines
		
	
	
		
			682 B
		
	
	
	
		
			Plaintext
		
	
	
	
 | 
						|
function setCustomData_po_ATFrozenLandExpWaterPole(obj, reciveData)
 | 
						|
{
 | 
						|
 | 
						|
	if(!obj) return;
 | 
						|
	
 | 
						|
	local index = reciveData.readDword(); // 樯策蝶
 | 
						|
	local expAttackRate = reciveData.readDword(); // ?嫦奢问溘
 | 
						|
	
 | 
						|
	local atk = sq_GetCurrentAttackInfo(obj);
 | 
						|
	
 | 
						|
	if(atk)
 | 
						|
	{
 | 
						|
		sq_SetCurrentAttackBonusRate(atk, expAttackRate);
 | 
						|
	}
 | 
						|
 | 
						|
	if(index == 1)
 | 
						|
	{	
 | 
						|
		local ani = obj.getCustomAnimation(0);
 | 
						|
		obj.setCurrentAnimation(ani);
 | 
						|
	}
 | 
						|
}
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
function onDestroyObject_po_ATFrozenLandExpWaterPole(obj, object)
 | 
						|
{
 | 
						|
 | 
						|
	if(!obj) return;
 | 
						|
 | 
						|
}
 | 
						|
 | 
						|
function onEndCurrentAni_po_ATFrozenLandExpWaterPole(obj)
 | 
						|
{
 | 
						|
 | 
						|
	if(!obj) return;
 | 
						|
	
 | 
						|
	if(!obj.isMyControlObject()) return;
 | 
						|
	
 | 
						|
 | 
						|
	sq_SendDestroyPacketPassiveObject(obj);
 | 
						|
 | 
						|
}
 |