icaroquin 4 Posted November 7, 2014 Share Posted November 7, 2014 (edited) The quest / quest tombola begin state start begin function tablica(vnum, pozycja, pozycja2) local itemy = { { {71001, 1}, {71084, 25}, {71085, 25}, {25040, 3}, {27992, 2}, {27993, 2}, {27994, 2}, {27987, 5}, {72002, 1}, {71027, 5}, {71028, 5}, {71029, 5}, {71030, 5}, {71036, 1}, {50008, 15}, {70021, 3}, {71001, 1}, }, { {25041, 1}, {71084, 25}, {71085, 25}, {25040, 3}, {27992, 2}, {27993, 2}, {27994, 2}, {27987, 5}, {72002, 1}, {71027, 5}, {71028, 5}, {71029, 5}, {71030, 5}, {71036, 1}, {50008, 15}, {70021, 3}, {25041, 1}, } } return itemy[vnum][pozycja][pozycja2] end when login begin cmdchat("tombola "..q.getcurrentquestindex()) end when 9005.chat."Open Tombola" with pc.is_gm() begin local losowo = number(1,2) local str = " " for i = 1,16 do if i == 16 then str = str..tombola.tablica(losowo, i, 1).."|"..tombola.tablica(losowo, i, 2) else str = str..tombola.tablica(losowo, i, 1).."|"..tombola.tablica(losowo, i, 2).."|" end end cmdchat("OnPrepare "..str) cmdchat("openTombola") setskin(NOWINDOW) end when info or button begin local losowo = number(1,2) local str = " " for i = 1,16 do if i == 16 then str = str..tombola.tablica(losowo, i, 1).."|"..tombola.tablica(losowo, i, 2) else str = str..tombola.tablica(losowo, i, 1).."|"..tombola.tablica(losowo, i, 2).."|" end end cmdchat("OnPrepare "..str) if pc.get_empty_inventory_count() < 3 then syschat("You do not have enough space in your inventory.") return end cmdchat("get_input_start") local czynnosc = input(cmdchat("get_input_value")) cmdchat("get_input_end") if czynnosc == "tombola|begin" then pc.setqf("slot", number(1, 16)) cmdchat("OnRun "..number(2,3)*16+pc.getqf("slot").."|5") elseif czynnosc == "tombola|end" then syschat("Congrats! acquired "..tombola.tablica(losowo, pc.getqf("slot")+1, 2).."x "..item_name(tombola.tablica(losowo, pc.getqf("slot")+1, 1)).." as a prize at Tombola!") pc.give_item2(tombola.tablica(losowo, pc.getqf("slot")+1, 1), tombola.tablica(losowo, pc.getqf("slot")+1, 2)) end end end end Problem: The wheel does not spin but open, does not receive item. No have syserr on client. Edited August 18, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
icaroquin 4 Posted November 8, 2014 Author Share Posted November 8, 2014 #BUMP Link to comment Share on other sites More sharing options...
Endymion 323 Posted November 8, 2014 Share Posted November 8, 2014 I wrote this quest and it was tested before pub. Show us client & serwer syserr. Link to comment Share on other sites More sharing options...
Casawir 18 Posted November 8, 2014 Share Posted November 8, 2014 I guess i havent applied getinput function 1 Link to comment Share on other sites More sharing options...
icaroquin 4 Posted November 9, 2014 Author Share Posted November 9, 2014 fix, thanks! Link to comment Share on other sites More sharing options...
Sober 37 Posted November 13, 2014 Share Posted November 13, 2014 where did you find it?? Link to comment Share on other sites More sharing options...
csmmrr05 0 Posted November 16, 2014 Share Posted November 16, 2014 You can post please? Link to comment Share on other sites More sharing options...
icaroquin 4 Posted November 18, 2014 Author Share Posted November 18, 2014 Later I'll post it here Link to comment Share on other sites More sharing options...
Endymion 323 Posted November 18, 2014 Share Posted November 18, 2014 where did you find it?? He found this on polish forum. Link to comment Share on other sites More sharing options...
brianman 1 Posted November 27, 2014 Share Posted November 27, 2014 Link please Link to comment Share on other sites More sharing options...
cocopops 1 Posted December 12, 2014 Share Posted December 12, 2014 Can someone give me a link for that? i dont understand how to implement it please Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now