111
This commit is contained in:
44
character/atmage/frozenland/po_atfrozenlandexpwaterpole.nut
Normal file
44
character/atmage/frozenland/po_atfrozenlandexpwaterpole.nut
Normal file
@@ -0,0 +1,44 @@
|
||||
|
||||
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);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user