login
March 28, 2024, 01:38:13 pm

Author Topic: Need Challenge Command  (Read 1611 times)

0 Members and 1 Guest are viewing this topic.

DarkSky

  • Newbie
  • *
  • Posts: 5
    • View Profile
Need Challenge Command
« 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
« Last Edit: August 14, 2011, 08:26:41 am by DarkSky »
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor


Thijn

  • Forum Administrator
  • Crazy Man
  • *
  • *
  • *
  • Posts: 2946
  • Country: nl
    • View Profile
Re: Need Challenge Command
« Reply #1 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 :)
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

I'm not totally useless,
I can be used as an bad example ;)

"Never do Today, What you can do Tomorrow"


DarkSky

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Need Challenge Command
« Reply #2 on: August 15, 2011, 02:15:25 pm »
Thijn Can U Give Me Example
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor


Thijn

  • Forum Administrator
  • Crazy Man
  • *
  • *
  • *
  • Posts: 2946
  • Country: nl
    • View Profile
Re: Need Challenge Command
« Reply #3 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.
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

I'm not totally useless,
I can be used as an bad example ;)

"Never do Today, What you can do Tomorrow"


Charley

  • Vice Underdog
  • Crazy Man
  • *
  • *
  • Posts: 4749
  • Country: 00
    • View Profile
Re: Need Challenge Command
« Reply #4 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.
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

Writer of excessively long posts