70 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
		
		
			
		
	
	
			70 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
| 
								 | 
							
								// 葆彻掘羹 - 赀楼撩
							 | 
						|||
| 
								 | 
							
								function setCustomData_po_ATElementalRainBigBall(obj, receiveData)
							 | 
						|||
| 
								 | 
							
								{
							 | 
						|||
| 
								 | 
							
									if(!obj)
							 | 
						|||
| 
								 | 
							
										return;
							 | 
						|||
| 
								 | 
							
									// 葆虽虞 赎 葆彻掘暧 奢问溘 掸?
							 | 
						|||
| 
								 | 
							
									local attackBonusRate = receiveData.readDword();
							 | 
						|||
| 
								 | 
							
									local attackInfo = sq_GetCurrentAttackInfo(obj);
							 | 
						|||
| 
								 | 
							
									local mage = obj.getTopCharacter();
							 | 
						|||
| 
								 | 
							
									if (mage)
							 | 
						|||
| 
								 | 
							
										attackInfo.setElement(mage.getThrowElement());
							 | 
						|||
| 
								 | 
							
										
							 | 
						|||
| 
								 | 
							
									sq_SetCurrentAttackBonusRate(attackInfo, attackBonusRate);	
							 | 
						|||
| 
								 | 
							
									sq_SetCurrentAttackInfo(obj,attackInfo);
							 | 
						|||
| 
								 | 
							
									
							 | 
						|||
| 
								 | 
							
										
							 | 
						|||
| 
								 | 
							
									// 觼煎栖赝 嬴桧蛊缣 暧?怃 嫦饵陕紫陛 渗唳脾
							 | 
						|||
| 
								 | 
							
									local mage = obj.getTopCharacter();
							 | 
						|||
| 
								 | 
							
									if (!mage) return;
							 | 
						|||
| 
								 | 
							
									
							 | 
						|||
| 
								 | 
							
									local angle = sq_GetIntData(mage, SKILL_ELEMENTAL_RAIN, 6);
							 | 
						|||
| 
								 | 
							
									
							 | 
						|||
| 
								 | 
							
									// ??赝暧 桧翕 扑姜
							 | 
						|||
| 
								 | 
							
									obj.sq_SetMoveParticle("Particle/ATElementalRainBigBall.ptl", 0.0, -angle.tofloat());
							 | 
						|||
| 
								 | 
							
								}
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								function onAttack_po_ATElementalRainBigBall(obj, damager, boundingBox, isStuck)
							 | 
						|||
| 
								 | 
							
								{
							 | 
						|||
| 
								 | 
							
									if (!obj)
							 | 
						|||
| 
								 | 
							
										return 0;
							 | 
						|||
| 
								 | 
							
									return 0;
							 | 
						|||
| 
								 | 
							
								}
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								function procAppend_po_ATElementalRainBigBall(obj)
							 | 
						|||
| 
								 | 
							
								{
							 | 
						|||
| 
								 | 
							
									if(!obj)
							 | 
						|||
| 
								 | 
							
										return;
							 | 
						|||
| 
								 | 
							
									if (sq_GetZPos(obj) < 16)
							 | 
						|||
| 
								 | 
							
									{
							 | 
						|||
| 
								 | 
							
										if (obj.isMyControlObject())
							 | 
						|||
| 
								 | 
							
										{
							 | 
						|||
| 
								 | 
							
											local mage = obj.getTopCharacter();
							 | 
						|||
| 
								 | 
							
											mage = sq_ObjectToSQRCharacter(mage);
							 | 
						|||
| 
								 | 
							
											
							 | 
						|||
| 
								 | 
							
											if (mage)
							 | 
						|||
| 
								 | 
							
											{
							 | 
						|||
| 
								 | 
							
												// 葆虽虞 ?嫦 等嘐虽 椭横螃晦
							 | 
						|||
| 
								 | 
							
												local skill = sq_GetSkill(mage, SKILL_ELEMENTAL_RAIN);
							 | 
						|||
| 
								 | 
							
												local attackBonusRate = mage.sq_GetBonusRateWithPassive(SKILL_ELEMENTAL_RAIN, STATE_ELEMENTAL_RAIN, 2, 1.0);
							 | 
						|||
| 
								 | 
							
												
							 | 
						|||
| 
								 | 
							
												
							 | 
						|||
| 
								 | 
							
												// 嬴桧蛊缣 暧? 晦栋 跷陛
							 | 
						|||
| 
								 | 
							
												// 葆虽虞 ?嫦暧 饵桧锷蒂 渗唳? 热 毡朝 晦栋歜
							 | 
						|||
| 
								 | 
							
												local sizeRate = sq_GetIntData(mage, SKILL_ELEMENTAL_RAIN, 4);
							 | 
						|||
| 
								 | 
							
												
							 | 
						|||
| 
								 | 
							
												// 葆虽虞 ?嫦 螃粽薛?蒂 当撩?棻.
							 | 
						|||
| 
								 | 
							
												sq_BinaryStartWrite();
							 | 
						|||
| 
								 | 
							
												sq_BinaryWriteDword(attackBonusRate);
							 | 
						|||
| 
								 | 
							
												sq_BinaryWriteWord(sizeRate);
							 | 
						|||
| 
								 | 
							
												sq_SendCreatePassiveObjectPacket(obj, 24220, 0, 0, 1, 0, obj.getDirection());
							 | 
						|||
| 
								 | 
							
											}
							 | 
						|||
| 
								 | 
							
											
							 | 
						|||
| 
								 | 
							
											// 螃粽薛? 模资
							 | 
						|||
| 
								 | 
							
											sq_SendDestroyPacketPassiveObject(obj);
							 | 
						|||
| 
								 | 
							
										}
							 | 
						|||
| 
								 | 
							
									}
							 | 
						|||
| 
								 | 
							
								}
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								 |