UID36760
帖子
精華
主題
積分35238
現金
積極性
威望
違規
熱心
推廣次數
閱讀權限30
註冊時間2007-11-25
在線時間 小時
最後登錄1970-1-1
TA的每日心情 | 無聊 2023-11-5 12:14 PM |
---|
簽到天數: 2233 天 連續簽到: 1 天 [LV.Master]伴壇終老
|
發表於 2013-1-6 00:29:19
|
顯示全部樓層
這是腳本- prontera,160,180,4 script TestNpc2 904,{
- for(set .@i,0;.@i<100;set .@i,.@i+1) {
- mes .@i+"."+getinventoryinfo(.@i,0);
- }
- next;
- input .@sd;
- input .@s2;
- mes ""+itemlock(.@sd,.@s2);
- close;
- }
複製代碼 如果.@s2輸入0
會得到-858993460
輸入50會得到-858993410
再輸入0得到-858993460
沒辦法正常使用(似乎會讓值固定在-858993460)
求解...
mmo.h- struct item {
- int id;
- short nameid;
- short amount;
- unsigned short equip; // location(s) where item is equipped (using enum equip_pos for bitmasking)
- char identify;
- char refine;
- char attribute;
- short card[MAX_SLOTS];
- unsigned int expire_time;
- char favorite;
- int Otherid;
- int lock;
- };
複製代碼 |
|