|
楼主 |
发表于 2022-1-17 01:17:54
|
显示全部楼层
还修改了大胃王 位置到 放到酒店那了 总共 6桌 还可以 是 3 3 9 桌也能放的下
\Script\ACT\DaWeiWang.lua
----SPECIAL_FOOD = { name='霸王别姬', expe=80, dig=30, rate = 53 }
-- 列与行
DESK_ROW = 3
DESK_LINE = 2
DESK_NUM = 6 ---DESK_ROW * DESK_LINE
-------------------创建桌子-----------
--DWW_Ingnpc = createNPC(0,1449,1543,43,394,"吃死人不赔命-刘涎",1,4,1)
--NPC放到 华夏酒店
DWW_Ingnpc = createNPC(0,1542,1554,43,394,"大胃王-刘涎",1,4,1)
i=0
for k=1,DESK_ROW do
for j=1,DESK_LINE do
i = i +1
desk[i]={}
-- 桌与桌之间的距离
-- desk[i].x =1500 + 20*k
-- desk[i].y =1640 + 20*j
desk[i].x =1538 + 7*k
desk[i].y =1550 + 7*j
desk[i].npcid = 353 + i -1
desk[i].users = 0
desk[i].actor_id = {}
desk[i].first = 0
desk[i].second = 0
desk[i].third = 0
desk[i].t = 0
desk[i].npc = createNPC(0, desk[i].x, desk[i].y, 107, desk[i].npcid, "美食桌"..i,1,0,1)
end
end
------end--创建桌子--end--------- |
|