11
This commit is contained in:
@@ -48,6 +48,10 @@ class Item extends Base_C_Object {
|
||||
Attribute.seek(2);
|
||||
return Attribute.readn('i');
|
||||
}
|
||||
//获取品级
|
||||
function GetRarity() {
|
||||
return Sq_CallFunc(S_Ptr("0x80F12D6"), "int", ["pointer"], this.C_Object);
|
||||
}
|
||||
//设置编号
|
||||
function SetIndex(Index) {
|
||||
Attribute.seek(2);
|
||||
@@ -120,6 +124,12 @@ class Item extends Base_C_Object {
|
||||
Attribute.writen(Value, 'i');
|
||||
}
|
||||
|
||||
|
||||
//获取交易类型
|
||||
function GetAttachType() {
|
||||
return Sq_CallFunc(S_Ptr("0x80F12E2"), "int", ["pointer"], this.C_Object);
|
||||
}
|
||||
|
||||
//刷写装备数据
|
||||
function Flush() {
|
||||
Sq_WriteBlobToAddress(C_Object, Attribute);
|
||||
@@ -137,4 +147,9 @@ class Item extends Base_C_Object {
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
//是否可打包
|
||||
function Item::IsPackagble() {
|
||||
return Sq_CallFunc(S_Ptr("0x828B5B4"), "int", ["pointer"], this.C_Object);
|
||||
}
|
||||
Reference in New Issue
Block a user