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;
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
- if (pc_can_use_command(sd, "hide", COMMAND_ATCOMMAND)) - sd->status.option &= (OPTION_MASK | OPTION_INVISIBLE); - else sd->status.option &= OPTION_MASK;/** * 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;Link to comment
Share on other sites