Profile Image
3
Josephin DoeTyping . .
Profile Image
1
Lary Doeonline
Profile Image
Aliceonline
Profile Image
1
Alia10 min ago
Profile Image
Suzen15 min ago
Profile Image
3
Josephin DoeTyping . .
Profile Image
1
Lary Doeonline
Profile Image
Aliceonline
Profile Image
1
Alia10 min ago
Profile Image
Suzen15 min ago
Profile Image
3
Josephin DoeTyping . .
Profile Image
1
Lary Doeonline
Profile Image
Aliceonline

New Group

New Contact

Profile Image

Josephin Doei am not what happened . .

Profile Image
Lary DoeAvalable
Profile Image
Alicehear using Dasho
A
AliaAvalable
Profile Image
SuzenAvalable
JD
Josephin DoeDon't send me image
Profile Image
Lary Doenot send free msg
Desktop settings

You get latest content at a time when data will updated

Application settings

Automaticaly take backup as par schedule

System settings

Allow to show public user message

Josephin Doe
Profile Image

hello tell me something

about yourself?

8:20 a.m.

Ohh! very nice

8:22 a.m.

Profile Image
Profile Image

can you help me?

8:20 a.m.

白日门传奇添加商场物品详细说明

文章详情

白日门传奇添加商场物品详细说明,今天测试添加一个绑定元宝兑换券,记录一下添加过程
首先是添加物品,itemdef.csv里添加如下:简单示例,没有做详细说明

23070001	2	40000006	绑定元宝兑换券	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	1	1	100000000	充值货币用处很多	 	0	0	0	0	0	0	0	0	0	0	0	0	1	0

然后商场文件添加显示,store.csv添加:

81017	81017	1	23070001	1	14	1	1	0	0	0	0	0	0	0	0	0	0	0	绑定元宝兑换券

前端lua也需要添加,不然lua会报错。
src\app\data\itemdef.lua中添加

[23070001] = {
		["mTypeID"] = 23070001,
		["SubType"] = 4,
		["mIconID"] = 20000516,
		["mName"] = "绑定元宝兑换券",
		["mColor"] = 0,
		["mWeight"] = 0,
		["mEquipType"] = 0,
		["mNeedType"] = 0,
		["mNeedParam"] = 1,
		["mPrice"] = 100,
		["mNeedZsLevel"] = 0,
		["mEquipLevel"] = 0,
		["mJob"] = 0,
		["mGender"] = 0,
		["mEquipGroup"] = 0,
		["mEquipComp"] = 0,
		["mEquipContribute"] = 0,
		["mShowDest"] = 0,
		["mAddPower"] = 0,
		["mItemBg"] = 5,
		["recycle"] = {0},
		["mRecycleExp"] = 0,
		["mRecycleId"] = 0,
		["mCanUse"] = 1,
		["mCanDestroy"] = 1,
		["mCanDepot"] = 1,
		["mCanPush"] = 0,
		["mBagShow"] = 1,
		["mTimesLimit"] = 0,
		["func_id"] = 1,
		["func_params"] = "110;5;50",
		["mCanMultiUse"] = 1,
		["mGiveFlag"] = 2,
		["mGiveValue"] = 0,
		["mDesp"] = "绑定元宝兑换券",
		["mSource"] = "来源于:充值返还",
		["mGZEffectID"] = 0,
		["mSubEquipType"] = 0,
		["mDropProtect"] = 0,
		["mMaxLevel"] = 0,
		["attr"] = "0",
		["baseattrprop"] = "0",
		["lastattrprop"] = "0",
		["randMDC"] = 0,
		["randMAC"] = 0,
		["mPickUpType"] = 1049,
		["mEffectID"] = 0,
		["mRank"] = 0,
		["upLevel"] = 0,
		["skillId"] = 0,
	},

服务端itemprogram.csv和src\app\data\itemprogram.lua中也需要添加
[23070001] = {
		["type_id"] = 23070001,
		["mResMale"] = 0,
		["mResFemale"] = 0,
		["script"] = "item.chufa.onUseItem",
		["mResInner"] = 0,
	},

还有一个src\app\data\itemStack.lua

[23070001] = {
		["typeID"] = 23070001,
		["mName"] = "绑定元宝兑换券",
		["mStackMax"] = 99999,
	},

Image

Tags:

发表评论