Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //CSharp
- //Note: All scripts must start with //CSharp or 'VB to determine thier compile language.
- // This is needed for auto scripts when using other feature of the bot. Finally, all
- // scripts must contain a Main function in which returning a string of -1 represents failed
- // execution and 1 represents successful execution.
- //---------------------------------------------------
- // FFXiClipper - XiClaim Script Edition
- // - Coded By: Wiccaan [wiccaan@live.com]
- // - Coded On: August 11, 2008
- //---------------------------------------------------
- // FFXiClipper sets your player status to a specific
- // number that the game recognizes to give a model
- // no collision detection with the environment of
- // the game. This allows you to walk through walls,
- // objects, other players, etc.
- //
- // This tool can get you banned! Be warned!
- //
- // I am not responsible to what happens while you
- // use this script. Use at your own risk!
- //---------------------------------------------------
- // FFXiClipper was originally created by Wiccaan on
- // December 19, 2007. Be kind, give credit!
- //---------------------------------------------------
- //======================================================================================
- // DO NOT EDIT BELOW THIS DIVIDER UNLESS YOU KNOW WHAT YOU ARE DOING!
- //======================================================================================
- public Form frmClipForm;
- public CheckBox chkClipEnabled;
- public System.Threading.Thread ClipThread;
- public System.Threading.ThreadStart ClipThreadStart;
- /*
- * Main()
- *
- * Purpose : Main script entry point. (First called function.)
- * Params : N/A
- * Returns : "1" on completion.
- *
- * Builds the GUI for the clipper form
- * and sets the thread start event.
- *
- */
- private string Main()
- {
- frmClipForm = new Form();
- this.chkClipEnabled = new System.Windows.Forms.CheckBox();
- this.chkClipEnabled.AutoSize = true;
- this.chkClipEnabled.Location = new System.Drawing.Point( 5, 5 );
- this.chkClipEnabled.Name = "chkClipEnabled";
- this.chkClipEnabled.Size = new System.Drawing.Size( 65, 20 );
- this.chkClipEnabled.Text = "Enable Clipping";
- this.chkClipEnabled.UseVisualStyleBackColor = true;
- this.chkClipEnabled.CheckedChanged += new System.EventHandler( this.chkClipEnabled_CheckedChanged );
- frmClipForm.Controls.Add( this.chkClipEnabled );
- frmClipForm.Name = "frmClipForm";
- frmClipForm.Size = new System.Drawing.Size( 175, 65 );
- frmClipForm.FormBorderStyle = FormBorderStyle.FixedDialog;
- frmClipForm.MaximizeBox = false;
- frmClipForm.Text = "FFXiClipper";
- frmClipForm.FormClosed += new System.Windows.Forms.FormClosedEventHandler( this.frmClipForm_FormClosed );
- frmClipForm.ResumeLayout( false );
- frmClipForm.PerformLayout();
- this.ClipThreadStart = new System.Threading.ThreadStart( Clip );
- frmClipForm.ShowDialog();
- return "1";
- }
- /*
- * Clip()
- *
- * Purpose : Clipping thread callback. Used to set player status while clipping is enabled.
- * Params : N/A
- * Returns : N/A
- *
- * While active, sets the player status to
- * the clipping status id.
- *
- */
- public void Clip()
- {
- while( this.ClipThread.IsAlive )
- {
- $P.PlayerStatus = 31;
- $F.Sleep(.1);
- }
- }
- /*
- * chkClipEnabled_CheckedChange()
- *
- * Purpose : Checkbox event handler for chkClipEnabled checkbox.
- * Params : object, EventArgs
- * Returns : N/A
- *
- * Called when a check changed event is raised
- * on the chkClipEnabled object. Determines the
- * check value and starts / stops the Clip thread
- * based on the check status.
- *
- */
- private void chkClipEnabled_CheckedChanged(object sender, EventArgs e)
- {
- if( chkClipEnabled.Checked )
- {
- try{
- this.ClipThread = new System.Threading.Thread( this.ClipThreadStart );
- this.ClipThread.IsBackground = true;
- this.ClipThread.Start();
- }catch(Exception x){
- MessageBox.Show( "Exception: " + x.ToString() );
- }
- }
- else
- {
- try{
- this.ClipThread.Abort();
- $P.PlayerStatus = 0;
- }catch(Exception x){
- MessageBox.Show( "Exception: " + x.ToString() );
- }
- }
- }
- /*
- * frmClipForm_FormClosed
- *
- * Purpose : Form event handler for close event.
- * Params : object, FormClosedEventArgs
- * Returns : N/A
- *
- * Called when the form close event is raised. Attempts
- * to kill the Clip thread and exit peacefully.
- *
- */
- private void frmClipForm_FormClosed(object sender, FormClosedEventArgs e)
- {
- try {
- if( this.ClipThread != null )
- {
- this.ClipThread.Abort();
- this.ClipThread.Join();
- $P.PlayerStatus = 0;
- }
- } catch(Exception x) {
- MessageBox.Show( "Exception: " + x.ToString() );
- }
- }
Add Comment
Please, Sign In to add comment