Page 1 of 1

Signal pearl the success of the work, should be how to set u

Posted: Thu Jun 23, 2016 2:23 am
by sunzhiheng888
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?
Image

Re: Signal pearl the success of the work, should be how to s

Posted: Thu Jun 23, 2016 4:14 am
by buddysievers
Whats a player helper?
A trust?

Re: Signal pearl the success of the work, should be how to s

Posted: Thu Jun 23, 2016 6:45 am
by Delaide
To my knowledge, there is no scripting done on the adventurer fellow, so using the item, if it is even usable, would not do much.

Re: Signal pearl the success of the work, should be how to s

Posted: Thu Jun 23, 2016 9:01 am
by TeoTwawki
faked pet object . pet names are sent in packet.