|
You last visited: Today at 16:45
Advertisement
Sapphire FlyFF buying item in the shop problem.
Discussion on Sapphire FlyFF buying item in the shop problem. within the Flyff Private Server forum part of the Flyff category.
02/22/2017, 09:09
|
#1
|
elite*gold: 0
Join Date: Jan 2010
Posts: 141
Received Thanks: 8
|
Sapphire FlyFF buying item in the shop problem.
Hello guys so I am using Chyukasame's released web files(sapphire flyff v2). So I have already executed all of them queries from the 'sql' folder and yes I did receive some errors that the 'pk_rev3_something' object is already in the database. The 'pk_rev3_something' was a constraint I believe but I executed them all. My problem is that whenever I buy something in the shop. Choose charname and then click purchase and it gives me this error:
Quote:
The script could not be executed:
This item could not be sent.
|
Then I looked at the code side. Then I got here:
PHP Code:
if(isSpamming($_POST['inputCheckTimestamp'], $_POST['inputCheckKey'], $_SESSION['inputCheckKey'])) {
$strErrorArray[] = $_LANG['error_spam'];
}
if [MENTION=311501]ODB[/MENTION]c_num_rows($resSelectedItemDetailsArray) < 1) {
$strErrorArray[] = $_LANG['error_item_does_not_exist'];
}
if [MENTION=311501]ODB[/MENTION]c_num_rows($resSelectCharacter) < 1) {
$strErrorArray[] = $_LANG['error_no_character_with_that_name'];
}
if(!is_numeric($_POST['currency']) OR $_POST['currency'] > 1 OR $_POST['currency'] < 0 OR $mixedSelectedItemDetailsArray[$intWorthColumnHelper] <= 0) {
$strErrorArray[] = $_LANG['error_currency_changed'];
}
if($mixedSelectedItemDetailsArray[$intWorthColumnHelper] > $intCurrentBalance) {
$strErrorArray[] = $_LANG['error_balace_too_low'];
}
if(count($strErrorArray) > 0) {
echo createMessage($strErrorArray, 'fail');
}
else {
if(isset($_POST['shopBuyItem'])) {
if( [MENTION=311501]ODB[/MENTION]c_exec($odbc_connect, $strUpdateBalance)
AND
[MENTION=311501]ODB[/MENTION]c_exec($odbc_connect, '
INSERT INTO [' . $_CONFIG['db_databases']['web'] . '].dbo.[LOG_PURCHASES] (
item,
itemname,
itemcount,
itemcurrency,
itemworth,
account,
datetime
) VALUES (
' . cleanSqlInput($mixedSelectedItemDetailsArray['itemid']) . ',
\'' . cleanSqlInput($mixedSelectedItemDetailsArray['name']) . '\',
' . cleanSqlInput($mixedSelectedItemDetailsArray['count']) . ',
' . $intGetCurrentCurrency . ',
' . cleanSqlInput($mixedSelectedItemDetailsArray[$intWorthColumnHelper]) . ',
\'' . cleanSqlInput($_SESSION['user']) . '\',
\''. date($_CONFIG['web_date_format']['dbDatetime']) .'\'
)
')
AND
send_item($intCharacterID, $mixedSelectedItemDetailsArray['itemid'], $mixedSelectedItemDetailsArray['count'])
) {
echo createMessage($_LANG['success_item_bought'], 'success');
}
else {
echo createMessage($_LANG['error_item_could_not_be_sent'], 'fail');
}
}
elseif(isset($_POST['shopGiftItem'])) {
if( [MENTION=311501]ODB[/MENTION]c_exec($odbc_connect, $strUpdateBalance)
AND
[MENTION=311501]ODB[/MENTION]c_exec($odbc_connect, '
INSERT INTO [' . $_CONFIG['db_databases']['web'] . '].dbo.[LOG_GIFTS] (
item,
itemname,
itemcount,
itemcurrency,
itemworth,
accfrom,
accto,
charto,
datetime
) VALUES (
' . cleanSqlInput($mixedSelectedItemDetailsArray['itemid']) . ',
\'' . cleanSqlInput($mixedSelectedItemDetailsArray['name']) . '\',
' . cleanSqlInput($mixedSelectedItemDetailsArray['count']) . ',
' . $intGetCurrentCurrency . ',
' . cleanSqlInput($mixedSelectedItemDetailsArray[$intWorthColumnHelper]) . ',
\'' . cleanSqlInput($_SESSION['user']) . '\',
\'' . $intCharactersAccount . '\',
\'' . cleanSqlInput($_POST['sendItemToCharacter']) . '\',
\''. date($_CONFIG['web_date_format']['dbDatetime']) .'\'
)
')
AND
send_item($intCharacterID, $mixedSelectedItemDetailsArray['itemid'], $mixedSelectedItemDetailsArray['count'])
) {
echo createMessage($_LANG['success_item_gifted'], 'success');
}
else {
echo createMessage($_LANG['error_item_could_not_be_sent'], 'fail');
}
}
}
}
It leads me to the last else statement from the both POST shopgift and itembuy I believe. What could be the problem? I am using the latest xampp version as of now and I am using mssql 2014 too. Please I need help so much with this.
|
|
|
 |
Similar Threads
|
Flyff Clockwork ITEM SHOP
11/03/2015 - Flyff Trading - 0 Replies
send me offer :)
Scroll of Acquisition (High) 1x
Extra Bag (30Day´s) 1x
Scroll of Awakening Protection 1x
Scroll of Blessing x47
Lapis Lazuli Ring 2015 +16
Garnet Ring 2015 +17
Blessing of the Goddess 1x
Scroll of XProtect 31x
|
Sapphire Flyff Homepage Problem
03/09/2014 - Flyff Private Server - 2 Replies
Ich hab ein Problem ich will das man sich ohne Email Bestätigung registrieren kann aber ich bekomme es nicht hin, kann mir da bitte jemand helfen? Ich wäre ech sehr dankbar.
|
Register Sapphire Flyff Homepage [Problem]
06/17/2013 - Flyff Private Server - 14 Replies
Liebe Epvpers,
ich bzw. wir haben ein Problem mit der Homepage von Sapphire Flyff.
Das Problem ist, dass keine Bestätigungs E-Mail gesendet wird.
Kennt einer von euch dieses Problem und oder hättet ihr eine Lösung, wie wir dieses Problem beheben könnten.
EDIT:
Eine andere Frage gibt es ein Skript, bei der die Registrierung auch ohne Bestätitungs Mail funktioniert
Danke im Voraus
|
IIS Problem -> Sapphire Flyff HP
11/15/2012 - Flyff Private Server - 1 Replies
Ich habe mir mal aufn root die sapphire hp hochgeladen. Nun habe ich ein Problem, das ich im Admin Panel die seiten ( site_news.txt, etc. ) nicht aktualisieren kann.
Fehler: Aktualisierung ist fehlgeschlagen
Dies liegt vermutlich daran, das IIS alle datein sobald sie im inetput verzeichnis liegen ein schreibschutz drauf macht. Nur wie bekomme ich den wieder runter? Mit rechtsklick eigenschaften und unten den punkt raus geht nicht.
Hoffe einer kann mir helfen.
Gruß
Schmizi'
|
All times are GMT +1. The time now is 16:45.
|
|