Yoko

All sides of Injection
It is currently 2026-01-16 09:18:48

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
 Post subject: a quest for Yoko
PostPosted: 2004-05-15 02:54:21 
Offline

Joined: 2004-05-04 20:05:56
Posts: 27
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?


Top
   
 Post subject:
PostPosted: 2004-05-16 22:27:02 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
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.


Top
   
 Post subject:
PostPosted: 2004-05-16 22:49:37 
Offline

Joined: 2004-05-04 20:05:56
Posts: 27
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?


Top
   
 Post subject:
PostPosted: 2004-05-16 23:24:31 
Offline

Joined: 2004-04-06 12:13:49
Posts: 32
no....

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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited