Results 1 to 11 of 11

Thread: Balance Stun -<Stun the Elemental Balance>-

  1. #1
    Join Date
    Dec 2011
    Posts
    57
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default Balance Stun -<Stun the Elemental Balance>-

    Sorry guys didn't think it would be so much of a big deal but apparantly it was and giving credits wasn't enough to release something already public with modifications to give variety to the people, I've made one that deos it in fight caves, you can find it as a reply to l0ser69's thread.
    Last edited by Lolsen; 01-14-2012 at 10:06 AM.

  2. #2
    Join Date
    Jan 2010
    Posts
    1,414
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    You need to work on your standards, check out a great guide here: http://villavu.com/forum/showthread.php?t=60288

    This:
    Simba Code:
    Var
      stun, x, y, StartTime: Integer;
    You shouldn't use global variables. You should use local variables as much as you possibly can. Local variables are variables that are used only in a procedure/function.

    Like you have here:
    Simba Code:
    procedure DeclarePlayers;
      Var i:integer;
    Begin
      NumberOfPlayers(1);
      CurrentPlayer := 0;
      For I := 0 to (1-1) Do
        Players[i].BoxRewards  := ['mote', 'ostume', 'XP', 'Gem', 'ithril', 'oal', 'une', 'oins'];

      With Players[0] Do
      Begin
        Name        := '';     //Player username.
        Pass        := '';     //Player password.
        Nick        := ''; //Player nickname - 3-4 letters of Player username.
        Active      := True;
        Strings[0]  :='stun'; //Name of spellto cast.(See list of spells above)
      End;                         //Set to 'Range' if ranging!

    End;

    That is a local variable, the "i" and "var" before the begin .. end nest.


    This:
    Simba Code:
    procedure Findspell;
    begin

      stun := DTMFromString('mWAAAAHicY2FgYGBkgAA2KJsViLmhfBBIyylg6OyqZ/j9+zeDDK8KAxdQDBkzomEQAAAisQZh');
      SetAngle(true)
      GameTab(tab_Magic)
      If FindDTM(stun, X, Y, MIX1, MIY1, MIX2, MIY2)  then
      begin


      mouse( x, y, 3, 3, true);


      FreeDTM(stun);
      end;
    end;

    You free the DTM only if you actually find it. This is a memory leak and will cause an intensive haul on your computer. So you should have the "FreeDTM(stun)" after the finding method.


    Other than those things, it's a very good first script. Great job! You should check out Coh3n's guide next: http://villavu.com/forum/showthread.php?t=49089

  3. #3
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Congratulations on your script. By the way, is it possible to cast sells on a elemental balance while in building mode?

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  4. #4
    Join Date
    Dec 2011
    Posts
    57
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by Flight View Post
    Congratulations on your script. By the way, is it possible to cast sells on a elemental balance while in building mode?
    I just checked for you sir, :\ nope would be good but you can't

    My next update I'll make it in Fight caves safespotting one of the monsters behind a rock, no randoms/reporters, perfect place for stun bot.

  5. #5
    Join Date
    Dec 2011
    Location
    USA
    Posts
    362
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ty for making this man, ive been working on one for a while, as u know but this puts it all together!

  6. #6
    Join Date
    Nov 2011
    Posts
    132
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Hey this is my script Lolz.

  7. #7
    Join Date
    Oct 2007
    Location
    If (Online) then Loc := ('On comp') else Loc := ('Somewhere else!');
    Posts
    2,020
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    http://villavu.com/forum/showthread....074#post889074



    E:

    Yea its loser69's script

    you only changed 1 line maybe 2?

  8. #8
    Join Date
    Dec 2011
    Posts
    327
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You need to have actual permission from the owner of the script (Loser69) before stealing all his code and only change a few lines.

  9. #9
    Join Date
    Dec 2011
    Posts
    57
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Sorry guys didn't think it would be so much of a big deal but apparantly it was and giving credits wasn't enough to release something already public with modifications to give variety to the people, I've made one that deos it in fight caves, you can find it as a reply to l0ser69's thread.

  10. #10
    Join Date
    Nov 2011
    Posts
    132
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Hey no problem man it wasn't a big deal to me.

  11. #11
    Join Date
    Dec 2011
    Posts
    57
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by loser69 View Post
    Hey no problem man it wasn't a big deal to me.
    I know dude <3

    Just other people, well think of what I posted as a preset

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •