Jump to content
Araştır
  • Diğer seçenekler ...
Sonuçları bul ...
Sonuçları bul ...
donz05

yine quest sorunu :)

Önerilen Mesajlar

if EVENT == 100 then
SelectMsg(UID, 3, -1, 6038, NPC, 17256, 150,17257,152);
end


local ITEMA = 0;


if (EVENT == 150) then
SLOTKONTROL = CheckGiveSlot(UID, 2)
if SLOTKONTROL == false then
SelectMsg(UID, 3, -1, 50529, NPC, 17229,151);
else
SelectMsg(UID, 3, -1, 6038, NPC, 17256, 153,17257,152);
end
end


if EVENT == 153 then
ITEMA = HowmuchItem(UID, 910453000);
if ITEMA >= 1 then
RobItem(UID, 910453000, 1)
GiveItem(UID, 508051467, 1,3)
GiveItem(UID, 508053467, 1,3)
else
SelectMsg(UID, 3, -1, 50545, NPC, 17229,151);
end
end

hem slot hemde item varlık kontrolü yaptırmak istiyorum bunu daha basite indirgeme şansım varmı?
bu şekilde yaptığım zaman 2 kere aynı menü açılmasına sebep oluyor
mesela slot kontrolu yaptıktan sonra hiçbir menü çıkarmadan nasıl 153 eventine gönderebilirim?
örnek
else
SelectMsg(UID, 3, -1, 6038, NPC, 17256, 153,17257,152);
bu satırda yapmak istediğim direk 153 gitmesi menü yada yazı çıkarmadan...

İletiyi paylaş


Link to post
Sitelerde Paylaş

if EVENT == 100 then
SelectMsg(UID, 3, -1, 6038, NPC, 17256, 150,17257,152);
end


local ITEMA = 0;


if (EVENT == 150) then
SLOTKONTROL = CheckGiveSlot(UID, 2)
if SLOTKONTROL == false then
ITEMA = HowmuchItem(UID, 910453000);
if ITEMA >= 1 then
RobItem(UID, 910453000, 1)
GiveItem(UID, 508051467, 1,3)
GiveItem(UID, 508053467, 1,3)
else
SelectMsg(UID, 3, -1, 50545, NPC, 17229,151);
end
end

böyle dene bir bakalım..

İletiyi paylaş


Link to post
Sitelerde Paylaş
Alıntı
if EVENT == 100 then
SelectMsg(UID, 3, -1, 6038, NPC, 17256, 150,17257,152);
end


local ITEMA = 0;


if (EVENT == 150) then
SLOTKONTROL = CheckGiveSlot(UID, 2)
if SLOTKONTROL == false then
ITEMA = HowmuchItem(UID, 910453000);
if ITEMA >= 1 then
RobItem(UID, 910453000, 1)
GiveItem(UID, 508051467, 1,3)
GiveItem(UID, 508053467, 1,3)
else
SelectMsg(UID, 3, -1, 50545, NPC, 17229,151);
end
end

böyle dene bir bakalım..


3 if 1 else döngüsü oluyor kabul etmiyor yinede teşekkürler hacı...

İletiyi paylaş


Link to post
Sitelerde Paylaş

×
×
  • Yeni Oluştur...