Arkadaşlar Merhaba,
Materyal karşılığında seçme hakkı sunularak istenilen itemi alma konusunda sorun yaşıyorum. Öncelikle itemi seçtiğim halde Quest komutu ile NPC de bulunan tüm itemi vermektedir. Random komutunu kullandığımda ise hiçbir itemi alamamaktayım. Desteklerinizi rica ediyorum.
Görüntüler
Lua
if(EVENT == 1003) then
STAMP = HowmuchItem(UID, 508213000)
CUBE = HowmuchItem(UID, 508211000)
GOLDP = HowmuchItem(UID, 508212000)
if(STAMP > 29 and CUBE > 0 and GOLDP > 0) then
SelectMsg(UID, 5, 808, 9492, NPC,3000,1005,3005,-1)
else
SelectMsg(UID, 2, -1, 9492, NPC, 10,-1);
end
end
if(EVENT == 1004) then
STAMP = HowmuchItem(UID, 508213000)
CUBE = HowmuchItem(UID, 508211000)
GOLDP = HowmuchItem(UID, 508212000)
if(STAMP > 29 and CUBE > 0 and GOLDP > 0) then
SelectMsg(UID, 5, 809, 9492, NPC,3000,1006,3005,-1)
else
SelectMsg(UID, 2, -1, 9492, NPC, 29,-1);
end
end
if(EVENT == 1005) then
RobItem(UID, 508213000, 30);
RobItem(UID, 508211000, 1);
RobItem(UID, 508212000, 1);
RunQuestExchange(UID,1221);
end
if(EVENT == 1006) then
RobItem(UID, 508213000, 30);
RobItem(UID, 508211000, 1);
RobItem(UID, 508212000, 1);
RunQuestExchange(UID,1222);
end