Yoko
http://forum.yoko.com.ua/

a quest for Yoko
http://forum.yoko.com.ua/viewtopic.php?f=1&t=345
Page 1 of 1

Author:  Spirito [ 2004-05-15 02:54:21 ]
Post subject:  a quest for Yoko

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:
 //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?

Author:  Yoko [ 2004-05-16 22:27:02 ]
Post subject: 

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.

Author:  Spirito [ 2004-05-16 22:49:37 ]
Post subject: 

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?

Author:  WeedDevil [ 2004-05-16 23:24:31 ]
Post subject: 

no....

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

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/