paraworld.map.BuyTile

Description

购买Tile(将每个Tile的价格暂定为4000P币)

Parameters

Required Name Type Description
required sessionKey string 用户凭证。
optional id int 被购买的Tile的ID。若有id参数,则忽略x、y参数,如果没有id参数,则必须有x、y参数
x double 被购买的Tile的精确X坐标
y double 被购买的Tile的精确Y坐标
z double 被购买的Tile的Z坐标
terrainType int 被购买的Tile的地形类型,当指定的tile已经存在时,将忽略此参数
texture string 被购买的Tile的地形纹理,当指定的tile已经存在时,将忽略此参数

Example Return XML

<msg xmlns="">
        <isSuccess type="boolean">True</isSuccess>
        <tileID>60</tileID>
</msg>

Error Codes

当发生异常时,返回数据中会有一个“errorCode”节点,该节点记录了错误码。0:无异常 500:未知错误 499:提供的数据不完整 498:非法的访问 497:数据不存在或已被删除 496:未登录 409:文件夹已存在 410:文件已存在 411:P币和信用度不够

Test Cases

case 1

Input:

{

        ["y"]=0.4027099609375,

        ["x"]=0.70632934570313,

        ["sessionKey"]="6ea1ce24-bdf7-4893-a053-eb5fd2a74281",

        ["z"]=0,

        ["terrainType"]=1,

        ["texture"]="testTexture",

}

Result:

{

        ["tileID"]=340,

        ["isSuccess"]=true,

        ["errorCode"]=0,

}
Topic revision: r6 - 2008-05-16 - ClaymanS
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback