IPB

Welcome Guest ( Log In | Register )

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 
Reply to this topicStart new topic
> Starcraft League
7thAce
post Jul 18 2009, 06:24 PM
Post #1


The Failing Failer
*****

Group: Sr. Members
Posts: 801
Joined: 5-December 07
From: Somewhere Failing
Member No.: 31,195



Author: 7thAce
Explanation: Keeps track of users wins and losses in Starcraft 1v1 games.
Commands: Remember to replace . with your trigger.

General commands: (Can be used by anyone unless marked otherwise)
.myrank [Username] - Returns rank and rating of the user.
.signin - Signs into the script.
.signout - Signs out of the script. Will auto signout if you leave battle.net.
.challenge <username> - Challenges a user. They will be notified of a challenge when they join the channel next.
.regref <username> - Requires 100 access: Promotes a user to referee rank.
.ivdver - Returns the current script version.

Referee commands:
.agame <username>/<race> <username2>/<race> - Records a game into the database. Ex. .agame Bob/Zerg Joe/Protoss It will return an ID which you need to remember (or have the players remember). Please use the whole race name, not an abbreviated form (Protoss not toss, zerg not zergies).
.ivdwin <User who won> <GameID> - Records a win and loss for each player, adds the game to the history, and edits the ranks and ratings.

In-bot commands:
/ivdloadmsg - Turns load messages off.
/updatecheck - Checks for updates for the script. Use frequently.
/whatsnew - Displays the current changelog for the version. Useful for knowing what I fixed and added.
/idle<on/off> - Turns IVD idles on or off. Ex. /idleon (no space)
/setidle <Idle> - Sets the IVD idle message. See the script for idle variables.
/setidletime <Number> - Sets the IVD idle wait time in minutes.
/mgreet <on/off> - Turns member greets on or off. (member being someone in the league)
/nmgreet <on/off> - Turns nonmember greets on or off.
/greetid <1/2/3> - Sets the greet to a Message(1), Emote(2), or Whisper(3).
/setmgreet <greet> - Sets the member greet. See the top of the script for variables.
/setnmgreet <greet> - Sets the nonmember greet.

Important notes:
All external commands (except ivdver) can be changed at the top of the script. For security, there is no command to change the name of commands.


Download version 1.13 of the Starcraft League: Attached File  Starcraft_League.txt ( 24.57k ) Number of downloads: 325

Right click > Save target/link as... > Stealthbot plugins folder > Save in plugins folder, reload script
or
Click > Copy code > Go to plugins folder, create new txt file > Paste code in, save, reload script

Support topic (click)

This post has been edited by 7thAce: Aug 23 2009, 11:34 AM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Ribose
post Jul 18 2009, 08:31 PM
Post #2


So, it's all about fame, huh?
*****

Group: Global Moderators
Posts: 2,950
Joined: 13-February 06
From: Connecticut, USA. (GMT -5:00)
Member No.: 74



QUOTE(7thAce @ Jul 18 2009, 08:24 PM) *
Because of the way this script records information, users with a closed bracket "]" cannot join the league. It causes errors with the .ini file that the script uses to record user stats.
It's always possible to escape strings for situations like this.

Here's what I would do:
When storing the username, repace the "]" with "," (since Battle.net usernames cannot have , in them!).
When retrieving the username, replace "," with "]" again.
Problem solved. Users won't know the difference.


--------------------
~Ribose
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 21st July 2019 - 12:28 AM
Skin by Andrea
Website Legal Information | Hosted by LunarPages