(01:06:51) DrLecter: >>> EnhanceList={
(01:06:52) DrLecter: 5608:["weapon_carnium_bow_i01", ["Light", 288, 5575, 109000]], 5609:["weapon_carnium_bow_i01", ["Critical Bleed", 288, 5575, 109000]], 5610:["weapon_carnium_bow_i01", ["Mana Up", 288, 5575, 109000]], }
(01:06:52) DrLecter: >>> Icon,Enhancements=EnhanceList[5608]
(01:06:52) DrLecter: >>> Icon
(01:06:52) DrLecter: 'weapon_carnium_bow_i01'
(01:06:52) DrLecter: >>> Enhancements
(01:06:54) DrLecter: ['Light', 288, 5575, 109000]
(01:06:56) DrLecter: >>> N,W,M,C=Enhancements
(01:06:58) DrLecter: >>> N
(01:07:00) DrLecter: 'Light'
(01:07:02) DrLecter: >>> W
(01:07:05) DrLecter: 288
(01:07:06) DrLecter: >>> M
(01:07:09) DrLecter: 5575
(01:07:10) DrLecter: >>> C
(01:07:12) DrLecter: 109000
(01:07:14) DrLecter: >>>
01:08
(01:09:29) NewAge: uhmmm
(01:09:42) DrLecter: looks fine DUT?
(01:09:52) NewAge: lol
(01:10:11) DrLecter: first line is the same dict u used
(01:10:15) NewAge: yep
(01:10:49) DrLecter: second one is the one introduced within the iteration over chars inventoy, if itemid is in the dict and not equipped
(01:11:22) NewAge: yep
(01:11:49) DrLecter: i printed vars to check and yes, they contain what we expect them to
(01:12:02) DrLecter: iconname and a list
(01:12:30) DrLecter: then comes the line i suggested in place of your former 'for' statement
(01:12:50) NewAge: and the quest refuses to load with that
(01:14:32) DrLecter: and you deintented htmltext += blaj
(01:14:40) DrLecter: ah
(01:15:06) NewAge: aaa whats 'deinteted" lol
(01:17:08) DrLecter: hum, i see you hvae another unpacks there.. lemme give it a read
(01:19:22) DrLecter: hum.. i think my approach is giving you some problems with the further Enhancements[EnhancID] stuff
(01:20:00) NewAge: then ..
(01:21:55) DrLecter: in 1007, you have an original nonenhanced weapon that could be enhanced on 3 different ones, thats why he used nonenhanceID[blah,[1st enhance],[2nd],[and 3rd]]
(01:22:27) DrLecter: later he moved over that list, rendering every possible enhance for a given nonenhanced item
(01:22:54) DrLecter: in your case, you have 3 different enhanced weapons that could turn into a single nonenhanced
(01:23:04) NewAge: yes
(01:23:15) DrLecter: so my oppinnion is that the dictionary needs some further redefinition
(01:24:08) NewAge: thats what i tried to do
# Creates a List to choose a weapon
if event == "1":
htmltext = ""
EnhancID = 0
for Item in st.getPlayer().getInventory().getItems():
if Item.getItemId() in EnhanceList and not Item.isEquipped():
Icon, Enhancements = EnhanceList[Item.getItemId()]
Name, WeaponID, MaterialID, MaterialQuant = Enhancements
htmltext += "<tr>\n<td width=35><img src=\"icon." + Icon + "\" width=32 height=32 align=\"left\"></td>\n" \
"<td width=835><table border=0 width=\"835\">\n<tr><td><a action=\"bypass -h Quest 1010_remove_mammon 2_" + str(Item.getObjectId()) + "." + str(EnhancID) + "\">" + getItemName(Item) + ": " + Name + "</a></td></tr>\n" \
"<tr><td><font color=\"B09878\">Remove Enhancement</font></td></tr></table></td>\n</tr>"
EnhancID += 1
if htmltext == "":
htmltext = "<tr><td>You have no weapons with special abilities in your inventory</td></tr>"
htmltext = "<html><body>\nList:\n<left>\n<table width=870 border=0>\n" + htmltext + "</table>\n<br></left></body></html>"
return htmltext