@gintaras
Code seems clean, but I see you are loading images with strings.
You could use C#'s Resource compile system. It is easy to add a new resource in VS and load It.
http://stackoverflow.com/questions/90697/how-to-create-and-use-resources-in-net
/25/2017 1:34:44 PM [RustBuster] [color red] Retrying connection... (1x)
3/25/2017 1:34:44 PM [RustBuster] Failed to ping the server!: System.NullReferenceException: Object reference not set to an instance of an object
at lXU=.t3U=.u3U= (System.Exception exception) [0x00000] in <filename...
Careful.
Attacker and the Victim can be world, and NPCs too. Be sure to use an if statement for that.
Casting may cause errors if the attacker or the victim isnt a player.
if (de.AttackerIsPlayer && de.VictimIsPlayer)
{
Player attacker =(Player)de.Attacker;
Player victim...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.