--玩家进入地图触发
function on_PlayIntoMap(actor)
local actorname = actor:getCharName()
local mapName = actor:getMapName()
local map = actor:getMap()
local time = s.ini.readIni("\\LuaScripts\\地图开放时间.ini","地图开放时间",""..map.."",0)
print("["..actorname.."]进入地图["..mapName.."]代号["..map.."]开放时间["..time.."]")
if actor:setHumanVar("传送时间检测",""..time.."",""..time.."","..\\LuaScripts\\登陆IP.txt") == true then
actor:sendMsg(1,"保存自定义变量成功", -1, -1);
else
actor:sendMsg(1,"保存自定义变量失败", -1, -1);
end
actor:runScript("@检测脚本")
end
|