nationisapro97 / trinityadmin

Automatically exported from code.google.com/p/trinityadmin
0 stars 0 forks source link

Jail(A) and Jail(H) on Char2 and Who tabs should have a default location and no global notify #52

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Version of your game client (3.1.3, 3.2.2a, etc): 3.3.5
Language of your game client (enUS, deDE,etc): enUS
Version and revision of your TrinityAdmin: r19
Language selected in trinityAdmin: English
Trinity or MaNGOS? Trinity
Version of TrinityCore/MaNGOS (if known): 9182
Your Operating System and Version (Windows, Linux, etc): Windows

What was the expected output?
Clicking on a player and clicking "Jail(A)" should send that player to a 
default Alliance jail without forcing a GM to let every player know unless he 
wants it to be known.

What do you see instead?
A Global Notify of "<Player> has been found guilty and jailed."
What steps will reproduce the problem?

1. Click on player
2. Click on Jail(A) or Jail(H) in either Char2 or Who tab.
3. When the "jailed" player is still standing there, prepare to look like an 
incompetent GM.

Original issue reported on code.google.com by gregariousjb on 7 Aug 2010 at 1:34

GoogleCodeExporter commented 8 years ago
The Jail locations are referenced in the teleport table on the server. 
TrinityAdmin has no control over this table. The Jail commands use the .tele 
name PLAYERNAME LOCATION convention, so the LOCATION must be in the teleport 
table. There is no .tele name xyz command, so coordinates do not work. 

In summary, please remember to add the jail locations when you have a fresh 
database or be prepared to look like an incompetent GM.

As far as the global notify goes, if you dont want this comment out the 
following lines:
in Command_Who.lua:
125: MangAdmin:ChatMsg(".notify "..cname.." has been found guilty and jailed.")
130: MangAdmin:ChatMsg(".notify "..cname.." has been found guilty and jailed.")
135: MangAdmin:ChatMsg(".notify "..cname.." has been pardoned and released from 
jail.")

in Command_Char2.lua:
168: MangAdmin:ChatMsg(".notify "..cname.." has been found guilty and jailed.")
176: MangAdmin:ChatMsg(".notify "..cname.." has been found guilty and jailed.")
183: MangAdmin:ChatMsg(".notify "..cname.." has been pardoned and released from 
jail.")

Original comment by gsmith3...@gmail.com on 8 Aug 2010 at 4:44