神泣单机 - 卖物品得战功存储过程修改教程

管理员 shaiya 2019-8-12 11931

首先在chars表新建一个列 shopk1 int即可 默认0

存储过程

IF(@Value2 = 44086)and @ActionType = 114

update ps_gamedata.dbo.chars set shopk1 = shopk1 + @Value4 * 10 where charid = @charid;

44086 即为出售道具   10为兑换的值  此句意思为出售44086一个即可增加shopk1 10点

--小退兑换

if @actiontype=108

begin

if (select shopk1 from ps_gamedata.dbo.chars where charid=@charid)>0 and (select k1 from ps_gamedata.dbo.chars where charid=@charid)<200000

begin

WAITFOR DELAY '00:00:02'

update ps_gamedata.dbo.chars set k1=k1+shopk1 where charid=@charid

update ps_gamedata.dbo.chars set shopk1=0 where charid=@charid

end

end

限制战功大于0然后小于20W,首先兑换战功 然后清除shopk1值即可! 中间延迟2秒是为了保存角色本身所杀战功值


最新回复 (1)
全部楼主
  • 初级神泣玩家 cclovehao 2022-5-23
    0 2
    能不能把5.0的战功图片提取一下
    • 温馨提示:请认真回帖,请勿回复垃圾内容,严重者直接封号处理!感谢支持!
      3
        立即登录 立即注册 QQ登录
返回
发新帖 此处广告位(50元1条 100元3条 200元10条)/月 此处广告位(50元1条 100元3条 200元10条)/月 此处广告位(50元1条 100元3条 200元10条)/月 此处广告位(50元1条 100元3条 200元10条)/月 此处广告位(50元1条 100元3条 200元10条)/月 此处广告位(50元1条 100元3条 200元10条)/月 此处广告位(50元1条 100元3条 200元10条)/月 此处广告位(50元1条 100元3条 200元10条)/月 此处广告位(50元1条 100元3条 200元10条)/月