- UID
- 10678
- 最後登錄
- 1970-1-1
- 精華
- 閱讀權限
- 100
- 積分
- 5192
- 金錢
- 元
- 威望
- 點
- 貢獻
- 點
|
發表於 2012-3-9 07:38:17
|
顯示全部樓層
tchunaik 發表於 2012-3-2 11:51 PM
还有想问..
if ride_type
local ride_type = math.random(1000) --随即random一个号码介于0~1000
if ride_type <= 1 then 如果号码 random到 0或1
AddItem(800000022, 1, 0, "Add by item2827.lua") 增加物品《《《坐骑咯
elseif ride_type <= 11 then如果号码 random到 2~11
AddItem(800000023, 1, 0, "Add by item2827.lua")
elseif ride_type <= 31 then
AddItem(800000024, 1, 0, "Add by item2827.lua")
elseif ride_type <= 160 then
AddItem(800000011, 1, 0, "Add by item2827.lua")
elseif ride_type <= 260 then
AddItem(800000012, 1, 0, "Add by item2827.lua")
elseif ride_type <= 360 then
AddItem(800000013, 1, 0, "Add by item2827.lua")
elseif ride_type <= 410 then
AddItem(800000008, 1, 0, "Add by item2827.lua")
elseif ride_type <= 710 then
AddItem(800000007, 1, 0, "Add by item2827.lua")
else
AddItem(800000004, 1, 0, "Add by item2827.lua")
end
就这样明白? |
|