Jump to content
  • 0
Lord Ganja

How to trigger a src variable using a npc script?

Question

I've added the patch OnPCUseSkillEvent and modified GoWarpDelay(which only triggers on players vs players)

 

Now im trying to tick the gowarpdelay using an npc script triggered by OnPCUseSkillEvent. is that possible?

 

Example:

OnPCUseSkillEvent:     if( @useskilltarget == 1002 ) { // If a skill is used on poring the gowarpdelay will tick                      // What should I put here to tick the gowarpdelay?     }
 
Thanks in advance!

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

You would need to setup some custom script_command and use that scriptcommand in order to change the src variables..

Share this post


Link to post
Share on other sites
  • 0

You would need to setup some custom script_command and use that scriptcommand in order to change the src variables..

What do you mean by custom script_command? 

 

EDIT:

I now know what you mean. anyway, can you help me create that script command? I'm really not good in src. :hmm:

Edited by Lord Ganja

Share this post


Link to post
Share on other sites
  • 0

Something along the lines of ...

BUILDIN(setgodelay){	TBL_PC* sd;	if(!(sd = script->rid2sd(st))) return false;		sd->canlog_tick = iTimer->gettick();	return true;}

and to initialize add

BUILDIN_DEF(setgodelay,""),

then save and recompile.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.