Diamanten dem Schmuck hinzufügen geht ohne Probleme und es wird alles richtig angezeigt... Spahire werden auch richtig im Inventar angezeigt, nur wenn ich den Saphir dem Schmuck hinzufüge verschwindet der Saphir, der Schmuck erhält die zusätzlichen Bonis nur der Saphir verschwindet halt:
[Only registered and activated users can see links. Click Here To Register...]
Bei der anderen Kette wird das dann so angezeigt :
[Only registered and activated users can see links. Click Here To Register...]
das is meine constinfo.py
[Only registered and activated users can see links. Click Here To Register...]
Bei der anderen Kette wird das dann so angezeigt :
[Only registered and activated users can see links. Click Here To Register...]
PHP Code:
import item
ACCESSORY_MATERIAL_LIST = [50623, 50624, 50625, 50626, 50627, 50628, 50629, 50630, 50631, 50632, 50633]
#ACCESSORY_MATERIAL_LIST = [50623, 50623, 50624, 50624, 50625, 50625, 50626, 50627, 50628, 50629, 50630, 50631, 50632, 50633,
# 50623, 50623, 50624, 50624, ]
def GET_ACCESSORY_MATERIAL_VNUM(vnum, subType):
ret = vnum
if vnum >= 16210 and vnum <= 16219:
return 50625
####Granaterz
if vnum >= 14410 and vnum <= 14419:
return 50635
if vnum >= 16410 and vnum <= 16419:
return 50635
if vnum >= 17410 and vnum <= 17419:
return 50635
####Rubinerz
if vnum >= 14430 and vnum <= 14439:
return 50636
if vnum >= 16430 and vnum <= 16439:
return 50636
if vnum >= 17430 and vnum <= 17439:
return 50636
####Saphirerz
if vnum >= 14450 and vnum <= 14459:
return 50637
if vnum >= 16450 and vnum <= 16459:
return 50637
if vnum >= 17450 and vnum <= 17459:
return 50637
####Onixerz
if vnum >= 14470 and vnum <= 14479:
return 50638
if vnum >= 16470 and vnum <= 16479:
return 50638
if vnum >= 17470 and vnum <= 17479:
return 50638
####Opalxerz
if vnum >= 14490 and vnum <= 14499:
return 50639
if vnum >= 16490 and vnum <= 16499:
return 50639
if vnum >= 17490 and vnum <= 17499:
return 50639
if item.ARMOR_WRIST == subType:
WRIST_ITEM_VNUM_BASE = 14000
ret -= WRIST_ITEM_VNUM_BASE
elif item.ARMOR_NECK == subType:
NECK_ITEM_VNUM_BASE = 16000
ret -= NECK_ITEM_VNUM_BASE
elif item.ARMOR_EAR == subType:
EAR_ITEM_VNUM_BASE = 17000
ret -= EAR_ITEM_VNUM_BASE
type = ret/20
if type<0 or type>=len(ACCESSORY_MATERIAL_LIST):
type = (ret-170) / 20
if type<0 or type>=len(ACCESSORY_MATERIAL_LIST):
return 0
return ACCESSORY_MATERIAL_LIST[type]