手游传奇私服发布站

 找回密码
 注册账号
查看: 239|回复: 0

烈焰私服中沙漠土城活动-谁与争锋奖励修改注释

[复制链接]

133

主题

138

帖子

592

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
592
发表于 2015-10-27 15:46:16 | 显示全部楼层 |阅读模式
谁与争锋的奖励方法可以自行修改成你所需要的奖励方式,例如元宝,装备,等等···



function ontalk2099(npc,event,player)
        player:echo(0,npc:GetLowGUID(),[[
  活动时间:
    <font color="#FFCF00">12:40-12:50</font>为报名时间(禁止PK)
    <font color="#FFCF00">12:50-13:20</font>为争霸时间(自由PK)
  活动介绍:
    地图内自由PK,不增加PK值,死亡不掉装备
    活动结束,地图内玩家数量小于2人时
    最后存活下来的玩家将是本次活动胜利者

<font color="#FE0000">活动结束时,地图内玩家数量大于1人将无获胜玩家</font>
#&talk_line#&
  奖励:

#&item19099#& 99999元宝:<font color="#28FF28">x 1</font>
#&item10072#& 招财进宝(小):<font color="#28FF28">x 4</font>
                 <u><a href='event:M2402,1'>领取获胜奖励</a></u>
]]);
end

function CreatureNpcFun(npc,event,player,funid)
        if funid == 1 then
                ontalk2099_1(npc,player);
        end
end



function ontalk2099_1(npc,player)
        local t = tonumber(os.date("%H%M",os.time()));
        if t >= 1250 and t <= 1319 then
                if player:GetMapPlayersCount() == 1 then
                        if player:get_level() >= 50 then
                                if player:GetMapId() == 104 then
                                        player:add_vcoin(99999);--修改这里即可.默认奖励元宝,你可以更改为道具(player:add_item(20900,1,0);)
                                        g_alert("[<font color='#FF0000'>"..player:GetName().."</font>]取得谁与争锋胜利,获得奖励99999元宝",2,99999,0,1);
                                        g_alert("["..player:GetName().."]取得谁与争锋胜利,获得奖励99999元宝",1,99999,0,1);
                                        player:enter_map(15,58,80);
                                end
                        else
                                player:alert(10,0,0,"您的等级小于50级,不能领取奖励");
                        end
                else
                        player:alert(10,0,0,"谁与争锋地图还有其他玩家,请把他们杀光!");
                end
        else
                player:alert(10,0,0,"12:50-13:19才是谁与争锋领奖时间");
        end
end

RegisterUnitEvent(2099,20,"ontalk2099")
RegisterUnitEvent(2099,29,"CreatureNpcFun")

有空常来逛逛,520页游论坛 www.ye520.com 需要您的支持与关注!

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号

本版积分规则

手游传奇私服发布站

GMT+8, 2025-4-18 21:33 , Processed in 0.053307 second(s), 23 queries , Gzip On.

快速回复 返回顶部 返回列表