Vice Underdogs

Scripting => Scripting Support => Topic started by: DarkSky on August 14, 2011, 08:23:59 am

Title: Need Challenge Command
Post by: DarkSky on August 14, 2011, 08:23:59 am
I need /c challenge and /c accept commands that also used in SvM server can anyone help me in squirel scripting i hope Stromeus or Thijn can help me
Title: Re: Need Challenge Command
Post by: Thijn on August 14, 2011, 12:24:19 pm
It's not that hard to make if you think straight.
The challenge command sets a variable for both players and display a PM for the second player asking if he wants to fight.
In the accept command it checks if the current player is being asked and if so teleport both players to the fighting spot.

In the kill signal check if killer and killed are challenging, if so display a message that the killer won and teleport him back.

Not that hard, huh?
Tip for everyone that "needs scripts". Try to think how the commands should function.
Make a textfile with what everything should do and check stuff you made.
Work clean :)
Title: Re: Need Challenge Command
Post by: DarkSky on August 15, 2011, 02:15:25 pm
Thijn Can U Give Me Example
Title: Re: Need Challenge Command
Post by: Thijn on August 16, 2011, 08:34:28 am
No, We're here to help not to give ready made scripts.

You need to learn how to script to get a script. Not asking others.

Try making easier scripts first if you find this too hard.
Title: Re: Need Challenge Command
Post by: Charley on August 16, 2011, 11:21:14 am
Try making easier scripts first if you find this too hard.

This this and this. The best thing you can do right now would be to make a stats or accounts system. They are the best way to learn about classes/variables and general syntax. Then after that, try the more obscure things like a challenge system.