Author |
Message |
Witchie NL Seasoned Helper
Age:35 Gender: Joined: Jul 24 2005 Posts: 112 Location: Veere, Zeeland, Netherlands Offline
|
Posted: Mon Aug 14, 2006 8:44 am Post subject: !challenge & !accept |
 |
|
|
|
Does anyone have any idea how to implent an !challenge <name> and !accept <name> part in an mervbot plugin. As told in another topic im working on an duel bot (edit from catid's duel.dll) but i have no idea how to build this part.
When done i will post the plugin here. |
|
Back to top |
|
 |
Witchie NL Seasoned Helper
Age:35 Gender: Joined: Jul 24 2005 Posts: 112 Location: Veere, Zeeland, Netherlands Offline
|
Posted: Mon Aug 14, 2006 8:46 am Post subject: |
 |
|
|
|
It keeps track of scores to. |
|
Back to top |
|
 |
k0zy Server Help Squatter

Gender: Joined: Jan 11 2003 Posts: 571 Location: Germany Offline
|
Posted: Mon Aug 14, 2006 8:52 am Post subject: |
 |
|
|
|
I was just about to start a duel plugin, too.
What part are you having problems at?
Finding the player or saving the challange?
foomy hulk _________________ It's a shark! Oh my god! Unbelievable! |
|
Back to top |
|
 |
Witchie NL Seasoned Helper
Age:35 Gender: Joined: Jul 24 2005 Posts: 112 Location: Veere, Zeeland, Netherlands Offline
|
|
Back to top |
|
 |
Witchie NL Seasoned Helper
Age:35 Gender: Joined: Jul 24 2005 Posts: 112 Location: Veere, Zeeland, Netherlands Offline
|
Posted: Mon Aug 14, 2006 3:21 pm Post subject: |
 |
|
|
|
i just wrote that with bare hands and it might be fucked coz this forum doest suport the Tab key. There might be some bug's to but this will explain it a bit.
Ive tryed it with playertag's to but when 2 players challenge the same player its fucked. only allows the 2nd player to duel. |
|
Back to top |
|
 |
Mine GO BOOM Hunch Hunch What What

Age:41 Gender: Joined: Aug 01 2002 Posts: 3615 Location: Las Vegas Offline
|
Posted: Mon Aug 14, 2006 4:36 pm Post subject: |
 |
|
|
|
Witchie NL wrote: | i just wrote that with bare hands and it might be fucked coz this forum doest suport the Tab key. There might be some bug's to but this will explain it a bit. |
Found some code that will allow TABs to be inputted into textareas under IE fine, but with Firefox, it inputs the tab and then it highlights the preview button like before. But at least it puts a copy of a tab in the text box (which you can then copy/paste as needed). |
|
Back to top |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Mon Aug 14, 2006 11:31 pm Post subject: |
 |
|
|
|
Or use player tags. _________________ This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him. |
|
Back to top |
|
 |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
|
Back to top |
|
 |
k0zy Server Help Squatter

Gender: Joined: Jan 11 2003 Posts: 571 Location: Germany Offline
|
Posted: Tue Aug 15, 2006 5:44 am Post subject: |
 |
|
|
|
You could make up a random number.
Tag the challenger with that number, the competitor with that number+1.
That way you can identify both players before the duel.
If a player accepts a duel, simply search for the player with his tag -1.
That might work.
The number can also be some autoincrementing id, which would probably be better. |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Tue Aug 15, 2006 11:53 am Post subject: |
 |
|
|
|
Uhh yeah, auto increment would be a lot better than a random number.
But you could allocate a structure for each duel and make the player tag a pointer to the structure. That would be very easy and simple. |
|
Back to top |
|
 |
Witchie NL Seasoned Helper
Age:35 Gender: Joined: Jul 24 2005 Posts: 112 Location: Veere, Zeeland, Netherlands Offline
|
Posted: Wed Aug 16, 2006 7:55 am Post subject: |
 |
|
|
|
ok ima try a few things. ima use struct's and the idea about give people tag's with each an unique duelID. ima post the updates here.
currently i have some bs with windows so ima need to reinstal it and tweak everything thing whole again, reinstal all programs etc etc. then ill start working on it. |
|
Back to top |
|
 |
|