Jump to content

Skaveron

Ascending Contributor
  • Posts

    67
  • Joined

  • Last visited

  • Days Won

    3

Community Answers

  1. Skaveron's post in Change tiles picker background color was marked as the answer   
    I don't think this is possible. Might be a good one for the suggestions board.
  2. Skaveron's post in Password hashing was marked as the answer   
    Yeah, first of all you need to write your own hash function.
    public function make($value) { return hash("sha256", $value); } Also, the password is double hashed. You first need to hash the password and then hash the result with the salt, so something like this; (EDIT: Ah, I see you already got that far!)
     
    public function validateCredentials(Authenticatable $user, array $credentials) { // Check that given credentials belong to the given user $username= $credentials['username']; $pass = $credentials['password']; $hashedPass = strtoupper(str_replace(["-", "–"], '', Hash::make($pass))); $saltedPass = strtoupper(str_replace(["-", "–"], '', Hash::make(strtoupper($hashedPass) . $user->salt))); $valid_user = IntersectUser::where(['username' => $username, 'pass' => $saltedPass])->first(); if ($valid_user) { return TRUE; } return FALSE; }  
    Once the source is released, I'm going to pick up work on the web companion again.
  3. Skaveron's post in Client login screen was marked as the answer   
    In the folder "Client and Editor\resources\gui", replace the file background.png  with your own background.
  4. Skaveron's post in Placing NPCs Stationary? was marked as the answer   
    I had this as a suggestion a while ago, but as far as I'm aware, at the moment it's not possible to make stationary NPCs.
     
    HOWEVER, NPCs are as far as I'm aware strictly used as enemies or guards, because all they can do is fight. A shopkeeper should be an event instead, which can remain stationary and can do a number of other things.
  5. Skaveron's post in How to use Events Command was marked as the answer   
    Double-click the  '@>' bit.
  6. Skaveron's post in Registration was marked as the answer   
    Oh. Derp. Right, you have to wait for the source in that case!
  7. Skaveron's post in Game Testing was marked as the answer   
    I think he wants updates made to a class in the editor to automatically reflect on existing characters in-game. Currently that doesn't happen.
     
    I think making an event that adds the spells you want to test to the character's spell books is your best bet.
×
×
  • Create New...