Signal pearl the success of the work, should be how to set u
Posted: Thu Jun 23, 2016 2:23 am
I tried to write a copy of Signal_Pearl.lua, but how to call Helper Player work?
Which spawning should be called for?
Call the devil it will not work HP = 0 damage = 1
How can I debug?
\scripts\globals\items\SIgnal_pearl.lua
-- ID: 14810
-- Signal Pearl
-- Player Helper
-- OnItemCheck
function onItemCheck(target)
return 0;
end;
-- OnItemUse
function onItemUse(target)
local duration = 3600;
target:spawnPet(PET_IFRIT);
target:getPet():addHP( 50000 );
target:getPet():addMod(MOD_ATT,2500);
end;
Someone did, how did he do it?

Which spawning should be called for?
Call the devil it will not work HP = 0 damage = 1
How can I debug?
\scripts\globals\items\SIgnal_pearl.lua
-- ID: 14810
-- Signal Pearl
-- Player Helper
-- OnItemCheck
function onItemCheck(target)
return 0;
end;
-- OnItemUse
function onItemUse(target)
local duration = 3600;
target:spawnPet(PET_IFRIT);
target:getPet():addHP( 50000 );
target:getPet():addMod(MOD_ATT,2500);
end;
Someone did, how did he do it?
