Jest jakaś funkcja, która sprawdza czy jest na jakiejś kratce jakiś item w ilości większej niż ileś?
Analogiczna funkcja do getPlayerItemCount, tylko, żeby sprawdzała z tile, potrzebne mi to jest do ostatniej części questu helmet of the ancients..
narazie zrobiłem
A wolałbym zrobić jak na rl tibii ;/
Analogiczna funkcja do getPlayerItemCount, tylko, żeby sprawdzała z tile, potrzebne mi to jest do ostatniej części questu helmet of the ancients..
narazie zrobiłem
Code:
if getPlayerItemCount(cid, helmet_1) >= 1 and getPlayerItemCount(cid, helmet_2) >= 1 and getPlayerItemCount(cid, helmet_3) >= 1 and
getPlayerItemCount(cid, helmet_4) >= 1 and getPlayerItemCount(cid, helmet_5) >= 1 and getPlayerItemCount(cid, helmet_6) >= 1 and
getPlayerItemCount(cid, helmet_7) >= 1 then
doPlayerRemoveItem(cid, helmet_1, 1)
doPlayerRemoveItem(cid, helmet_2, 1)
doPlayerRemoveItem(cid, helmet_3, 1)
doPlayerRemoveItem(cid, helmet_4, 1)
doPlayerRemoveItem(cid, helmet_5, 1)
doPlayerRemoveItem(cid, helmet_6, 1)
doPlayerRemoveItem(cid, helmet_7, 1)
doPlayerAddItem(cid, helmet_of_the_ancients, 1)
doSendMagicEffect(v.TP_GOOD, v.efekt)
end
A wolałbym zrobić jak na rl tibii ;/