--检测 人/怪物 的状态
function tesr22(actor)
makeposion(actor,0,10)
local bool,endTime = checkhumanstate(actor,11,1)
if bool then
release_print("绿毒剩余时间", endTime)
end
end
--改变人\怪 的状太
function test21(actor)
makeposion(actor,13,10)
end
--设置人物/怪物相关信息(后期封装使用)
function test20(actor)
setbaseinfo(actor,58,249)
end
--获取人物/怪物 的相关信息(后期封装使用)
function test19(actor)
local my_x=getbaseinfo(actor,4)
local my_y=getbaseinfo(actor,5)
local my_bg=getbaseinfo(actor,63)
release_print(my_x,my_y,my_bg)
end
--CSV的用法(和TXT一样)
function test18(actor)
newreadcsv("QuestDiary\\cfg_材料消耗.csv")
local str = newdqcsv("QuestDiary\\cfg_材料消耗.csv",1,1)
release_print(str)
end
--获取全局信息
function testt17(actor)
local bb = globalinfo(8)
say(actor,"当前开服天数"..bb)
end
--调用TXT命名
function test16(actor)
callscriptex(actor,"sendmsg",9,"你好我是一条调用")
end
--新手界面引导共功(配合任务使用)
function test15(actor)
openhyperlink(actor,1,1)
navigation(actor,2,1,"测试提示2")
end
--刷新血量/蓝量
function test15(actor)
healthspellchanged(actor)
end
--调用触发
function test14(actor)
gotolabel(actor,3,"@test1,1,2")
end
--弹出窗口消息
function test13(actor)
messagebox(actor,"系统消息\\待填写的文本..","@func_ok,1,2,3","@func_no,4,5,6")
end
--过滤全服提示消息
function test12(actor)
filterglobalmsg(actor,0)
end
--显示倒计时信息提示
function test11(actor)
senddelaymsg(actor,"我是消息",5,249,0,"@test1",100)
end
--主屏弹出公告
function test10(actor)
sendmsgnew(actor,251,249,"我是一个主屏弹出公告",0,5)
end
--在屏幕任意地方 发公告消息
function test9(actor)
sendcustommsg(actor,0,"我是一个任意坐标的公告消息",249,251,100,100)
end
--发送屏幕滚动消息
function test8(actor)
sendmovemsg(actor,0,249,251,100,2,"我是一个屏幕滚动消息")
end
--聊天框顶部消息(可以打打广告,可以做玩家收货)
function test7(actor)
sendtopchatboardmsg(actor,0,251,249,5,"我是聊天框顶部消息,我广播收货.可以打广告",0)
end
--发送屏幕大字体消息(可以显示倒计时,倒计时介绍可以跳转到脚本)
function tese6(actor)
sendcentermsg(actor,251,249,"我是屏幕中间的大体消息%d",0,3,"@test1")
end
--发送自定义消息(显示在聊天框内)
function test5(actor)
guildnoticemsg(actor, 251, 249, "我是一个定义消息", actor)
end
--打印消息到控制台
function test4(actor)
release_print(1132132)
end
-- 给玩家设置聊天框 前缀(可以给充值玩家装逼用)
function test3(actor)
setchatprefix(actor,"[充值玩家]",249)
end
--给发送地图消息,次消息只有在一张地图内 才能看到
function test2(actor)
sendmapmsg(0, '{"Msg":"我是地图消息","FColor":255,"BColor":255,"Type":9,"Time":3,"SendName":"xxx","SendId":"123"}')
end
--发送消息
function test1(actor,...)
local mymsg='{"Msg":"我是一个消息","FColor":255,"BColor":0,"Type":9,"Time":3,"SendName":"xxx","SendId":"123"}'
sendmsg(actor,1,mymsg)
end