Page 1 of 1

script can not working

Posted: 02.12.2013 17:03
by mixers

Code: Select all

Program Moongate;
const 
  moongate = $0F6C;
var
  currentgumpscount : integer;
begin
  currentgumpscount := getgumpscount;
  findtype(moongate,ground);
  useobject(finditem);
  while getgumpscount <= currentgumpscount do
    wait(100);
  numgumpbutton(getgumpscount-1,12);
  wait(1000);
  numgumpbutton(getgumpscount-1,1);

end.
can not travel

Code: Select all

Program New;
  const
  Amber = $0F25 ;     
  vendor = $000008D5;
  itemcolor = $0000;

procedure sell;
begin
  SetAutoSellDelay(4);
  newmovexy(getx(vendor), gety(vendor), true, 1, true);
  //UOSay(GetName (vendor)+ ' sell'); 
  SetContextMenuHook(vendor,3);
  wait(150);
  AutoSell(Amber,itemcolor,10);
end;

begin
while count(amber)>0 do 
  begin
  addtosystemjournal(inttostr(findquantity));
  sell;                                      
  wait(1000);
  end;
end.
can not sell item,until click npc in game.

Re: script can not working

Posted: 05.12.2013 16:54
by mixers
no one can help me :cry: :cry: :cry:

Re: script can not working

Posted: 05.12.2013 19:11
by Vizit0r
help in what?
you set the hook for Context menu, but nowhere call this request menu.
when you click in game - you request it.

Re: script can not working

Posted: 10.12.2013 14:10
by mixers
thanks. now it's ok.