Accesorii rubin,safir etc
Păi modifică din navicat să meargă puse . Totuşi de ce nu ar merge .. Dar dacă il faci pvm eu zic să le laşi aşa că pe urmă este prea mult anti war contra war.. Dacă nu şti să pui in navicat imi şi item_proto imi zici
Trebuie intrat in root - costinfo.py şi acolo te duci la :
.
Dar eu nu am server să pot vedea care sunt codurile şi cum .. Aşteaptă de la colegii mei sau poate rezolvi până atunci.
Cod: Selectaţi tot
mport item
ACCESSORY_MATERIAL_LIST = [50623, 50624, 50625, 50626, 50627, 50628, 50629, 50630, 50631, 50632, 50633, 50634]
#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
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]
## ÀÚµ¿¹°¾à (HP: #72723 ~ #72726, SP: #72727 ~ #72730)
# ÇØ´ç vnumÀÌ ÀÚµ¿¹°¾àÀΰ¡?
def IS_AUTO_POTION(itemVnum):
return IS_AUTO_POTION_HP(itemVnum) or IS_AUTO_POTION_SP(itemVnum)
# ÇØ´ç vnumÀÌ HP ÀÚµ¿¹°¾àÀΰ¡?
def IS_AUTO_POTION_HP(itemVnum):
if 72723 <= itemVnum and 72726 >= itemVnum:
return 1
elif itemVnum >= 76021 and itemVnum <= 76022: ## »õ·Î µé¾î°£ ¼±¹°¿ë È·æÀÇ Ãູ
return 1
return 0
# ÇØ´ç vnumÀÌ SP ÀÚµ¿¹°¾àÀΰ¡?
def IS_AUTO_POTION_SP(itemVnum):
if 72727 <= itemVnum and 72730 >= itemVnum:
return 1
elif itemVnum >= 76004 and itemVnum <= 76005: ## »õ·Î µé¾î°£ ¼±¹°¿ë ¼ö·æÀÇ Ãູ
return 1
return 0Dar eu nu am server să pot vedea care sunt codurile şi cum .. Aşteaptă de la colegii mei sau poate rezolvi până atunci.
Pff le am acolo , dar chestia asta e doar pentru atunci cand pui finisaj pe item respectiv sa se faca fundalul ala galben .....Ibrahimović scrie:Trebuie intrat in root - costinfo.py şi acolo te duci la :.Cod: Selectaţi tot
mport item ACCESSORY_MATERIAL_LIST = [50623, 50624, 50625, 50626, 50627, 50628, 50629, 50630, 50631, 50632, 50633, 50634] #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 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] ## ÀÚµ¿¹°¾à (HP: #72723 ~ #72726, SP: #72727 ~ #72730) # ÇØ´ç vnumÀÌ ÀÚµ¿¹°¾àÀΰ¡? def IS_AUTO_POTION(itemVnum): return IS_AUTO_POTION_HP(itemVnum) or IS_AUTO_POTION_SP(itemVnum) # ÇØ´ç vnumÀÌ HP ÀÚµ¿¹°¾àÀΰ¡? def IS_AUTO_POTION_HP(itemVnum): if 72723 <= itemVnum and 72726 >= itemVnum: return 1 elif itemVnum >= 76021 and itemVnum <= 76022: ## »õ·Î µé¾î°£ ¼±¹°¿ë È·æÀÇ Ãູ return 1 return 0 # ÇØ´ç vnumÀÌ SP ÀÚµ¿¹°¾àÀΰ¡? def IS_AUTO_POTION_SP(itemVnum): if 72727 <= itemVnum and 72730 >= itemVnum: return 1 elif itemVnum >= 76004 and itemVnum <= 76005: ## »õ·Î µé¾î°£ ¼±¹°¿ë ¼ö·æÀÇ Ãູ return 1 return 0
Dar eu nu am server să pot vedea care sunt codurile şi cum .. Aşteaptă de la colegii mei sau poate rezolvi până atunci.
-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 55 vizitatori

