天龙教程 |   1 条评论  浏览: 70580 

scene.lua 文件中
--玩家创建角色后第一次登陆游戏事件, 此事件会在玩家调用x888888_OnScenePlayerEnter事
--件之后、x888888_OnScenePlayerLogin事件之前调用
function x888888_OnScenePlayerFirstLogin( sceneId, selfId, nowtime )
local PlayerName=GetName(sceneId,selfId)
local PlayerSex=GetSex(sceneId,selfId)
if PlayerSex == 0 then
PlayerSex = "姑娘"
else
PlayerSex = "少侠"
end
LuaFnSendSystemMail( sceneId, GetName(sceneId,selfId), " 欢迎"..PlayerName..PlayerSex.."来到天龙八部游戏世界!#G大理城#W四大善人之一的#R赵天师#W[160,156]也许能给你一些帮助!#r#R本游戏禁止使用一切辅助工具程序,对使用辅助工具的玩家,我们在查证后将严肃处理!" )
LuaFnSendSystemMail( sceneId, GetName(sceneId,selfId), "#e00f000 小提示:#e000000#r#Y右上角的雷达窗口内有显示当前您所在的坐标。#Y鼠标左键点击便可行走。#Y鼠标右键按住左右移动,可以旋转显示视口。#Y鼠标中键滚轮前后转动,可以调节视口远近。#GALT+HOME/END#Y可以变换视角。")

CallScriptFunction( 808065, "SendMail", sceneId, selfId )
ItemID ={10100100,10101100,10102100,10103100,10104100,10105100}
i=random(1,6)
BeginAddItem(sceneId)
--送给玩家一本江湖指南
local WorldReferenceID = 30308021
AddItem( sceneId, WorldReferenceID, 1 )
AddItem( sceneId,ItemID,1)
AddItem( sceneId,10141025,1) ----绵制囊
AddItem( sceneId,10141035,1)---楠木箱
AddItem( sceneId,10141081,1)---翅膀:雪羽
AddItem( sceneId,30505080,1)---财富卡
AddItem( sceneId,30308052,1)---仙术:雪羽
EndAddItem(sceneId,selfId)
AddItemListToHuman(sceneId,selfId)
AddMission( sceneId,selfId, 718, 210238, 0, 0, 0 )
SetMissionData( sceneId, selfId, MD_RELATION_QIANHONGYU, 500 ) -- 设置和钱宏宇的初始关系
end

 

本站所有文章均为《龙引擎》原创,转载请注明出处来自https://www.longm2.cn/4076.html

作者:《
签名:新一代全方位自定义六职业微端游戏引擎!

相关推荐

发表评论

  1. 看了LZ的帖子,我只想说一句很好很强大

    xulj 大 侠 [0] [0]
切换注册

登 录

忘记密码 ?

切换登录

注 册

QQ扫一扫联系客服