I made a little mod for GMs to hide on login, but have a little problem: when you log on a pvp map, the pvp things (time attack logo and 1/1) won't show and I cannot target players without shift.
Any ideas of what is causing this and how to fix it? Thanks.
/**
* Check if player have any item cooldowns on
**/
pc_itemcd_do(sd,true);
+ //Hide on login
+ if (pc_can_use_command(sd, "hide", COMMAND_ATCOMMAND)) {
+ sd->sc.option |= OPTION_INVISIBLE;
+ sd->vd.class_ = INVISIBLE_CLASS;
+ clif_changeoption(&sd->bl);
+ }
// Request all registries (auth is considered completed whence they arrive)
intif_request_registry(sd,7);
return true;
Question
Daegaladh
I made a little mod for GMs to hide on login, but have a little problem: when you log on a pvp map, the pvp things (time attack logo and 1/1) won't show and I cannot target players without shift.
Any ideas of what is causing this and how to fix it? Thanks.
Here's my code:
pc.c
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.