Page 1 of 2

MoveItem

Posted: 16.07.2008 18:28
by -=JoKeR=-
не хочет перекидывать...
что ему нужно ?

Code: Select all

  procedure Get_Gold;
  var tmpgold : cardinal;
      tmpgoldcount : integer;
    begin
	  checksave;
	  UseObject(FindType(Corpse,ground));
	  checklag;
	  wait(2000);
	  tmpgold := FindType(Gold_Coins,Corpse);
	  If FindCount >= 1 then
	    begin
		  tmpgoldcount := GetQuantity(FindItem);
		  checklag;
		  wait(500);
		  MoveItem(tmpgold,tmpgoldcount,backpack,0,0,0);
		  AddToSystemJournal('-= Золото найдено, положил в backpack =-');
		end
	  else
	    begin
		  AddToSystemJournal('-= Нет золота в трупе о_0 , шота тут не то... =-');
		end;
	end;

Posted: 16.07.2008 18:46
by Scripts Writer
FindItem используй

Posted: 16.07.2008 18:48
by -=JoKeR=-
использовал

Posted: 16.07.2008 18:54
by Scripts Writer

Code: Select all

     UseObject(FindType(Corpse,ground)); 
     checklag; 
     wait(2000); 
     tmpgold := FindType(Gold_Coins,Corpse);
Corpse, я так понимаю, это тип?

Posted: 16.07.2008 18:56
by -=JoKeR=-
Да, ты правильно понял =)

Posted: 16.07.2008 18:56
by Scripts Writer
Разобрался?

Posted: 16.07.2008 18:57
by grundick
по контексту видимо да

Posted: 16.07.2008 18:58
by -=JoKeR=-
Не не, не разобрался, я бы написал =)
Что там не так ?

Posted: 16.07.2008 19:00
by Scripts Writer

Code: Select all

FindType(Gold_Coins,Corpse);

Posted: 16.07.2008 19:04
by -=JoKeR=-
и? =)
поподробнее, без намёков )

Posted: 16.07.2008 19:05
by Scripts Writer

Code: Select all

     FindType(Corpse,ground); 
     FindType(Gold_Coins,Corpse);

Posted: 16.07.2008 19:24
by -=JoKeR=-
ноль на массу...
не хочет

Code: Select all

  procedure Get_Gold;
  var tmpgold : cardinal;
      tmpgoldcount : integer;
    begin
	  FindType(Corpse,ground);
	  checksave;
	  UseObject(FindItem);
	  checklag;
	  wait(2000);
	  FindType(Gold_Coins,Corpse);
	  tmpgold := FindType(Gold_Coins,Corpse);
	  If FindCount >= 1 then
	    begin
		  tmpgoldcount := GetQuantity(FindItem);
		  checklag;
		  wait(500);
		  MoveItem(tmpgold,tmpgoldcount,backpack,0,0,0);
		  AddToSystemJournal('-= Золото найдено, положил в backpack =-');
		end
	  else
	    begin
		  AddToSystemJournal('-= Нет золота в трупе о_0 , шота тут не то... =-');
		end;
	end;

Posted: 16.07.2008 19:34
by Vano
Вот смотри:

Code: Select all

FindType(Corpse,ground); 
Здесь ты ищешь труп по типу, а вот здесь:

Code: Select all

FindType(Gold_Coins,Corpse); 
Ты ищешь деньги в трупе. Но Corpse - это тип, а не ID.

Posted: 16.07.2008 19:35
by Scripts Writer
Издеваешься? Как ты тип тела Corpse можешь использовать как контейнер?

Posted: 16.07.2008 20:04
by -=JoKeR=-
Тю блин, так бы и сказал сразу =)
Я просто целый день пишу программу, моцк не сильно соображает уже.
Всё разобрался, всем спасибо.
Можно:
[Close]