Results 1 to 20 of 20

Thread: GreenDragon Script

  1. #1
    Join Date
    Apr 2012
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default GreenDragon Script

    Hey, im working on completeing my first green dragon script with wildy wall and everything, problem is I keep getting a "Type mismatch" any help? I can give you a copy of this script when it ccomes out.

  2. #2
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    Post the code that gets the error. We can't help if you don't give much information
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  3. #3
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    You cannot assign a value of a different type to another type.. Bool cannot be assign an int.. int cannot be assigned a string.. etc.. There are functions for conversions such as

    StrToIntDef, IntToStr, Point cannot be assigned a TPA.. etc..

  4. #4
    Join Date
    Apr 2012
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Function PickUpDragonbones: Boolean;
    Var
    X, Y: Integer;
    begin
    If Dbones = False then Exit;
    If Dbones = True then
    begin
    FindNormalRandoms;
    If FindObjOnScreen(['ake', 'Take', 'ke', 'ak'], ['ragon bones'],14409957,1950,577,False,0.38,0.55) Then
    Begin
    Wait(500);
    writeln('You have found some Dragon Bones!');
    While IsMoving do
    Wait(50);
    FindNormalRandoms
    Wait(RandomRange(300,400));
    Inc(Bones);
    End;
    end;
    end;

  5. #5
    Join Date
    Apr 2012
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I'm just starting, so im probably messing something up

  6. #6
    Join Date
    Nov 2011
    Location
    Sacramento, California
    Posts
    366
    Mentioned
    4 Post(s)
    Quoted
    85 Post(s)

    Default

    At which line is the type mismatch? Also, try to put your code in the little code bar thingamjaigs.

  7. #7
    Join Date
    Apr 2012
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Mismatch is at line 1209 so the line that says If Dbones = False then Exit;
    I've honestly got no idea what the codebar is, im so new to this, and appreciate the help very much

  8. #8
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    What type is DBones? A string?

  9. #9
    Join Date
    Nov 2011
    Location
    Sacramento, California
    Posts
    366
    Mentioned
    4 Post(s)
    Quoted
    85 Post(s)

    Default

    what you do is put

    [CODE]

    and then put your script in between those two.
    when you're all done, put the same thing again but this time put a [/CODE

    make sure you don't forget the ending bracket, I didn't put it in cause then the code for the code wouldn't show haha

    it looks like this:

    Code:
     ello

  10. #10
    Join Date
    Apr 2012
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It could be, tbh i don't even know.. thats how new i am to this, i basically just looked off other scripts to try to get mine to work :/ but that is the only problem i've gotten with this script so far..

  11. #11
    Join Date
    Apr 2012
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Code:
    uhm test?

  12. #12
    Join Date
    Nov 2011
    Location
    Sacramento, California
    Posts
    366
    Mentioned
    4 Post(s)
    Quoted
    85 Post(s)

    Default

    Quote Originally Posted by Edgeeawaits View Post
    Code:
    uhm test?
    yay!

  13. #13
    Join Date
    Apr 2012
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    The problem with this might be that i copied like some parts from other scripts, so that might be giving me problems, maybe i should start with something easier? Although even then, i don't know how to do stufff myself, ill just look and use what other scripts have on them :/

  14. #14
    Join Date
    Mar 2012
    Location
    MW3
    Posts
    76
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Edgeeawaits View Post
    The problem with this might be that i copied like some parts from other scripts, so that might be giving me problems, maybe i should start with something easier? Although even then, i don't know how to do stufff myself, ill just look and use what other scripts have on them :/
    that's still pretty much plagiarism (Removed by BraK)
    Last edited by BraK; 04-19-2012 at 08:01 PM.
    Script(s) by me:

  15. #15
    Join Date
    Apr 2012
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Bobby Boo View Post
    that's still pretty much plagiarism
    That may be so, but its not copywrite? and even if it is, i honestly dont care.. ive talked to the people whos scripts im using so they're fine with it.
    I'm just new to this k? If i copy something, im just learning..
    Last edited by BraK; 04-19-2012 at 08:01 PM.
    Completed Scripts [2]:
    PowerWillowsby Edge
    AllInOneChopper by Edgee

  16. #16
    Join Date
    Apr 2012
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Bobby Boo View Post
    that's still pretty much plagiarism
    Clearly it isn't you cant copy something that isn't copywrite, even if it is, they're alright with it and I have permission to use it so its nbd. I'm just learning, ill not copy stuff eventually..
    Last edited by BraK; 04-19-2012 at 08:01 PM.
    Completed Scripts [2]:
    PowerWillowsby Edge
    AllInOneChopper by Edgee

  17. #17
    Join Date
    Mar 2006
    Location
    Behind you
    Posts
    3,193
    Mentioned
    61 Post(s)
    Quoted
    63 Post(s)

    Default

    If he has the original script writers permission then he is allowed to modify it.

    "Sometimes User's don't need the Answer spelled out with Code. Sometimes all they need is guidance and explanation of the logic to get where they are going."

  18. #18
    Join Date
    Apr 2012
    Posts
    3,356
    Mentioned
    34 Post(s)
    Quoted
    218 Post(s)

    Default

    Look forward to this.. I was gonna start this soon >.<

  19. #19
    Join Date
    Oct 2011
    Posts
    54
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Sounds like you're having trouble with some of the basics, such as declaring the correct variables, etc. I personally think you should take smaller steps and try making a basic script first, such as a powerchopper/miner, to learn basic functions, then slowly proceed with your coding. It'll take far longer to make a script copying and pasting bits if you're not even sure what they do, as well as this, you'll have many bugs and errors, the script probably wont even work and you'll feel like its a waste. At least if you make the code (mostly) then you'll feel like you've achieved more and you'll also know basic - intermediate coding.
    Just my opinion anyway :P Good luck with whatever you decide to do.

  20. #20
    Join Date
    Dec 2011
    Location
    Ontario, Canada
    Posts
    1,735
    Mentioned
    5 Post(s)
    Quoted
    89 Post(s)

    Default

    Quote Originally Posted by BraK View Post
    If he has the original script writers permission then he is allowed to modify it.
    Can he not modify it for his script as a private script (not released to public) and even if he did, we would have no idea?



    @OP you need to answer ggzz's question in order for us to be able to help you
    FEEL FREE TO PM ME ABOUT ANYTHING! Will help over Teamviewer...just ask!! "WITH A NEW QUESTION COMES A NEW CHALLENGE"
    Silentcore's AIO Service team !!! Pm me if you want questing done or service done or post on thread ofc

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

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