Jump to content

Custom - Slot Effect System


Recommended Posts

@Frozen hi man, really good job with this system, i'm in love with it. But i have this problem. Everytime i teleport to another map all my items in the inventory turn to New. How can i make it so that they don't ?. Any way i could make this run everytime i teleport ? 

constInfo.SAVENEWITEMS = constInfo.NEWITEMS
del constInfo.NEWITEMS

 

Just like adding it to logout , exit and change character button is there any way of adding it to when i change map / teleport ? please reply i really need this.

 

EDIT:

BUG Fix for what i just said up there.

1. Extract root.eix/.epk

2. Open introloading.py

3. Search for:       def __init__(self, stream):

4. Under    self.loadStepList=[]    Add this:

        constInfo.SAVENEWITEMS = constInfo.NEWITEMS
        del constInfo.NEWITEMS

 

Should look like this:

bugfix.png

This will only work if you added the previous bug fix posted by @Frozen. Check the second page of comments section.

You may also add this fix to the main thread as it is an important fix for every user.

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 1
Link to comment
Share on other sites

  • 4 weeks later...

Sorry for ask here, but i have one more error

when i put change caractere and i log with the same player, my client crash

someone know why ?

 

i have these error in my syserr :

i delete the fix with uisystem.py and it work, but i need this fix ^^

 

 

Spoiler

 

0515 11:34:16821 :: CMapOutdoor::Load - LoadMonsterAreaInfo ERROR
0515 11:39:46786 :: Traceback (most recent call last):

0515 11:39:46786 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:46786 :: AttributeError
0515 11:39:46786 :: : 
0515 11:39:46786 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46786 :: 

0515 11:39:46787 :: Traceback (most recent call last):

0515 11:39:46787 ::   File "game.py", line 875, in RefreshEquipment

0515 11:39:46787 ::   File "interfaceModule.py", line 582, in RefreshInventory

0515 11:39:46787 ::   File "uiInventory.py", line 679, in RefreshItemSlot

0515 11:39:46788 ::   File "uiInventory.py", line 610, in RefreshBagSlotWindow

0515 11:39:46788 :: AttributeError
0515 11:39:46788 :: : 
0515 11:39:46788 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46788 :: 

0515 11:39:46788 :: Traceback (most recent call last):

0515 11:39:46788 ::   File "game.py", line 879, in RefreshInventory

0515 11:39:46789 ::   File "interfaceModule.py", line 582, in RefreshInventory

0515 11:39:46789 ::   File "uiInventory.py", line 679, in RefreshItemSlot

0515 11:39:46789 ::   File "uiInventory.py", line 610, in RefreshBagSlotWindow

0515 11:39:46790 :: AttributeError
0515 11:39:46790 :: : 
0515 11:39:46790 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46790 :: 

0515 11:39:46792 :: Traceback (most recent call last):

0515 11:39:46792 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:46793 :: AttributeError
0515 11:39:46793 :: : 
0515 11:39:46793 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46793 :: 

0515 11:39:46793 :: Traceback (most recent call last):

0515 11:39:46793 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:46793 :: AttributeError
0515 11:39:46793 :: : 
0515 11:39:46793 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46793 :: 

0515 11:39:46794 :: Traceback (most recent call last):

0515 11:39:46794 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:46794 :: AttributeError
0515 11:39:46794 :: : 
0515 11:39:46794 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46794 :: 

0515 11:39:46841 :: Traceback (most recent call last):

0515 11:39:46841 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:46841 :: AttributeError
0515 11:39:46841 :: : 
0515 11:39:46841 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46841 :: 

0515 11:39:46841 :: Traceback (most recent call last):

0515 11:39:46841 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:46842 :: AttributeError
0515 11:39:46842 :: : 
0515 11:39:46842 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46842 :: 

0515 11:39:46842 :: Traceback (most recent call last):

0515 11:39:46842 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:46842 :: AttributeError
0515 11:39:46842 :: : 
0515 11:39:46842 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46842 :: 

0515 11:39:46844 :: Traceback (most recent call last):

0515 11:39:46844 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:46844 :: AttributeError
0515 11:39:46844 :: : 
0515 11:39:46844 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46844 :: 

0515 11:39:46844 :: Traceback (most recent call last):

0515 11:39:46844 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:46845 :: AttributeError
0515 11:39:46845 :: : 
0515 11:39:46845 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46845 :: 

0515 11:39:46845 :: Traceback (most recent call last):

0515 11:39:46845 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:46845 :: AttributeError
0515 11:39:46845 :: : 
0515 11:39:46845 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46845 :: 

0515 11:39:46847 :: Traceback (most recent call last):

0515 11:39:46847 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:46847 :: AttributeError
0515 11:39:46847 :: : 
0515 11:39:46847 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46847 :: 

0515 11:39:46847 :: Traceback (most recent call last):

0515 11:39:46847 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:46848 :: AttributeError
0515 11:39:46848 :: : 
0515 11:39:46848 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46848 :: 

0515 11:39:46850 :: Traceback (most recent call last):

0515 11:39:46850 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:46850 :: AttributeError
0515 11:39:46850 :: : 
0515 11:39:46850 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46850 :: 

0515 11:39:46850 :: Traceback (most recent call last):

0515 11:39:46850 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:46851 :: AttributeError
0515 11:39:46851 :: : 
0515 11:39:46851 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46851 :: 

0515 11:39:46851 :: Traceback (most recent call last):

0515 11:39:46851 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:46851 :: AttributeError
0515 11:39:46851 :: : 
0515 11:39:46851 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46851 :: 

0515 11:39:46895 :: Traceback (most recent call last):

0515 11:39:46895 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:46896 :: AttributeError
0515 11:39:46896 :: : 
0515 11:39:46896 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46896 :: 

0515 11:39:46896 :: Traceback (most recent call last):

0515 11:39:46896 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:46896 :: AttributeError
0515 11:39:46896 :: : 
0515 11:39:46896 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46897 :: 

0515 11:39:46897 :: Traceback (most recent call last):

0515 11:39:46897 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:46897 :: AttributeError
0515 11:39:46897 :: : 
0515 11:39:46897 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46897 :: 

0515 11:39:46898 :: Traceback (most recent call last):

0515 11:39:46898 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:46899 :: AttributeError
0515 11:39:46899 :: : 
0515 11:39:46899 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46899 :: 

0515 11:39:46899 :: Traceback (most recent call last):

0515 11:39:46899 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:46899 :: AttributeError
0515 11:39:46899 :: : 
0515 11:39:46899 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46899 :: 

0515 11:39:46900 :: Traceback (most recent call last):

0515 11:39:46900 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:46900 :: AttributeError
0515 11:39:46900 :: : 
0515 11:39:46900 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46900 :: 

0515 11:39:46901 :: Traceback (most recent call last):

0515 11:39:46901 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:46902 :: AttributeError
0515 11:39:46902 :: : 
0515 11:39:46902 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46902 :: 

0515 11:39:46902 :: Traceback (most recent call last):

0515 11:39:46902 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:46902 :: AttributeError
0515 11:39:46902 :: : 
0515 11:39:46902 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46902 :: 

0515 11:39:46902 :: Traceback (most recent call last):

0515 11:39:46903 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:46903 :: AttributeError
0515 11:39:46903 :: : 
0515 11:39:46903 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46903 :: 

0515 11:39:46918 :: Traceback (most recent call last):

0515 11:39:46918 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:46918 :: AttributeError
0515 11:39:46918 :: : 
0515 11:39:46918 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46918 :: 

0515 11:39:46918 :: Traceback (most recent call last):

0515 11:39:46918 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:46919 :: AttributeError
0515 11:39:46919 :: : 
0515 11:39:46919 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46919 :: 

0515 11:39:46919 :: Traceback (most recent call last):

0515 11:39:46919 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:46919 :: AttributeError
0515 11:39:46919 :: : 
0515 11:39:46919 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46919 :: 

0515 11:39:46971 :: Traceback (most recent call last):

0515 11:39:46971 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:46972 :: AttributeError
0515 11:39:46972 :: : 
0515 11:39:46972 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46972 :: 

0515 11:39:46972 :: Traceback (most recent call last):

0515 11:39:46972 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:46972 :: AttributeError
0515 11:39:46972 :: : 
0515 11:39:46972 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46972 :: 

0515 11:39:46972 :: Traceback (most recent call last):

0515 11:39:46972 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:46973 :: AttributeError
0515 11:39:46973 :: : 
0515 11:39:46973 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46973 :: 

0515 11:39:46974 :: Traceback (most recent call last):

0515 11:39:46974 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:46975 :: AttributeError
0515 11:39:46975 :: : 
0515 11:39:46975 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46975 :: 

0515 11:39:46975 :: Traceback (most recent call last):

0515 11:39:46975 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:46975 :: AttributeError
0515 11:39:46975 :: : 
0515 11:39:46975 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46975 :: 

0515 11:39:46975 :: Traceback (most recent call last):

0515 11:39:46975 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:46976 :: AttributeError
0515 11:39:46976 :: : 
0515 11:39:46976 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46976 :: 

0515 11:39:46977 :: Traceback (most recent call last):

0515 11:39:46977 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:46978 :: AttributeError
0515 11:39:46978 :: : 
0515 11:39:46978 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46978 :: 

0515 11:39:46978 :: Traceback (most recent call last):

0515 11:39:46978 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:46978 :: AttributeError
0515 11:39:46978 :: : 
0515 11:39:46978 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46978 :: 

0515 11:39:46978 :: Traceback (most recent call last):

0515 11:39:46978 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:46979 :: AttributeError
0515 11:39:46979 :: : 
0515 11:39:46979 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46979 :: 

0515 11:39:46980 :: Traceback (most recent call last):

0515 11:39:46980 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:46981 :: AttributeError
0515 11:39:46981 :: : 
0515 11:39:46981 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46981 :: 

0515 11:39:46981 :: Traceback (most recent call last):

0515 11:39:46981 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:46981 :: AttributeError
0515 11:39:46981 :: : 
0515 11:39:46981 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46981 :: 

0515 11:39:46982 :: Traceback (most recent call last):

0515 11:39:46982 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:46982 :: AttributeError
0515 11:39:46983 :: : 
0515 11:39:46983 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:46983 :: 

0515 11:39:47023 :: Traceback (most recent call last):

0515 11:39:47023 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:47024 :: AttributeError
0515 11:39:47024 :: : 
0515 11:39:47024 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47024 :: 

0515 11:39:47024 :: Traceback (most recent call last):

0515 11:39:47024 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:47024 :: AttributeError
0515 11:39:47024 :: : 
0515 11:39:47024 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47024 :: 

0515 11:39:47024 :: Traceback (most recent call last):

0515 11:39:47024 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:47024 :: AttributeError
0515 11:39:47024 :: : 
0515 11:39:47024 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47024 :: 

0515 11:39:47026 :: Traceback (most recent call last):

0515 11:39:47026 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:47026 :: AttributeError
0515 11:39:47026 :: : 
0515 11:39:47026 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47026 :: 

0515 11:39:47026 :: Traceback (most recent call last):

0515 11:39:47026 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:47026 :: AttributeError
0515 11:39:47026 :: : 
0515 11:39:47026 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47026 :: 

0515 11:39:47026 :: Traceback (most recent call last):

0515 11:39:47026 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:47027 :: AttributeError
0515 11:39:47027 :: : 
0515 11:39:47027 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47027 :: 

0515 11:39:47046 :: Traceback (most recent call last):

0515 11:39:47047 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:47047 :: AttributeError
0515 11:39:47047 :: : 
0515 11:39:47047 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47047 :: 

0515 11:39:47047 :: Traceback (most recent call last):

0515 11:39:47047 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:47047 :: AttributeError
0515 11:39:47047 :: : 
0515 11:39:47047 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47047 :: 

0515 11:39:47047 :: Traceback (most recent call last):

0515 11:39:47047 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:47047 :: AttributeError
0515 11:39:47047 :: : 
0515 11:39:47047 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47047 :: 

0515 11:39:47049 :: Traceback (most recent call last):

0515 11:39:47049 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:47049 :: AttributeError
0515 11:39:47049 :: : 
0515 11:39:47049 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47049 :: 

0515 11:39:47049 :: Traceback (most recent call last):

0515 11:39:47049 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:47049 :: AttributeError
0515 11:39:47049 :: : 
0515 11:39:47049 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47049 :: 

0515 11:39:47049 :: Traceback (most recent call last):

0515 11:39:47049 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:47050 :: AttributeError
0515 11:39:47050 :: : 
0515 11:39:47050 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47050 :: 

0515 11:39:47097 :: Traceback (most recent call last):

0515 11:39:47098 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:47098 :: AttributeError
0515 11:39:47098 :: : 
0515 11:39:47098 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47098 :: 

0515 11:39:47098 :: Traceback (most recent call last):

0515 11:39:47098 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:47098 :: AttributeError
0515 11:39:47098 :: : 
0515 11:39:47098 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47098 :: 

0515 11:39:47098 :: Traceback (most recent call last):

0515 11:39:47098 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:47099 :: AttributeError
0515 11:39:47099 :: : 
0515 11:39:47099 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47099 :: 

0515 11:39:47099 :: Traceback (most recent call last):

0515 11:39:47099 ::   File "game.py", line 879, in RefreshInventory

0515 11:39:47100 ::   File "interfaceModule.py", line 582, in RefreshInventory

0515 11:39:47101 ::   File "uiInventory.py", line 679, in RefreshItemSlot

0515 11:39:47101 ::   File "uiInventory.py", line 599, in RefreshBagSlotWindow

0515 11:39:47102 :: AttributeError
0515 11:39:47102 :: : 
0515 11:39:47102 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47102 :: 

0515 11:39:47105 :: Traceback (most recent call last):

0515 11:39:47105 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:47106 :: AttributeError
0515 11:39:47106 :: : 
0515 11:39:47106 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47106 :: 

0515 11:39:47106 :: Traceback (most recent call last):

0515 11:39:47106 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:47107 :: AttributeError
0515 11:39:47107 :: : 
0515 11:39:47107 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47107 :: 

0515 11:39:47108 :: Traceback (most recent call last):

0515 11:39:47108 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:47108 :: AttributeError
0515 11:39:47108 :: : 
0515 11:39:47108 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47108 :: 

0515 11:39:47110 :: Traceback (most recent call last):

0515 11:39:47110 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:47111 :: AttributeError
0515 11:39:47111 :: : 
0515 11:39:47111 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47111 :: 

0515 11:39:47111 :: Traceback (most recent call last):

0515 11:39:47111 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:47112 :: AttributeError
0515 11:39:47112 :: : 
0515 11:39:47112 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47112 :: 

0515 11:39:47112 :: Traceback (most recent call last):

0515 11:39:47112 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:47113 :: AttributeError
0515 11:39:47113 :: : 
0515 11:39:47113 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47113 :: 

0515 11:39:47115 :: Traceback (most recent call last):

0515 11:39:47115 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:47116 :: AttributeError
0515 11:39:47116 :: : 
0515 11:39:47116 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47116 :: 

0515 11:39:47116 :: Traceback (most recent call last):

0515 11:39:47116 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:47117 :: AttributeError
0515 11:39:47117 :: : 
0515 11:39:47117 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47117 :: 

0515 11:39:47117 :: Traceback (most recent call last):

0515 11:39:47117 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:47118 :: AttributeError
0515 11:39:47118 :: : 
0515 11:39:47118 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47118 :: 

0515 11:39:47146 :: Traceback (most recent call last):

0515 11:39:47146 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:47146 :: AttributeError
0515 11:39:47146 :: : 
0515 11:39:47146 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47146 :: 

0515 11:39:47146 :: Traceback (most recent call last):

0515 11:39:47146 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:47147 :: AttributeError
0515 11:39:47147 :: : 
0515 11:39:47147 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47147 :: 

0515 11:39:47147 :: Traceback (most recent call last):

0515 11:39:47147 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:47147 :: AttributeError
0515 11:39:47147 :: : 
0515 11:39:47147 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47147 :: 

0515 11:39:47148 :: Traceback (most recent call last):

0515 11:39:47148 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:47149 :: AttributeError
0515 11:39:47149 :: : 
0515 11:39:47149 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47149 :: 

0515 11:39:47182 :: Traceback (most recent call last):

0515 11:39:47182 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:47182 :: AttributeError
0515 11:39:47182 :: : 
0515 11:39:47182 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47182 :: 

0515 11:39:47283 :: Traceback (most recent call last):

0515 11:39:47283 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:47283 :: AttributeError
0515 11:39:47283 :: : 
0515 11:39:47283 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47283 :: 

0515 11:39:47358 :: Traceback (most recent call last):

0515 11:39:47358 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:47358 :: AttributeError
0515 11:39:47358 :: : 
0515 11:39:47358 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47358 :: 

0515 11:39:47408 :: Traceback (most recent call last):

0515 11:39:47408 ::   File "game.py", line 875, in RefreshEquipment

0515 11:39:47409 ::   File "interfaceModule.py", line 582, in RefreshInventory

0515 11:39:47410 ::   File "uiInventory.py", line 679, in RefreshItemSlot

0515 11:39:47410 ::   File "uiInventory.py", line 599, in RefreshBagSlotWindow

0515 11:39:47411 :: AttributeError
0515 11:39:47411 :: : 
0515 11:39:47411 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47411 :: 

0515 11:39:47412 :: Traceback (most recent call last):

0515 11:39:47412 ::   File "game.py", line 879, in RefreshInventory

0515 11:39:47412 ::   File "interfaceModule.py", line 582, in RefreshInventory

0515 11:39:47413 ::   File "uiInventory.py", line 679, in RefreshItemSlot

0515 11:39:47414 ::   File "uiInventory.py", line 599, in RefreshBagSlotWindow

0515 11:39:47415 :: AttributeError
0515 11:39:47415 :: : 
0515 11:39:47415 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47415 :: 

0515 11:39:47446 :: Traceback (most recent call last):

0515 11:39:47446 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:47447 :: AttributeError
0515 11:39:47447 :: : 
0515 11:39:47447 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47447 :: 

0515 11:39:47557 :: Traceback (most recent call last):

0515 11:39:47557 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:47558 :: AttributeError
0515 11:39:47558 :: : 
0515 11:39:47558 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47558 :: 

0515 11:39:47654 :: Traceback (most recent call last):

0515 11:39:47655 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:47656 :: AttributeError
0515 11:39:47656 :: : 
0515 11:39:47656 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47656 :: 

0515 11:39:47722 :: Traceback (most recent call last):

0515 11:39:47722 ::   File "game.py", line 875, in RefreshEquipment

0515 11:39:47723 ::   File "interfaceModule.py", line 582, in RefreshInventory

0515 11:39:47723 ::   File "uiInventory.py", line 679, in RefreshItemSlot

0515 11:39:47723 ::   File "uiInventory.py", line 599, in RefreshBagSlotWindow

0515 11:39:47724 :: AttributeError
0515 11:39:47724 :: : 
0515 11:39:47724 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47724 :: 

0515 11:39:47724 :: Traceback (most recent call last):

0515 11:39:47724 ::   File "game.py", line 879, in RefreshInventory

0515 11:39:47724 ::   File "interfaceModule.py", line 582, in RefreshInventory

0515 11:39:47724 ::   File "uiInventory.py", line 679, in RefreshItemSlot

0515 11:39:47725 ::   File "uiInventory.py", line 599, in RefreshBagSlotWindow

0515 11:39:47725 :: AttributeError
0515 11:39:47725 :: : 
0515 11:39:47725 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47725 :: 

0515 11:39:47743 :: Traceback (most recent call last):

0515 11:39:47743 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:47744 :: AttributeError
0515 11:39:47744 :: : 
0515 11:39:47744 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47744 :: 

0515 11:39:47892 :: Traceback (most recent call last):

0515 11:39:47893 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:47893 :: AttributeError
0515 11:39:47893 :: : 
0515 11:39:47893 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47893 :: 

0515 11:39:47963 :: Traceback (most recent call last):

0515 11:39:47963 ::   File "game.py", line 2636, in OnNewItem

0515 11:39:47963 :: AttributeError
0515 11:39:47963 :: : 
0515 11:39:47963 :: 'module' object has no attribute 'NEWITEMS'
0515 11:39:47964 :: 

0515 11:39:56153 :: 
networkModule.py(line:230) SetLoadingPhase
introLoading.py(line:52) __init__

networkModule.SetLoadingPhase - <type 'exceptions.AttributeError'>:'module' object has no attribute 'NEWITEMS'

0515 11:39:56154 :: ============================================================================================================
0515 11:39:56154 :: Abort!!!!

 

 

 


 

 

 

Link to comment
Share on other sites

Give us your constinfo.py and game.py

Did you add this:

constinfo.py

NEWITEMS = []

game.py (at the end of the file)

def OnNewItem(self, cell):
    if not cell in constInfo.NEWITEMS:
        constInfo.NEWITEMS.append(cell)

Here one example for you on how to add it in game.py: screenshot

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • 2 weeks later...
  • 3 months later...

Good afternoon friends, I implemented the system is apparently working, most are like me the following error:
syseer:

0912 15:36:57629 :: Traceback (most recent call last):

0912 15:36:57629 ::   File "game.py", line 3158, in OnNewItem

0912 15:36:57630 :: AttributeError
0912 15:36:57630 :: : 
0912 15:36:57630 :: 'module' object has no attribute 'NEWITEMS'
0912 15:36:57630 ::

 

I thank anyone who can help me.

Thank you and good evening!!!

Link to comment
Share on other sites

  • 6 months later...
  • 6 months later...
  • 1 month later...
  • 2 years later...
  • 3 years later...
On 1/21/2016 at 4:31 PM, Frozen said:

M2 Download Center

This is the hidden content, please
( Internal )

 

Hello, im here today releasing my version of slot effect system. Is not the same as the official looks like but in the future i will update this to look the same.

Screenshot to see how it looks like.

  Reveal hidden contents

ZgBtvp7.png

Everything in this system was made by me.

Tutorial:

Go to UserInterface > PythonPlayer.cpp

Search for :

 

void CPythonPlayer::SetItemData(TItemPos Cell, const TItemData & c_rkItemInst)
 

Add in  the end of the funcion:

 

PyCallClassMemberFunc(m_ppyGameWindow, "OnNewItem", Py_BuildValue("(i)", Cell.cell));
 

Compile It.

Go to root > constInfo.py

Add this somewhere:

 

NEWITEMS = []
 

Save it.

Go to root > game.py

Add this function:

 

def OnNewItem(self, cell):
	if not cell in constInfo.NEWITEMS:
		constInfo.NEWITEMS.append(cell)
 

Save It.

Go to root > uiinventory.py

Search for :

 

def RefreshBagSlotWindow(self):
 

Add this before this: (if 0 == itemCount:) :

 

if itemCount == 0 and slotNumber in constInfo.NEWITEMS:
	constInfo.NEWITEMS.remove(slotNumber)
 

Add this under this: (setItemVNum(i, itemVnum, itemCount)) :

 

self.wndItem.EnableCoverButton(i)        
 if slotNumber in constInfo.NEWITEMS:
	self.wndItem.SetCoverButton(i, "d:/ymir work/ui/game/quest/slot_button_00.sub",\
																		 "d:/ymir work/ui/game/quest/slot_button_00.sub",\
																		"d:/ymir work/ui/game/quest/slot_button_00.sub",\
																		"d:/ymir work/ui/new_icon.tga", FALSE, FALSE)
	 self.wndItem.DisableCoverButton(i)
 

Search for:

 

def OverInItem(self, overSlotPos):
 Add under:

 

slotPos = overSlotPos
 

Add in the end:

 

if overSlotPos in constInfo.NEWITEMS:
	self.wndItem.EnableCoverButton(slotPos)    
	constInfo.NEWITEMS.remove(overSlotPos)
 

Save It.

Finally go to ymirwork/ui and add this file:

This is the hidden content, please

Pack root and etc.

Have fun :)

 

This may not be the most optimized way to do this system, but at least you have a way. In the future i will post more updates such as a more optimized versions and with official effects.

If you find any bugs please post it.

#UPDATE

  Reveal hidden contents

 

I found a little bug that is if you move the item too quickly the item will count as new. Thats because normally if you do at normal speed you should be with your mouse over in item when it is attach to inventory so the code will remove it. But when you are at a faster sometimes you wont call mouse over in function.

Solution:

Goto uiinventory.py

Search for:

self.wndCostume = None
Add under:
self.movedSlot = -1
search for:
itemCount = getItemCount(slotNumber)
 add under:

if self.movedSlot in constInfo.NEWITEMS:
	 constInfo.NEWITEMS.remove(self.movedSlot)
 search for:
def __SendMoveItemPacket(self, srcSlotPos, dstSlotPos, srcItemCount):
 

add under:

self.movedSlot = dstSlotPos
 

 

 

 

Kind Regards,

Frozen

 

Hello, I have a problem when I change characters and enter, the other inventories skip all the accessories as new, any solution?

  • Love 1
Link to comment
Share on other sites

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.