Jump to content
  • 0

need little c++ help


leeroy

Question


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  21
  • Reputation:   0
  • Joined:  04/28/12
  • Last Seen:  

i have a little problem

my code get me after else

my egg attribute its 1

 

sorry for my bad en

Quote

        // Hatch the pet
        if(sd->inventory.u.items_inventory.attribute == 1) {
            pet_birth_process2( sd, p );
        } else {
            // Hide egg from inventory.
            // Set pet egg to broken, before the inventory gets saved
            sd->inventory.u.items_inventory.attribute = 1;
            pet_birth_process( sd, p );
        }

    } else {
        pet_data_init(sd,p);

        if(sd->pd && sd->bl.prev != NULL) {
            if(map_addblock(&sd->pd->bl))
                return 1;

            clif_spawn(&sd->pd->bl);
            clif_send_petdata(sd,sd->pd,0,0);
            clif_send_petdata(sd,sd->pd,5,battle_config.pet_hair_style);
            clif_pet_equip_area(sd->pd);
            clif_send_petstatus(sd);
        }
    }

    return 0;
}

 

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...