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

Post Reply
sunzhiheng888
Posts: 14
Joined: Thu Jun 23, 2016 1:50 am

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

Post by sunzhiheng888 » 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?
Image

User avatar
buddysievers
Posts: 97
Joined: Thu Dec 06, 2012 12:10 pm
Location: Germany

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

Post by buddysievers » Thu Jun 23, 2016 4:14 am

Whats a player helper?
A trust?

Delaide
Posts: 472
Joined: Sat Jun 14, 2014 8:58 am

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

Post by Delaide » Thu Jun 23, 2016 6:45 am

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.

User avatar
TeoTwawki
Developer
Posts: 523
Joined: Mon Jul 15, 2013 9:50 pm

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

Post by TeoTwawki » Thu Jun 23, 2016 9:01 am

faked pet object . pet names are sent in packet.
Hi, I run The Demiurge server.

Code: Select all

PLS USE [code]CODE TAGS[/code] WHEN POSTING CODE
Image
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding
DO NOT PRIVATE MESSAGE ME ABOUT BUGS

Post Reply