This commit is contained in:
lenheart
2024-10-27 15:32:44 +08:00
parent e82c5ceee3
commit 6c71c79563
21 changed files with 846 additions and 253 deletions

View File

@@ -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);
}