Tauro Posted June 1, 2019 Posted June 1, 2019 Hi need help to fix command pet stop attack ACMD_FUNC(stop) { struct pet_data *pd; pet_stop_attack(pd); return 0; } that I should add since it gives gravity like that Quote
0 Functor Posted June 1, 2019 Posted June 1, 2019 Try it: ACMD_FUNC(stop) { nullpo_retr(-1, sd); if (!sd->status.pet_id || sd->pd == NULL) { clif_displaymessage(fd, msg_txt(sd,184)); // Sorry, but you have no pet. return -1; } pet_stop_attack(sd->pd); return 0; } Quote
0 Tauro Posted June 2, 2019 Author Posted June 2, 2019 It did not help but I added 2 more lines and it's ok sd->pd->target_id = 0; pet_stop_attack(sd->pd); pet_stop_walking(sd->pd,1); Thank you Quote
Question
Tauro
Hi need help to fix command pet stop attack
that I should add since it gives gravity like that
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.