- Joined
- May 13, 2011
- Messages
- 1,497
- Reaction score
- 157
Hi Ragezoners,
Do you hate it to that you can't place more then 10 sentences on the taskbar?
Well i do espacialy for GameMasters during invasions and or other things.
Here is an small fix to let it work for GM's and or Higher
Open up WndTaskbar.cpp in your /_Interface Directory.
Find
g_WndMng.PutString( prj.GetText( TID_GAME_MAX_SHORTCUT_CHAT ), NULL, prj.GetTextColor( TID_GAME_MAX_SHORTCUT_CHAT ) );
Now what i did to make it work for GM only is this
Here you see that that the max for GM is now 19 and for normal players 9.
Now open up
DPSrvr.cpp in your Worldfolder
Find
pUser->AddDefinedText( TID_GAME_MAX_SHORTCUT_CHAT );
And change it to this
Now Rebuilt Neuz and Worldserver.
Your Gm's and or higher can now place more sentences on the taskbar.
With kind regards
Do you hate it to that you can't place more then 10 sentences on the taskbar?
Well i do espacialy for GameMasters during invasions and or other things.
Here is an small fix to let it work for GM's and or Higher
Open up WndTaskbar.cpp in your /_Interface Directory.
Find
g_WndMng.PutString( prj.GetText( TID_GAME_MAX_SHORTCUT_CHAT ), NULL, prj.GetTextColor( TID_GAME_MAX_SHORTCUT_CHAT ) );
Now what i did to make it work for GM only is this
if(g_pPlayer->IsAuthHigher( AUTH_GAMEMASTER ))
{
if(nchatshortcut > 19)
{
g_WndMng.PutString( prj.GetText( TID_GAME_MAX_SHORTCUT_CHAT ), NULL, prj.GetTextColor( TID_GAME_MAX_SHORTCUT_CHAT ) );
return FALSE;
}
}
else
{
if(nchatshortcut > 9)
{
g_WndMng.PutString( prj.GetText( TID_GAME_MAX_SHORTCUT_CHAT ), NULL, prj.GetTextColor( TID_GAME_MAX_SHORTCUT_CHAT ) );
return FALSE;
}
}
{
if(nchatshortcut > 19)
{
g_WndMng.PutString( prj.GetText( TID_GAME_MAX_SHORTCUT_CHAT ), NULL, prj.GetTextColor( TID_GAME_MAX_SHORTCUT_CHAT ) );
return FALSE;
}
}
else
{
if(nchatshortcut > 9)
{
g_WndMng.PutString( prj.GetText( TID_GAME_MAX_SHORTCUT_CHAT ), NULL, prj.GetTextColor( TID_GAME_MAX_SHORTCUT_CHAT ) );
return FALSE;
}
}
Here you see that that the max for GM is now 19 and for normal players 9.
Now open up
DPSrvr.cpp in your Worldfolder
Find
pUser->AddDefinedText( TID_GAME_MAX_SHORTCUT_CHAT );
And change it to this
if(pUser->IsAuthHigher( AUTH_GAMEMASTER ))
{
if(nchatshortcut > 19)
{
pUser->AddDefinedText( TID_GAME_MAX_SHORTCUT_CHAT );
return;
}
}
else
{
if(nchatshortcut > 9)
{
pUser->AddDefinedText( TID_GAME_MAX_SHORTCUT_CHAT );
return;
}
}
{
if(nchatshortcut > 19)
{
pUser->AddDefinedText( TID_GAME_MAX_SHORTCUT_CHAT );
return;
}
}
else
{
if(nchatshortcut > 9)
{
pUser->AddDefinedText( TID_GAME_MAX_SHORTCUT_CHAT );
return;
}
}
Now Rebuilt Neuz and Worldserver.
Your Gm's and or higher can now place more sentences on the taskbar.
With kind regards