- ---------防止卡宝石-----检测-----自动清理---------------
- for i = 100,118 do
- local nGem1,nGem2,nGem3 = LuaFnGetGemInfoInEquip(sceneId,selfId,i)
- if nGem1 > 0 then
- if nGem1 == nGem2 then
- LuaFnRemoveGemFromItem(sceneId,selfId,i,0);
- LuaFnRemoveGemFromItem(sceneId,selfId,i,1);
- x999994_NotifyTips( sceneId, selfId, "由于你卡宝石,已把你卡的宝石清理掉!" )
- x999994_NotifyTips( sceneId, selfId, "由于你卡宝石,已把你卡的宝石清理掉!" )
- end
- if nGem1 == nGem3 then
- LuaFnRemoveGemFromItem(sceneId,selfId,i,0);
- LuaFnRemoveGemFromItem(sceneId,selfId,i,2);
- x999994_NotifyTips( sceneId, selfId, "由于你卡宝石,已把你卡的宝石清理掉!" )
- x999994_NotifyTips( sceneId, selfId, "由于你卡宝石,已把你卡的宝石清理掉!" )
- end
- end
- if nGem2 > 0 then
- if nGem2 == nGem3 then
- LuaFnRemoveGemFromItem(sceneId,selfId,i,1);
- LuaFnRemoveGemFromItem(sceneId,selfId,i,2);
- x999994_NotifyTips( sceneId, selfId, "由于你卡宝石,已把你卡的宝石清理掉!" )
- x999994_NotifyTips( sceneId, selfId, "由于你卡宝石,已把你卡的宝石清理掉!" )
- end
- end
- end
复制代码 |