
x760455_g_scriptId = 760455
x760455_g_JZ = 100000
--**********************************
-- 打开名动界面
--**********************************
function x760455_OpenJuanZeng(sceneId,selfId)
local donate_list = x760455_donate_GetListData(sceneId,selfId)
BeginUICommand( sceneId )
for i = 1,10 do
if donate_list[i] == nil then
UICommand_AddString( sceneId,",")
else
UICommand_AddString( sceneId,donate_list[i][2]..","..donate_list[i][4].."")
end
end
EndUICommand( sceneId )
DispatchUICommand( sceneId, selfId, 20130512 )
end
function x760455_JuanZeng(sceneId,selfId)
if ZengDian(sceneId,selfId,-1,3,0) < x760455_g_JZ then
x760455_NotifyFailTips( sceneId, selfId, "绑元不足"..x760455_g_JZ..",不能捐赠" )
return
end
ZengDian(sceneId,selfId,-1,2,x760455_g_JZ)
local JZCount = GetMissionData(sceneId,selfId,MD_JUANXIANDATA)
SetMissionData(sceneId,selfId,MD_JUANXIANDATA,JZCount + 1)
x760455_NotifyFailTips( sceneId, selfId, "捐赠成功,当前捐赠次数:【"..(JZCount + 1).."】次" )
x760455_donate_SetListData(sceneId,selfId)
x760455_OpenJuanZeng(sceneId,selfId)
CallScriptFunction( 999994, "StartComputeHumanData", sceneId,selfId)
end
--**********************************
-- 写入名动数据
--**********************************
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
















暂无评论内容