LU脚本首爆文明脚本;捡取给元宝。包裹右键物品到英雄包里。红包金币都可以。
--拾取物品之后回调
function on_play_PickUpItem_End(player, item)
local itemname = item:getName()
local playername = player:getCharName()
local txt ="\\Envir\\QuestDiary\\装备首曝.ini"
local mun = s.ini.readIni(txt,itemname,"数量",0)
if mun ~=nil and mun ~= 0 then
local gold = s.ini.readIni(txt,itemname,"金币",0)
s.ini.writeIni(txt,itemname,"数量",mun-1)
player:setGold(player:getGold()+gold)
local messageContent = [[恭喜玩家《]]..playername..[[》第一位打到《]]..itemname..[[》获得金币《]]..gold..[[》个]]
player:setVal_S_Ex([[lua_message_content]],messageContent)
player:setVal_S_Ex([[sb_item_name]],ItemName)
player:runScript("@首爆")
s.obj.sendBroadcastMsg("恭喜玩家["..playername.."]第一位打到["..itemname
|