donz05 30 #1 Oluşturuldu: Ağustos 26, 2018 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... Mesajı raporla İletiyi paylaş Link to post Sitelerde Paylaş
we1982 26 #2 Ağustos 26, 2018 tarihinde gönderildi if EVENT == 100 thenSelectMsg(UID, 3, -1, 6038, NPC, 17256, 150,17257,152);endlocal ITEMA = 0;if (EVENT == 150) thenSLOTKONTROL = CheckGiveSlot(UID, 2)if SLOTKONTROL == false thenITEMA = HowmuchItem(UID, 910453000);if ITEMA >= 1 thenRobItem(UID, 910453000, 1)GiveItem(UID, 508051467, 1,3)GiveItem(UID, 508053467, 1,3)else SelectMsg(UID, 3, -1, 50545, NPC, 17229,151);end endböyle dene bir bakalım.. Mesajı raporla İletiyi paylaş Link to post Sitelerde Paylaş
donz05 30 #3 Konu Sahibi Ağustos 27, 2018 tarihinde gönderildi 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ı... Mesajı raporla İletiyi paylaş Link to post Sitelerde Paylaş