Page 1 of 1

a quest for Yoko

Posted: 2004-05-15 02:54:21
by Spirito
ehm.. i have try emptycontainer well..

if i put in a secure box 1 bandage 100 gold and a robe
setrecevingcontainer on my backpack
emptycontainer on secure
it return to me 1 bandage 100 gold a robe
but in secure there are a key and a deed..
why i cannot pick up that?

i had see that..

Code: Select all

 //Yoko: check for identity of containers
      if(obj->get_serial()==to_container||obj->get_serial()==m_world->get_player()->get_serial())
      {
         sprintf(buf, "Yoko has save you from bankloss!");
           client_print(buf);
         return;
      }

        // find our from container
        GameObject * from_obj = m_world->find_object(obj->get_serial());

      int cnt=0; char sbuf[80];
        for(GameObject::iterator i = from_obj->begin(); i != from_obj->end(); ++i)
        {
            uint32 item = i->get_serial();
            uint16 quantity = i->get_quantity();
            if(quantity == 0) quantity = 1;
            if(item != to_container)
            {move_container(item, quantity, to_container);cnt++;
             if(empty_speed >0)
             {sprintf(sbuf,"Injection %i", cnt);
             SetWindowText(m_gui.m_main_window.get_hwnd(),sbuf);
             Sleep(empty_speed);}
            }

        }
        sprintf(buf, "%i objects transferred", cnt, to_container);
        client_print(buf);


if change this with try to drag the item that i will get?
it's possible?

Posted: 2004-05-16 22:27:02
by Yoko
it is no matters what script do you use (i not even read yours one)

it is principal thing that injection search functions operate only objects known

the known objects is objects which parameters where send from server and not yet deleted

for example if you open bag, server send list of it's contents so client notifyed of object list inside. all this objects now known.

if you never opened bag then there is no known objects inside.

so you can not get objects you never seen.

Posted: 2004-05-16 22:49:37
by Spirito
and if i modify the code for pick a key in a container that i can't open?

the program think that a key is in container no?

Posted: 2004-05-16 23:24:31
by WeedDevil
no....

because it cant get the Serial... the object is so spoken still not known... and thus you cant grab it...