Jump to content

Melow417

Members
  • Content Count

    14
  • Donations

    $0.00 
  • Joined

  • Last visited

Recent Profile Visitors

486 profile views
  1. Interested af but I'll wait to read source first and see how it works, I'll look around in old open source engines, I'm pretty sure one of them has at least mini map function so I'll try to translate it to C# and then add it to Intersect Source
  2. Hello, I got it working as you can see in the following image: For this I used the following code: <?php //Get Token function getToken($user,$pass){ $url = 'http://localhost:5400/api/oauth/token'; $ch = curl_init($url); $data = array( 'grant_type' => 'password', 'username' => $user, 'password' => $pass ); $payload = json_encode($data); curl_setopt($ch, CURLOPT_POSTFIELDS,$payload); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-type:application/json')); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $result = curl_exec($ch); $var = json_decode($result,true); $token=$var['access_token']; curl_close($ch); return $token; } //Submit the globalMessage with the token function globalMessage($message,$token){ $url = 'http://localhost:5400/api/v1/chat/global'; $ch = curl_init($url); $data = array( 'Message' => $message ); $payload = json_encode($data); curl_setopt($ch, CURLOPT_POSTFIELDS,$payload); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-type:application/json','Authorization: Bearer '.$token)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $result = curl_exec($ch); $status = curl_getinfo($ch,CURLINFO_HTTP_CODE); curl_close($ch); return $status; } ?> Then you can just send the request through: $token=getToken($user,$pass); echo $test = globalMessage("Submit global message through the API using PHP",$token); You should get as a response 200 since it is a success
  3. I'm trying to buy some at discount but when I add them to cart, I see them as full price. I don't know if I'm doing something wrong. Edit: I'm dumb af, the discount is for the whole bundle including the 21 packages, they don't individually have discount.
  4. If you can copy the full text, I can happily check it and see where the problem is but so far i gues you have an issue with the "Greater than" since everytime you get a fish, it will trigger the message since it will still be greater than the exp threshhold.
  5. Just got the source code, I'll read the code and see what I can get fixed
  6. Tbh I've been following this project since it was in eclipse origins and I would gladly help, I have some knowledge of C#.
  7. Hello, I want to purchase a server but currently I get a critical error
  8. I asked because I had the same issue, I changed the name of playerdata to another db I had before and it just worked after that (Well I also commented out the line of config to force it to go straight to the main page and check how it worked)
  9. Did you create the database "playerdata"?
  10. I know php and mysql, I would happily help with this project anytime
  11. Can you share the sprites you are using? Perhaps we could do something about the file.
  12. Is there a way to use a player variable in the damage formula? I read the tutorial on ability points and I tought it would be cool thatif you have 50 points in your katana weapon you would get like a buff on attack
  13. So it is basically masking your ip with the No-Ip address, you still need to port porward and have your game accessible to the outside world right?
×
×
  • Create New...