add CharacterFetch + BodyColors
This commit is contained in:
parent
123422aa14
commit
afac3a4a31
|
|
@ -90,4 +90,14 @@ class ClientController extends Controller
|
|||
{
|
||||
return view('client.login_iframe');
|
||||
}
|
||||
|
||||
public function bodycolors()
|
||||
{
|
||||
return view('client.BodyColors');
|
||||
}
|
||||
|
||||
public function characterfetch()
|
||||
{
|
||||
return view('client.CharacterFetch');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,22 @@
|
|||
@php
|
||||
header("content-type:text/plain");
|
||||
$userId = addslashes($_GET["userId"]);
|
||||
//TODO: add avatar system
|
||||
@endphp
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<roblox xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.roblox.com/roblox.xsd" version="4">
|
||||
<External>null</External>
|
||||
<External>nil</External>
|
||||
<Item class="BodyColors">
|
||||
<Properties>
|
||||
<int name="HeadColor">45</int>
|
||||
<int name="LeftArmColor">45</int>
|
||||
<int name="LeftLegColor">1003</int>
|
||||
<string name="Name">Body Colors</string>
|
||||
<int name="RightArmColor">45</int>
|
||||
<int name="RightLegColor">1003</int>
|
||||
<int name="TorsoColor">1003</int>
|
||||
<bool name="archivable">true</bool>
|
||||
</Properties>
|
||||
</Item>
|
||||
</roblox>
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
@php
|
||||
header("content-type:application/xml");
|
||||
ob_start();
|
||||
$userId = addslashes($_GET["userId"]);
|
||||
//TODO: add catalog + avatar system
|
||||
@endphp
|
||||
http://morblox.us/Asset/BodyColors.ashx?userId=@php echo $userId @endphp;
|
||||
|
|
@ -11,15 +11,15 @@ $app = addslashes($_GET["app"]);*/
|
|||
if (Auth::check()) {
|
||||
$username = addslashes(Auth::user()->name);
|
||||
$id = addslashes(Auth::id());
|
||||
$app = addslashes(Auth::id());
|
||||
} else {
|
||||
$randName = mt_rand(1, 9999);
|
||||
$username = "Guest " . $randName;
|
||||
$id = 0;
|
||||
$app = 0
|
||||
}
|
||||
$ip = addslashes($_GET["ip"]);
|
||||
$port = addslashes($_GET["port"]);
|
||||
$app = 'test';
|
||||
//$app = addslashes($_GET["app"]);
|
||||
|
||||
ob_start();
|
||||
@endphp
|
||||
|
|
@ -235,7 +235,7 @@ local success, err = pcall(function()
|
|||
-- Overriden
|
||||
onPlayerAdded(player)
|
||||
|
||||
player.CharacterAppearance = "<?php echo $app; ?>"
|
||||
player.CharacterAppearance = "http://morblox.us/Asset/CharacterFetch.ashx?userId=<?php echo $app; ?>"
|
||||
if not test then visit:SetUploadUrl("")end
|
||||
player.Name = "<?php echo $username; ?>"
|
||||
end)
|
||||
|
|
|
|||
|
|
@ -99,4 +99,5 @@ Route::get('/Game/Tools/InsertAsset.ashx', [App\Http\Controllers\ClientControlle
|
|||
Route::get('/UI/Save.aspx', [App\Http\Controllers\ClientController::class, 'modelupload'])->name('modelupload');
|
||||
Route::get('/Game/Tools/ThumbnailAsset.ashx', [App\Http\Controllers\ClientController::class, 'stampertools'])->name('stampertools');
|
||||
Route::get('/Game/edit.ashx', [App\Http\Controllers\ClientController::class, 'edit'])->name('edit');
|
||||
Route::get('/Login/iFrameLogin.aspx', [App\Http\Controllers\ClientController::class, 'login_iframe'])->name('login_iframe');
|
||||
Route::get('/Asset/BodyColors.ashx', [App\Http\Controllers\ClientController::class, 'bodycolors'])->name('bodycolors');
|
||||
Route::get('/Asset/CharacterFetch.ashx', [App\Http\Controllers\ClientController::class, 'characterfetch'])->name('characterfetch');
|
||||
Loading…
Reference in New Issue