Tauro Posted June 1, 2019 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 16 Reputation: 3 Joined: 10/07/16 Last Seen: February 8 Share 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 Link to comment Share on other sites More sharing options...
0 Functor Posted June 1, 2019 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 352 Reputation: 267 Joined: 09/08/13 Last Seen: 12 hours ago Share 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 Link to comment Share on other sites More sharing options...
0 Tauro Posted June 2, 2019 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 16 Reputation: 3 Joined: 10/07/16 Last Seen: February 8 Author Share 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 Link to comment Share on other sites More sharing options...
Question
Tauro
Hi need help to fix command pet stop attack
that I should add since it gives gravity like that
Link to comment
Share on other sites
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.