help me! please duel tournament fix auto ranking and icon change automatic... no closed and open matchserver...
sorry for my english is very bad....
sorry for my english is very bad....
void FrontendWarZ::eventSetSelectedChar(r3dScaleformMovie* pMovie, const Scaleform::GFx::Value* args, unsigned argCount)
{
gUserProfile.SelectedCharID = args[0].GetInt();
m_Player->uberAnim_->anim.StopAll(); // prevent animation blending on loadout switch
m_Player->UpdateLoadoutSlot(gUserProfile.ProfileData.ArmorySlots[gUserProfile.SelectedCharID]);
}
void FrontendWarZ::eventMarketplaceActive(r3dScaleformMovie* pMovie, const Scaleform::GFx::Value* args, unsigned argCount){
gfxMovie.SetVariable("_root.api.Main.Marketplace.MarketplaceTab7.visible", true);
}
void FrontendWarZ::eventStorePurchaseGD(r3dScaleformMovie* pMovie, const Scaleform::GFx::Value* args, unsigned argCount)
{
if(currentvalue > gUserProfile.ProfileData.GamePoints)
{
Scaleform::GFx::Value var[2];
var[0].SetStringW(gLangMngr.getString("NotEnoughGP"));
var[1].SetBoolean(true);
gfxMovie.Invoke("_root.api.showInfoMsg", var, 2);
return;
}
Scaleform::GFx::Value var[2];
var[0].SetStringW(gLangMngr.getString("Converting Please Wait..."));
var[1].SetBoolean(false);
gfxMovie.Invoke("_root.api.showInfoMsg", var, 2);
async_.StartAsyncOperation(this, &FrontendWarZ::as_ConvertGDThread, &FrontendWarZ::OnConvertGDSuccess);
}
void FrontendWarZ::OnConvertGDSuccess()
{
Scaleform::GFx::Value var[1];
var[0].SetInt(gUserProfile.ProfileData.GamePoints);
gfxMovie.Invoke("_root.api.setGC", var, 1);
var[0].SetInt(gUserProfile.ProfileData.GameDollars);
gfxMovie.Invoke("_root.api.setDollars", var, 1);
gfxMovie.Invoke("_root.api.hideInfoMsg", "");
}
void FrontendWarZ::eventStorePurchaseGDCallback(r3dScaleformMovie* pMovie, const Scaleform::GFx::Value* args, unsigned argCount)
{
r3d_assert(args);
r3d_assert(argCount == 1);
convertvalue = args[0].GetInt() * 20;
currentvalue = args[0].GetInt();
Scaleform::GFx::Value vars1[1];
vars1[0].SetInt(convertvalue);
gfxMovie.Invoke("_root.api.Main.PurchaseGC.setGCValue", vars1, 1);
}
void FrontendWarZ::eventPlayGame(r3dScaleformMovie* pMovie, const Scaleform::GFx::Value* args, unsigned argCount){
if(gUserProfile.ProfileData.NumSlots == 0)
return;
async_.StartAsyncOperation(this, &FrontendWarZ::as_PlayGameThread);
}
unsigned int WINAPI FrontendWarZ::as_ConvertGDThread(void* in_data){
r3dThreadAutoInstallCrashHelper crashHelper;
FrontendWarZ* This = (FrontendWarZ*)in_data;
This->async_.DelayServerRequest();
int apiCode = gUserProfile.ApiConvertGCToGD(This->currentvalue,This->convertvalue);
This->async_.SetAsyncError(0, L"Successful Purchase of GD\n Please Restart Your Client");
return 1;
}
void eventChangeBackpack(r3dScaleformMovie* pMovie, const Scaleform::GFx::Value* args, unsigned argCount);
void OnConvertGDSuccess();
static unsigned int WINAPI as_ConvertGDThread(void* in_data);
void setClanInfo();
void FrontendWarZ::eventStorePurchaseGDCallback(r3dScaleformMovie* pMovie, const Scaleform::GFx::Value* args, unsigned argCount); void FrontendWarZ::eventMarketplaceActive(r3dScaleformMovie* pMovie, const Scaleform::GFx::Value* args, unsigned argCount);
void FrontendWarZ::eventStorePurchaseGD(r3dScaleformMovie* pMovie, const Scaleform::GFx::Value* args, unsigned argCount);
int convertvalue;
int currentvalue;
int CClientUserProfile::ApiMysteryBoxGetContent(int itemId, const MysteryBox_s** out_box)
int CClientUserProfile::ApiConvertGCToGD(int currentvalue,int convertvalue){
GetProfile();
CWOBackendReq req(this, "api_ConvertM.aspx");
req.AddParam("CustomerID", CustomerID);
req.AddParam("Var1", currentvalue);
req.AddParam("Var2", convertvalue);
if(!req.Issue())
{
r3dOutToLog("ApiConvertGCToGD FAILED, code: %d\n", req.resultCode_);
return req.resultCode_;
}
GetProfile();
return 0;
}
int ApiCharRevive();
int CClientUserProfile::ApiConvertGCToGD(int currentvalue,int convertvalue);
gfxMovie.RegisterEventHandler("eventRequestLeaderboardData", MAKE_CALLBACK(eventRequestLeaderboardData));
gfxMovie.RegisterEventHandler("eventStorePurchaseGDCallback", MAKE_CALLBACK(eventStorePurchaseGDCallback)); gfxMovie.RegisterEventHandler("eventStorePurchaseGD", MAKE_CALLBACK(eventStorePurchaseGD));
gfxMovie.RegisterEventHandler("eventMarketplaceActive", MAKE_CALLBACK(eventMarketplaceActive));
-- ------------------------------
Procedure structure for [dbo].[WZ_ConvertGD]
-- ----------------------------
CREATE PROCEDURE [dbo].[WZ_ConvertGD]
@in_CustomerID int,
@in_Var1 int,
@in_Var2 int
AS
BEGIN
declare @GamePoints int
SELECT @GamePoints=GamePoints FROM UsersData WHERE CustomerID=@in_CustomerID
if @GamePoints < @in_Var1) begin
select 7 as ResultCode, 'Not Enough GP' as ResultMsg
return
end
update UsersData set GamePoints=(GamePoints-@in_Var1) WHERE CustomerID=@in_CustomerID
update UsersData set GameDollars=(GameDollars+@in_Var2) WHERE CustomerID=@in_CustomerID
INSERT INTO FinancialTransactions
VALUES (@in_CustomerID, 'ConvertGCToGD', '3000', GETDATE(),
@in_var1, '1', 'APPROVED', @in_Var2)
select 0 as ResultCode
END
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="api_ConvertM.aspx.cs" Inherits="api_ConvertM" %>
using System;using System.Collections.Generic;
using System.Collections.Specialized;
using System.Data;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Configuration;
public partial class api_ConvertM : WOApiWebPage
{
void OutfitOp( string Var1,string Var2,string CustomerID)
{
SqlCommand sqcmd = new SqlCommand();
sqcmd.CommandType = CommandType.StoredProcedure;
sqcmd.CommandText = "WZ_ConvertGD";
sqcmd.Parameters.AddWithValue("@in_CustomerID", CustomerID);
sqcmd.Parameters.AddWithValue("@in_Var1", Var1);
sqcmd.Parameters.AddWithValue("@in_Var2", Var2);
if (!CallWOApi(sqcmd))
return;
Response.Write("WO_0");
}
protected override void Execute()
{
if (!WoCheckLoginSession())
return;
string CustomerID = web.Param("CustomerID");
string Var1 = web.Param("Var1");
string Var2 = web.Param("Var2");
OutfitOp(Var1,Var2,CustomerID);
}
}
gfxMovie.RegisterEventHandler("eventMarketplaceActive", MAKE_CALLBACK(eventMarketplaceActive));
(filechk file_ver (country_type ENG) (filename xxxxxx))
(background
(font 12)
(link system ( param ( width 541) ( height 431) ( style center transparent) ( caption "r3venge merchant")))
)
;Background
( page ( pos 0 0) ( bitmap "merchant" (colorkey 11 11 11)) )
;Item like this
( page ( font 12)
( pos 47 140)
( button link (bitmap 'item icon')( param send quest 66620 11 )( tip "Item Tip")(colorkey 255 232 0))
)
;Item like this
( page ( font 12)
( pos 47 188)
( button link (bitmap 'item icon')( param send quest 66620 11 )( tip "Item Tip")(colorkey 255 232 0))
)
;Item like this
( page ( font 12)
( pos 93 140)
( button link (bitmap 'item icon')( param send quest 66620 11 )( tip "Item Tip")(colorkey 255 232 0))
)
;Item like this
( page ( font 12)
( pos 93 188)
( button link (bitmap 'item icon')( param send quest 66620 11 )( tip "Item Tip")(colorkey 255 232 0))
)
; to add new item position add 48 to the y position to add new item at the 1st line and
; to add item to new line add 48 to the x position