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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

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