-
Posts
402 -
Joined
-
Last visited
-
Days Won
20 -
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by Ikarus_
-
-
No man ,
I just read the python code responsible for the effect in question.
def OverInItem(self, overSlotPos): overSlotPos = self.__InventoryLocalSlotPosToGlobalSlotPos(overSlotPos) self.wndItem.SetUsableItem(False) if mouseModule.mouseController.isAttached(): attachedItemType = mouseModule.mouseController.GetAttachedType() if player.SLOT_TYPE_INVENTORY == attachedItemType: attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber() attachedItemVNum = mouseModule.mouseController.GetAttachedItemIndex() if self.__CanUseSrcItemToDstItem(attachedItemVNum, attachedSlotPos, overSlotPos): self.wndItem.SetUsableItem(True) self.ShowToolTip(overSlotPos) return self.ShowToolTip(overSlotPos)
if self.__CanUseSrcItemToDstItem -> green image on item
that methods :def __CanUseSrcItemToDstItem(self, srcItemVNum, srcSlotPos, dstSlotPos): "대상 아이템에 사용할 수 있는가?" if srcSlotPos == dstSlotPos: return False if item.IsRefineScroll(srcItemVNum): if player.REFINE_OK == player.CanRefine(srcItemVNum, dstSlotPos): return True elif item.IsMetin(srcItemVNum): if player.ATTACH_METIN_OK == player.CanAttachMetin(srcItemVNum, dstSlotPos): return True elif item.IsDetachScroll(srcItemVNum): if player.DETACH_METIN_OK == player.CanDetach(srcItemVNum, dstSlotPos): return True elif item.IsKey(srcItemVNum): if player.CanUnlock(srcItemVNum, dstSlotPos): return True elif (player.GetItemFlags(srcSlotPos) & ITEM_FLAG_APPLICABLE) == ITEM_FLAG_APPLICABLE: return True else: useType=item.GetUseType(srcItemVNum) if "USE_CLEAN_SOCKET" == useType: if self.__CanCleanBrokenMetinStone(dstSlotPos): return True elif "USE_CHANGE_ATTRIBUTE" == useType: if self.__CanChangeItemAttrList(dstSlotPos): return True elif "USE_ADD_ATTRIBUTE" == useType: if self.__CanAddItemAttr(dstSlotPos): return True elif "USE_ADD_ATTRIBUTE2" == useType: if self.__CanAddItemAttr(dstSlotPos): return True elif "USE_ADD_ACCESSORY_SOCKET" == useType: if self.__CanAddAccessorySocket(dstSlotPos): return True elif "USE_PUT_INTO_ACCESSORY_SOCKET" == useType: if self.__CanPutAccessorySocket(dstSlotPos, srcItemVNum): return True; elif "USE_PUT_INTO_BELT_SOCKET" == useType: dstItemVNum = player.GetItemIndex(dstSlotPos) item.SelectItem(dstItemVNum) if item.ITEM_TYPE_BELT == item.GetItemType(): return True return False
so the problem is probably the type/flags of item assigned (into proto) to the item in question.
-
Probrably it'is for the wrong type/flag into item proto
-
You have wrote an wrong check for empty inventory space (exchange.cpp)...
Spoilerfor (i = 0; i < INVENTORY_MAX_NUM / 4; ++i) { if (!(item = victim->GetInventoryItem(i))) continue; s_grid1.Put(i, 1, item->GetSize()); } for (i = INVENTORY_MAX_NUM / 4; i < INVENTORY_MAX_NUM; ++i) { if (!(item = victim->GetInventoryItem(i))) continue; s_grid2.Put(i - INVENTORY_MAX_NUM / 4, 1, item->GetSize()); } for (i = INVENTORY_MAX_NUM / 4; i < INVENTORY_MAX_NUM; ++i) { if (!(item = victim->GetInventoryItem(i))) continue; s_grid3.Put(i - INVENTORY_MAX_NUM / 4, 1, item->GetSize()); } for (i = INVENTORY_MAX_NUM / 4; i < INVENTORY_MAX_NUM; ++i) { if (!(item = victim->GetInventoryItem(i))) continue; s_grid4.Put(i - INVENTORY_MAX_NUM / 4, 1, item->GetSize()); }
Delete all for cicle and replace it with this cicle
for(i = 0 ; i < INVENTORY_MAX_NUM ; i++) { if (! (item = victim->GetInventoryItem (i))) { continue; } if(i < INVENTORY_MAX_NUM/4) { s_grid1.Put(i , 1 , item->GetSize() ); } else if( i < (INVENTORY_MAX_NUM/4) * 2) ) { s_grid2.Put(i - INVENTORY_MAX_NUM/4 , 1 , item->GetSize() ); } else if( i < (INVENTORY_MAX_NUM/4 ) * 3 ) { s_grid3.Put(i - (INVENTORY_MAX_NUM/4*2) , 1 , item->GetSize() ); } else { s_grid4.Put(i - (INVENTORY_MAX_NUM/4*3) , 1 , item->GetSize() ); } }
not tested but i think it works fine.. Bye Bye
-
Man , i think the best method to stop the crashes is to block all chat packet with "strange char name".
If you haven't the skills to filter chat packet , send me a private message.
i'm Sorry for the bad English .-.- 1
-
Hello Community!
I'm Ikarus (nickname on skype),I'm here today to give you a new complete taskbar (graphics + code)- The graphics were created entirely by K3aX(nickname on skype).
- The Code instead was written by me.
- I hope someone will enjoy it!
Download:Bye Bye- 203
- 7
- 1
- 1
- 1
- 1
- 1
- 1
- 7
- 2
- 3
- 68
- 13
- 125
Little BUG Inventory with COSTUME BONUS
in Community Support - Questions & Answers
Posted
Is the same things.... for the relative part of the green image on item