Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

SadScript Bug


Zeno
 Share

Recommended Posts

More nitpicking than anything, but still a bug:

Sub SetPlayerNameColor's effect is not as it should be.
When used, it temporarily changes the colour of a player's name to the chosen input colour.  Upon relogging, the player's name reverts to the original colour.  That part of it works and makes sense.  Unfortunately, _only the player whose name changes colour will see the change._

Though a command of seemingly low worth, it is the most practical way to make names invisible for hiding or stealth skills, by using values above 15.  Since only the affected player will see the change, it is currently useless for those purposes.
Link to comment
Share on other sites

you could either download my compiled version
http://www.touchofdeathforums.com/smf/index.php?topic=35142.msg325352#new

or
client side>
    ' ::::::::::::::::::::::::::::::::
    ' :: playername coloring packet ::
    ' ::::::::::::::::::::::::::::::::
    If (casestring = "namecolor") Then
        Player(parse(1)).color = Val(parse(2))
        Exit Sub
    End If

server side>
add this to the playerwarp subs
Call SendDataToMap(Mapnum, "namecolor" & SEP_CHAR & Index & SEP_CHAR & Player(Index).Color & END_CHAR)

and this

Sub SetPlayerNameColor(ByVal Index As Long, ByVal Color As Long)
    Call SendDataToMap(GetPlayerMap(Index), "namecolor" & SEP_CHAR & Index & SEP_CHAR & Color & END_CHAR)
    Player(Index).Color = Color
End Sub

and of cours the server needs the color type :)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...