Jump to content
  • 0

slowdown speed script


hakuren

Question


  • Group:  Members
  • Topic Count:  120
  • Topics Per Day:  0.03
  • Content Count:  295
  • Reputation:   6
  • Joined:  12/02/11
  • Last Seen:  

how to make an npc that when you talk to that npc will give you slow movement by -100 and duration of 50000milisecond

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  89
  • Reputation:   7
  • Joined:  02/27/12
  • Last Seen:  

I would suggest using Decrease Agility Skill or @speed command.

 

Decrease Agility:

prontera,50,50,3	script	Slower	100,{
sc_start SC_DECREASEAGI,50000,10; // 50 seconds
end;
}

@speed:

prontera,50,50,3	script	Slower	100,{
atcommand "#speed "+strcharinfo(0)+" 200"; // Just change the 200 for the speed you wanted
end;
}

But you need something like a trigger to make the speed default. If it is an event, they can talk to an npc or enter a portal and insert the code below.

 

@speed (default):

atcommand "#speed "+strcharinfo(0)+" -1";

Their speed will also change back to normal if they reconnected/character select.

Edited by Jyabil
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  120
  • Topics Per Day:  0.03
  • Content Count:  295
  • Reputation:   6
  • Joined:  12/02/11
  • Last Seen:  

I would suggest using Decrease Agility Skill or @speed command.

 

Decrease Agility:

prontera,50,50,3	script	Slower	100,{
sc_start SC_DECREASEAGI,50000,10; // 50 seconds
end;
}

@speed:

prontera,50,50,3	script	Slower	100,{
atcommand "#speed "+strcharinfo(0)+" 200"; // Just change the 200 for the speed you wanted
end;
}

But you need something like a trigger to make the speed default. If it is an event, they can talk to an npc or enter a portal and insert the code below.

 

@speed (default):

atcommand "#speed "+strcharinfo(0)+" -1";

Their speed will also change back to normal if they reconnected/character select.

 

woooo it works sir the speed -1; hahahaha thank you

Link to comment
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.   Paste as plain text instead

  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.

×
×
  • Create New...