Beiträge: 25
Themen: 2
Thanks Received: 0 in 0 posts
Thanks Given: 0
Registriert seit: May 2017
Guthaben irgendwass mit 1.000.000 OS$ habe ich mir selber gegeben , ja im moment machen wir dass auch so und klappt ganz gut eigendlich aber wäre echt schön wenn auch kaufen gehen würde .
MFG Soundi
Beiträge: 7.124
Themen: 780
Thanks Received: 1.462 in 725 posts
Thanks Given: 3.775
Registriert seit: Jul 2010
Da fehlt noch die Landtool.php, könnte nämlich sein das in dieser ein Link steckt der zu SL führt. Denke ich mir mal so ;D
Signatur
Have a nice Day ;D
>> BogusMusikRausch alle 14 Tage an einem Donnerstag, um 20 Uhr in Uwes KeulenBar
Tschöö
Bogus | MagicPlace.de | M: @gse@norden.social
Beiträge: 25
Themen: 2
Thanks Received: 0 in 0 posts
Thanks Given: 0
Registriert seit: May 2017
18.05.2017, 13:08
(Dieser Beitrag wurde zuletzt bearbeitet: 18.05.2017, 13:09 von soundi.)
Landtool.php
PHP-Code: <?php # # Copyright (c)Melanie Thielker and Teravus Ovares (http://opensimulator.org/) # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # * Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # * Neither the name of the OpenSim Project nor the # names of its contributors may be used to endorse or promote products # derived from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE # DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #
////////////////////////////////////////////////////////////////////////////// // // Modified by Fumi.Iseki for CMS/LMS '09 5/31 //
require_once('../include/env_interface.php'); require_once('./helpers.php');
###################### No user serviceable parts below ##################### # # The XMLRPC server object #
$xmlrpc_server = xmlrpc_server_create();
# # Land purchase sections # # Functions are called by the viewer directly. #
# # Land buying functions #
xmlrpc_server_register_method($xmlrpc_server, "preflightBuyLandPrep", "buy_land_prep");
function buy_land_prep($method_name, $params, $app_data) { $req = $params[0]; $agentid = $req['agentId']; $sessionid = $req['secureSessionId']; $amount = $req['currencyBuy']; $billableArea = $req['billableArea']; $ipAddress = $_SERVER['REMOTE_ADDR'];
$ret = opensim_check_secure_session($agentid, null, $sessionid);
if($ret) { $confirmvalue = get_confirm_value($ipAddress); $membership_levels = array('levels' => array('id' => "00000000-0000-0000-0000-000000000000", 'description' => "some level")); $landUse = array('upgrade' => False, 'action' => "".SYSURL.""); $currency = array('estimatedCost' => convert_to_real($amount)); $membership = array('upgrade' => False, 'action' => "".SYSURL."", 'levels' => $membership_levels); $response_xml = xmlrpc_encode(array('success' => True, 'currency' => $currency, 'membership'=> $membership, 'landUse' => $landUse, 'currency' => $currency, 'confirm' => $confirmvalue)); } else { $response_xml = xmlrpc_encode(array( 'success' => False, 'errorMessage' => "Unable to Authenticate\n\nClick URL for more info.", 'errorURI' => "".SYSURL."")); }
header("Content-type: text/xml"); echo $response_xml;
return ""; }
# # Perform the buy (所持金が足りないとき) #
xmlrpc_server_register_method($xmlrpc_server, "buyLandPrep", "buy_land");
function buy_land($method_name, $params, $app_data) { $req = $params[0]; $agentid = $req['agentId']; $sessionid = $req['secureSessionId']; $amount = $req['currencyBuy']; $cost = $req['estimatedCost']; $billableArea = $req['billableArea']; $confim = $req['confirm']; $ipAddress = $_SERVER['REMOTE_ADDR']; // if ($confim!=get_confirm_value($ipAddress)) { $response_xml = xmlrpc_encode(array('success' => False, 'errorMessage'=> "\n\nMissmatch Confirm Value!!", 'errorURI' => "".SYSURL."")); header("Content-type: text/xml"); echo $response_xml; return ""; }
$ret = opensim_check_secure_session($agentid, null, $sessionid);
if ($ret) { if($amount>=0) { if (!$cost) $cost = convert_to_real($amount); if(!process_transaction($agentid, $cost, $ipAddress)) { $response_xml = xmlrpc_encode(array( 'success' => False, 'errorMessage' => "\n\nThe gateway has declined your transaction. Please update your payment method AND try again later.", 'errorURI' => "".SYSURL."")); } // $enough_money = false; $res = add_money($agentid, $amount, $sessionid); if ($res["success"]) $enough_money = true; if ($enough_money) { $amount += get_balance($agentid); move_money($agentid, null, $amount, 5002, 0, "Land Purchase", 0, 0, $ipAddress); update_simulator_balance($agentid, -1, $sessionid); $response_xml = xmlrpc_encode(array('success' => True)); } else { $response_xml = xmlrpc_encode(array('success' => False, 'errorMessage'=> "\n\nYou do not have sufficient funds for this purchase", 'errorURI' => "".SYSURL."")); } } } else { $response_xml = xmlrpc_encode(array('success' => False, 'errorMessage' => "\n\nUnable to Authenticate\n\nClick URL for more info.", 'errorURI' => "".SYSURL."")); }
header("Content-type: text/xml"); echo $response_xml;
return ""; }
# # Process XMLRPC request #
$request_xml = $HTTP_RAW_POST_DATA; //error_log("landtool.php: ".$request_xml);
xmlrpc_server_call_method($xmlrpc_server, $request_xml, ''); xmlrpc_server_destroy($xmlrpc_server);
?>
Beiträge: 25
Themen: 2
Thanks Received: 0 in 0 posts
Thanks Given: 0
Registriert seit: May 2017
Ach und ne kleine Frage am rande, hat wer ne möglichkeit eine Tanze in OS zu bauen also ohne diese poseballs , so ne art script wo der user auf die tanze geht und zu tanzen anfgängt automatisch. ?
LG
Soundi
Beiträge: 7.124
Themen: 780
Thanks Received: 1.462 in 725 posts
Thanks Given: 3.775
Registriert seit: Jul 2010
Komm doch heute abend in gridtalk club, da kannste nach dem scrpt fragen und praktisch als demo sozusagen ausprobieren;D
Signatur
Have a nice Day ;D
>> BogusMusikRausch alle 14 Tage an einem Donnerstag, um 20 Uhr in Uwes KeulenBar
Tschöö
Bogus | MagicPlace.de | M: @gse@norden.social
Beiträge: 147
Themen: 13
Thanks Received: 11 in 4 posts
Thanks Given: 12
Registriert seit: Dec 2013
Hallo soundi,
das brauchst du : http://opensimulator.org/wiki/Economy ( Seite )
https://github.com/justincc/opensimulator-helper ( php Datei )
http://download.osgrid.org/helper_tools_opensim.zip ( Download zip )
Wie das genau geht kann ich dir auch nicht sagen weil ich dann lieber Vermiete mit einer Mietbox die an PayPal angeschlossen ist.
Viel Spaß,
Wollex
kikiandwollex.de:8002
Beiträge: 2.490
Themen: 87
Thanks Received: 1.760 in 621 posts
Thanks Given: 2.009
Registriert seit: Oct 2011
(18.05.2017, 13:18)soundi schrieb: Ach und ne kleine Frage am rande, hat wer ne möglichkeit eine Tanze in OS zu bauen also ohne diese poseballs , so ne art script wo der user auf die tanze geht und zu tanzen anfgängt automatisch. ?
LG
Soundi
Wenn du sowas baust sag mir Bescheid damit ich da nie hingehen kann. Zwangsanimation ist in OS zwar möglich, aber es wird von vielen (u.a. von mir) als Ärgernis angesehen. Wenn ich tanzen will bediene ich gern eine Dance-Machine - wenn ich zum Tanzen gezwungen werde, hat man mich dort zum letzten Mal gesehen.
Wer nicht weiss wohin er will, der kommt leicht woanders hin.
Beiträge: 1.579
Themen: 74
Thanks Received: 860 in 365 posts
Thanks Given: 429
Registriert seit: May 2013
Hi Soundi,
ich freue mich über dein Interesse an Technik, leider ist die Beschäftigung mit OpenSim als solchem in der letzten Zeit sehr in den Hintergrund geraten.
Vielleicht sehe ich OpenSim viel zu sehr als technische Spielwiese denn als Eventplattform.  Auch eine Tanzfläche mit "Zwangsanimation" muss nicht jeder Avatar betreten. Genausowenig muss man durch Teleporter mit der beliebten Automatik schreiten...
Viel Spaß beim Basteln,
Mareta
Beiträge: 147
Themen: 13
Thanks Received: 11 in 4 posts
Thanks Given: 12
Registriert seit: Dec 2013
(18.05.2017, 13:18)soundi schrieb: Ach und ne kleine Frage am rande, hat wer ne möglichkeit eine Tanze in OS zu bauen also ohne diese poseballs , so ne art script wo der user auf die tanze geht und zu tanzen anfgängt automatisch. ?
LG
Soundi
Und ja soundi das gibt es, und wird auch in mehreren Clubs eingesetzt.
Mit einer kleinen Abänderung... man wird nicht gezwungen zu Tanzen wenn man die Fläche betritt,
sonder man muss um zu Tanzen auf die Tanzfläche tippen und dann gehts los.
So kann jeder selber entscheiden wann und wie er Tanzen möchte.
Ich müste erst schauen ob ich das noch finde wenn nicht einfach rum Reisen und die Besitzer anschreiben ob die dir das geben würden,machen einige sicher gern.
Gruß Wollex
Beiträge: 25
Themen: 2
Thanks Received: 0 in 0 posts
Thanks Given: 0
Registriert seit: May 2017
Ok muss ich mal machen , habe nun soweit alles am Laufen und bastel grade an der HP dass die steht.
Arbeitet evt. jemand mit WiFi ? ich suche die commands zum abfragen der DB um z.B aktuelles Guthaben auf der HP anzeigen zu lassen vom aktuellen User.
|