Rank: Administrator Browser : Y!M : alexu_ptm Mesaje : 189 Experienta : 363 Data de inscriere : 31/01/2011 Varsta : 39 Localizare : Bucharest Stare de spirit : Be Happy Bara Warn :
| Subiect: [IN PREMIERA]Daily Present [QUEST] Sam Mar 23, 2013 12:42 am |
|
| Buna seara, 4Metin. Am pregatit pentru voi un super - mega quest. Acest quest monitorizeaza daca un caracter se logheaza cel putin 1 data pe zi, iar daca o face primeste un anumit item selectat de tine. Este structurat pe 6 stagii. Fiecare stagiu are 7 zile de conectare la rand, iar pentru fiecare stagiu se alege ce sa se dea pentru prima zi, a doua zi ... s.a.m.d . Deci daca te conectezi azi pentru prima-data primesti ceva, maine iar primesti ceva, poi-maine daca nu te conectezi iar incepi de la inceputul stagiului. Sper ca aveti cap si intelegeti acest quest: - Cod:
-
[url=http://4metin.ro/#][/url]quest daily_present begin state start begin when login begin local TODAY = tonumber(os.date("%d")) local MONTH = tonumber(os.date("%m")) local MY_PACK = pc.getqf("saved_day") local SAFTY = pc.getqf("saved_login") local SAFTY_MONTH = pc.getqf("saved_month") local REST = TODAY - MY_PACK local STAGEONE = {50035, 50036, 50031, 50025, 50024, 50031, 50032} local STAGETWO = {50035, 50036, 50031, 50025, 50024, 50031, 50032} local STAGETHREE = {50035, 50036, 50031, 50025, 50024, 50031, 50032} local STAGEFOUR = {50035, 50036, 50031, 50025, 50024, 50031, 50032} local STAGEFIVE = {50035, 50036, 50031, 50025, 50024, 50031, 50032} local STAGESIX = {50035, 50036, 50031, 50025, 50024, 50031, 50032} local ITEMS if REST == 1 then pc.setqf("saved_day", TODAY) pc.setqf("saved_month", MONTH) pc.setqf("saved_login", pc.getqf("saved_login")+1) chat("Te-ai conectat de "..pc.getqf("saved_login").." zile la rand.") chat("Acesta este un lucru bun! Echipa iti ureaza succes & noroc !") if SAFTY < 11 then ITEMS = STAGEONE[number(1, table.getn(STAGEONE))] elseif SAFTY > 10 and SAFTY < 21 then ITEMS = STAGETWO[number(1, table.getn(STAGETWO))] elseif SAFTY > 20 and SAFTY < 31 then ITEMS = STAGETHREE[number(1, table.getn(STAGETHREE))] elseif SAFTY > 30 and SAFTY < 41 then ITEMS = STAGEFOUR[number(1, table.getn(STAGEFOUR))] elseif SAFTY > 40 and SAFTY < 51 then ITEMS = STAGEFIVE[number(1, table.getn(STAGEFIVE))] elseif SAFTY > 50 then ITEMS = STAGESIX[number(1, table.getn(STAGESIX))] pc.give_item2(ITEMS, 1) end chat(""..item_name(ITEMS).."!") end if MONTH != SAFTY_MONTH then if pc.getqf("first") == 0 then pc.setqf("first", 1) pc.setqf("saved_day", TODAY) pc.setqf("saved_month", MONTH) pc.setqf("saved_login", 1) chat("Te-ai conectat de "..pc.getqf("saved_login").." zile la rand.") chat("Acesta este un lucru bun! Echipa iti ureaza succes & noroc !") ITEMS = STAGEONE[number(1, table.getn(STAGEONE))] chat(""..item_name(ITEMS).."") else if TODAY == 1 then pc.setqf("saved_day", TODAY) pc.setqf("saved_month", MONTH) pc.setqf("saved_login", pc.getqf("saved_login")+1) chat("Te-ai conectat de "..pc.getqf("saved_login").." zile la rand.") chat("Acesta este un lucru bun! Echipa iti ureaza succes & noroc !") if SAFTY < 11 then ITEMS = STAGEONE[number(1, table.getn(STAGEONE))] elseif SAFTY > 10 and SAFTY < 21 then ITEMS = STAGETWO[number(1, table.getn(STAGETWO))] elseif SAFTY > 20 and SAFTY < 31 then ITEMS = STAGETHREE[number(1, table.getn(STAGETHREE))] elseif SAFTY > 30 and SAFTY < 41 then ITEMS = STAGEFOUR[number(1, table.getn(STAGEFOUR))] elseif SAFTY > 40 and SAFTY < 51 then ITEMS = STAGEFIVE[number(1, table.getn(STAGEFIVE))] elseif SAFTY > 50 then ITEMS = STAGESIX[number(1, table.getn(STAGESIX))] pc.give_item2(ITEMS, 1) end chat(""..item_name(ITEMS).."") else pc.setqf("saved_day", TODAY) pc.setqf("saved_month", MONTH) pc.setqf("saved_login", 1) chat("Te-ai conectat de "..pc.getqf("saved_login").." zile la rand.") chat("Acesta este un lucru bun! Echipa iti ureaza succes & noroc !") ITEMS = STAGEONE[number(1, table.getn(STAGEONE))] chat(""..item_name(ITEMS).."!") end end end if REST > 1 then pc.setqf("saved_day", TODAY) pc.setqf("saved_month", MONTH) pc.setqf("saved_login", 1) chat("Te-ai conectat de "..pc.getqf("saved_login").." zile la rand.") chat("Acesta este un lucru bun! Echipa iti ureaza succes & noroc !") ITEMS = STAGEONE[number(1, table.getn(STAGEONE))] chat(""..item_name(ITEMS).."!") end end end end Pareri? Primesc si eu un multumesc? |
|