Jump to content
leeroy

brauch mal eine kleine hilfe in CPP

Recommended Posts

ich hab in pet.cpp was geändert was aber nicht gehen will

 

        // 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;
}


er geht immer nach dem else ob wohl ich sd->inventory.u.items_inventory.attribute == 1 das erfülle könnte mir da jemand sagen wo ich da ein fehler reingemacht habe

Link to comment
Share on other sites

Hallo leeroy jenkins, was war denn dein Bestreben bei dieser Modifikation?

Welchen Fehlercode spuckt deine Konsole aus?

Hast du ordnungsgemäß kompiliert nach der Änderung im /src Ordner?

Link to comment
Share on other sites

ich wolllte ein alternatives pet inubator bauen das hunger und die freundschaft wiederherstellt bei atribut 1 bauen

keine errors beim compiliren

Edited by leeroy
Link to comment
Share on other sites

Join the conversation

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

Guest
Reply to this topic...

×   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...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.