- 注册
- 2018/12/23
- 消息
- 352
- 金粒
- 183金粒
Ok so I figured it out thank God.
In iland-core.lua needs to be like this for height x length x width to calculate accurately:
local height = math.abs(land_data[landid].range.start_position[2] - land_data[landid].range.end_position[2])+1
local length = math.abs(land_data[landid].range.start_position[1] - land_data[landid].range.end_position[1])+1
local width = math.abs(land_data[landid].range.start_position[3] - land_data[landid].range.end_position[3])+1
The +1 needs to be added to each one.
Also:
if index==1 then return end
needs to be added so player can cancel purchase in:
function FORM_land_buy(player,index,text)
if index==1 then return end
local xuid = Actor:getXuid(player)
local player_credits = money_get(player)
if newLand[player].landprice>player_credits then
Actor:sendText(player,_tr('title.buyland.moneynotenough'),5);return
else
money_del(player,newLand[player].landprice)
end
Actor:sendText(player,_tr('title.buyland.succeed'),5)
local A=newLand[player].posA
local B=newLand[player].posB
local result={formatXYZ(A.x,A.y,A.z,B.x,B.y,B.z)}
ILAPI_CreateLand(xuid,result[1],result[2],newLand[player].dim)
newLand[player]=nil
GUI(player,'ModalForm','FORM_BACK_LandMgr',"Complete.",
_tr('gui.buyland.succeed'),
_tr('gui.general.looklook'),
_tr('gui.general.cancel'))
end
Also in en_US.json & zh_TW.json there is a space here which prevents the value from showing properly:
<d >
It should be:
"gui.landmgr.landinfo.content": "Owner:<a>\\nLandID: <m>\\nNickname: <n>\\nRange (range): <b>,<c>,<d> -> <e>,<f>,<g>
Hope this helps.
.Thank you, I will merge it into 1.1.4, next time you can submit a Pr :)