Results 1 to 5 of 5

Thread: can't type and count!

  1. #1
    Join Date
    Nov 2006
    Location
    belgium
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default can't type and count!

    hi i'm working on a autosmelter.but actually i just took the autosmelter from x'can and fixed some things.i'll show the procedure:

    Procedure withdrawores;
    begin
    if bar = 'bronze' then
    begin
    BankMouse(1,false)
    ClickOption('X',1)
    repeat
    wait(500+random(200))
    until (FindText(x,y,'Enter amount:',UpChars,MCX1,MCY1,MCX2,MCY2)=true)
    wait(500+random(50))
    sendkeys('1')//this works but not TypeSend or speak or,...
    wait(500+random(50))
    sendkeys('4')//same for this
    wait(124+random(56))
    sendkeysvb ('{ENTER}',false)//if TypeSend would work i shouldn't use this
    BankMouse(2,false)
    ClickOption('X',1)
    repeat
    wait(500+random(500))
    until (FindText(x,y,'Enter amount:',UpChars,MCX1,MCY1,MCX2,MCY2)=true)
    Sendkeys('14')//same for this
    wait(124+random(56))
    sendkeysvb ('{ENTER}',false)//and this
    end;

    sendkeys type's really fast so i wan't to use something that is typing like a human.Sumillion told me to use Typesend but when i use that he doesn't type so that's problem 1,if you know a lot of typing procedures and functions plz post them!

    then we have the cauting prob!normally i used
    repeat
    until (invcount=14)but when he gets a saphire or something from a random then he stops smelting to early!so i used

    Procedure infurnace;
    begin
    if (invfull=false) then
    begin
    writeln('going to bank...')
    end
    else
    begin
    antirandoms;
    repeat
    FindMSColorTol(x,y,furnace,5)
    wait(50+random(10))
    MMouse(x,y,0,0)
    wait(20+random(10))
    until IsUpTextMulti('melt','me','lt')
    begin
    Mouse(x,y,0,0,true)
    writeln('found furnace')
    wait(500+random(200))
    AntiRandoms;
    if bar ='bronze' then//when bronze bar!!!
    begin
    wait(200+random(200))
    Mouse(49,430,0,0,false)
    wait(1000+random(500))
    Mouse(49,430,1,1,true)
    wait(500+random(500))
    repeat
    wait(1000+random(500))
    until (FindText(x,y,'Enter amount:',UpChars,MCX1,MCY1,MCX2,MCY2)=true)
    wait(24+random(36))
    Sendkeys('1')
    wait(24+random(36))
    Sendkeys('4')
    wait(104+random(56))
    sendkeysvb ('{ENTER}',false)
    repeat
    wait(4240+random(500))
    GetNewChatMsg;
    antirandoms;
    until(CountItemBmpTol(BronzeBar, 2)=14)//normally this should count all the bars until he has 14 of them and then he should go back to the bank but he just keeps standing their until he is logged out.

    plz help me i have over 10k steel bars to smelt and i've smelted 20k before all by hand.And now i'm bored of it!
    end;

  2. #2
    Join Date
    Sep 2006
    Posts
    916
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Just use XCan's smelter, it's ownage dude. Also, regarding the text thing, TypeSend should work.
    Instead of:

    wait(24+random(36))
    Sendkeys('1')
    wait(24+random(36))
    Sendkeys('4')

    Do:

    TypeSend('14')

  3. #3
    Join Date
    Nov 2006
    Location
    belgium
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    well yea that's the problem if i use TypeSend ('14') he just doesn't do anything. but the biggest problem is that counting problem when I get 14 bronze bars in my inventory he should now that i am rdy and when i'm rdy he should go to bank.Now he goes to the bank if i use until (invcount=14)but that's always correctly so i wanne use until(CountItemBmpTol(BronzeBar, 5)=14)he just keeps standing their.Or does this function really laggs so that it takes a few minutes,,,

  4. #4
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    why don't you just use the original x'can smelter? is there any problems you are having with that smelter? if you have problems with it post here and maybe me or some other people can help.

  5. #5
    Join Date
    Nov 2006
    Location
    belgium
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    look dude this is the third and the last time i am saying i have probs whit the real version and my version he doesnt type and when he is rdy smelting he just keeps standing their so i changed the script and when i use typeSend he doesnt type but using sendkeys is detectable so i am searching something that types like a human and for the counting i also need something else

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Count question.
    By Dangerous Garden Tools in forum OSR Help
    Replies: 1
    Last Post: 01-03-2008, 01:27 AM
  2. Count DTM
    By marre in forum OSR Help
    Replies: 6
    Last Post: 11-29-2007, 02:20 PM
  3. I cant count :o
    By Puffo in forum OSR Help
    Replies: 2
    Last Post: 11-25-2007, 03:14 PM

Posting Permissions

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