problema quest tombola

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
[ST]SSH
Membru Club

Membru Club
Mesaje: 1704
Membru din: 12 Apr 2016, 23:54
Server: Fost Eluria2
Regat: Jinno
Aprecieri: 132  
Mulţumiri: 245  
 Contact:
Medalii

Salut,quest-ul de la tombola cred ca e spart :)) pe alte caractere imi arata fereastra la npc sa deschid tombola,pe cand la mai multi jucatori nu le arata fereastra,dar la unii da,cu acelasi client! Quest-ul mai jos:
quest tombola begin
    state start begin
        function tablica(vnum, pozycja, pozycja2)
            local itemy = {
                            {
                                {71123, 2},
                                {71129, 2},
                                {71122, 3},
                                {50011, 200},
                                {27992, 20},
                                {39001, 1},
                                {71155, 1},
                                {85000, 200},
                                {80006, 1},
                                {27993, 20},
                                {100500, 5},
                                {51001, 200},
                                {27994, 20},
                                {50513, 10},
                                {80005, 2},
                                {38057, 1},
                                {71123, 2},
                            },
                            {
                                {71123, 2},
                                {71129, 2},
                                {71122, 3},
                                {50011, 200},
                                {27992, 20},
                                {39001, 1},
                                {71155, 1},
                                {85000, 200},
                                {80006, 1},
                                {27993, 20},
                                {100500, 5},
                                {51001, 200},
                                {27994, 20},
                                {50513, 10},
                                {80005, 2},
                                {38057, 1},
                                {71123, 2},
                            }
                        }
                return itemy[vnum][pozycja][pozycja2]
            end
            
        
        
        when login begin
            cmdchat("tombola "..q.getcurrentquestindex())
        end
    
        when 9010.chat."Open Tombola" 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)
		if pc.count_item(71122) >= 1 then
            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("Nu puteti juca, pentru cã nu aveti suficient spatiu în inventar.")
                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
				pc.remove_item(71122, 1)
                syschat("Felicitãri! Ai primit"..tombola.tablica(losowo, pc.getqf("slot")+1, 2).."x "..item_name(tombola.tablica(losowo, pc.getqf("slot")+1, 1)).." ca o recompensã în Tombola!")
                pc.give_item2(tombola.tablica(losowo, pc.getqf("slot")+1, 1), tombola.tablica(losowo, pc.getqf("slot")+1, 2))
            end
		else
			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("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
			say("Nu vei primi nimic pentru ca nu ai nici un inel de aur!")
			say("Daca ai fi avut unul ai fi primit:")
			say(""..tombola.tablica(losowo, pc.getqf("slot")+1, 2).."x "..item_name(tombola.tablica(losowo, pc.getqf("slot")+1, 1)).."")
			end
		end
	end
	end 
end
Avatar utilizator
[Tupeu]
Membru de Elita

Membru de Elita
Mesaje: 4101
Membru din: 28 Oct 2015, 16:16
Aprecieri: 35  
Mulţumiri: 2304  
 Contact:
Medalii

RocaEmanuel scrie:Salut,quest-ul de la tombola cred ca e spart :)) pe alte caractere imi arata fereastra la npc sa deschid tombola,pe cand la mai multi jucatori nu le arata fereastra,dar la unii da,cu acelasi client! Quest-ul mai jos:
quest tombola begin
    state start begin
        function tablica(vnum, pozycja, pozycja2)
            local itemy = {
                            {
                                {71123, 2},
                                {71129, 2},
                                {71122, 3},
                                {50011, 200},
                                {27992, 20},
                                {39001, 1},
                                {71155, 1},
                                {85000, 200},
                                {80006, 1},
                                {27993, 20},
                                {100500, 5},
                                {51001, 200},
                                {27994, 20},
                                {50513, 10},
                                {80005, 2},
                                {38057, 1},
                                {71123, 2},
                            },
                            {
                                {71123, 2},
                                {71129, 2},
                                {71122, 3},
                                {50011, 200},
                                {27992, 20},
                                {39001, 1},
                                {71155, 1},
                                {85000, 200},
                                {80006, 1},
                                {27993, 20},
                                {100500, 5},
                                {51001, 200},
                                {27994, 20},
                                {50513, 10},
                                {80005, 2},
                                {38057, 1},
                                {71123, 2},
                            }
                        }
                return itemy[vnum][pozycja][pozycja2]
            end
            
        
        
        when login begin
            cmdchat("tombola "..q.getcurrentquestindex())
        end
    
        when 9010.chat."Open Tombola" 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)
		if pc.count_item(71122) >= 1 then
            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("Nu puteti juca, pentru cã nu aveti suficient spatiu în inventar.")
                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
				pc.remove_item(71122, 1)
                syschat("Felicitãri! Ai primit"..tombola.tablica(losowo, pc.getqf("slot")+1, 2).."x "..item_name(tombola.tablica(losowo, pc.getqf("slot")+1, 1)).." ca o recompensã în Tombola!")
                pc.give_item2(tombola.tablica(losowo, pc.getqf("slot")+1, 1), tombola.tablica(losowo, pc.getqf("slot")+1, 2))
            end
		else
			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("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
			say("Nu vei primi nimic pentru ca nu ai nici un inel de aur!")
			say("Daca ai fi avut unul ai fi primit:")
			say(""..tombola.tablica(losowo, pc.getqf("slot")+1, 2).."x "..item_name(tombola.tablica(losowo, pc.getqf("slot")+1, 1)).."")
			end
		end
	end
	end 
end
Daca tie iti deschide fereastra nu are problema quest-ul ci clientul. E acelasi client la toti? Nu cumva e modificat?
Sau pune syserr ce apare cand folosesti npc si nu se deschide fereastra.
Avatar utilizator
[ST]SSH
Membru Club

Membru Club
Mesaje: 1704
Membru din: 12 Apr 2016, 23:54
Server: Fost Eluria2
Regat: Jinno
Aprecieri: 132  
Mulţumiri: 245  
 Contact:
Medalii

In sysser nu apare nimic,eu am intrat tot pe acelasi cont/acelasi client pe alt caracter nu imi arata tombola,intru pe alt caracter imi arata tombola :))
Avatar utilizator
[ST]SSH
Membru Club

Membru Club
Mesaje: 1704
Membru din: 12 Apr 2016, 23:54
Server: Fost Eluria2
Regat: Jinno
Aprecieri: 132  
Mulţumiri: 245  
 Contact:
Medalii

qTupeu scrie:
RocaEmanuel scrie:Salut,quest-ul de la tombola cred ca e spart :)) pe alte caractere imi arata fereastra la npc sa deschid tombola,pe cand la mai multi jucatori nu le arata fereastra,dar la unii da,cu acelasi client! Quest-ul mai jos:
quest tombola begin
    state start begin
        function tablica(vnum, pozycja, pozycja2)
            local itemy = {
                            {
                                {71123, 2},
                                {71129, 2},
                                {71122, 3},
                                {50011, 200},
                                {27992, 20},
                                {39001, 1},
                                {71155, 1},
                                {85000, 200},
                                {80006, 1},
                                {27993, 20},
                                {100500, 5},
                                {51001, 200},
                                {27994, 20},
                                {50513, 10},
                                {80005, 2},
                                {38057, 1},
                                {71123, 2},
                            },
                            {
                                {71123, 2},
                                {71129, 2},
                                {71122, 3},
                                {50011, 200},
                                {27992, 20},
                                {39001, 1},
                                {71155, 1},
                                {85000, 200},
                                {80006, 1},
                                {27993, 20},
                                {100500, 5},
                                {51001, 200},
                                {27994, 20},
                                {50513, 10},
                                {80005, 2},
                                {38057, 1},
                                {71123, 2},
                            }
                        }
                return itemy[vnum][pozycja][pozycja2]
            end
            
        
        
        when login begin
            cmdchat("tombola "..q.getcurrentquestindex())
        end
    
        when 9010.chat."Open Tombola" 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)
		if pc.count_item(71122) >= 1 then
            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("Nu puteti juca, pentru cã nu aveti suficient spatiu în inventar.")
                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
				pc.remove_item(71122, 1)
                syschat("Felicitãri! Ai primit"..tombola.tablica(losowo, pc.getqf("slot")+1, 2).."x "..item_name(tombola.tablica(losowo, pc.getqf("slot")+1, 1)).." ca o recompensã în Tombola!")
                pc.give_item2(tombola.tablica(losowo, pc.getqf("slot")+1, 1), tombola.tablica(losowo, pc.getqf("slot")+1, 2))
            end
		else
			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("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
			say("Nu vei primi nimic pentru ca nu ai nici un inel de aur!")
			say("Daca ai fi avut unul ai fi primit:")
			say(""..tombola.tablica(losowo, pc.getqf("slot")+1, 2).."x "..item_name(tombola.tablica(losowo, pc.getqf("slot")+1, 1)).."")
			end
		end
	end
	end 
end
Daca tie iti deschide fereastra nu are problema quest-ul ci clientul. E acelasi client la toti? Nu cumva e modificat?
Sau pune syserr ce apare cand folosesti npc si nu se deschide fereastra.
Man,nu ca mi se deschide fereastra,ci nu imi arata la npc ''Open Tombola'',cum sa se deschida fereastra daca nu am pe ce apasa..
Pe unele charactere arata,pe unele nu :| e ciudat nu ?
Avatar utilizator
[ST]SSH
Membru Club

Membru Club
Mesaje: 1704
Membru din: 12 Apr 2016, 23:54
Server: Fost Eluria2
Regat: Jinno
Aprecieri: 132  
Mulţumiri: 245  
 Contact:
Medalii

Up,nevoie de ajutor ! Exemplu pe un caracter nu imi arata tombola,intru pe altu mi-l arata.. :-? solutii guys ?
Avatar utilizator
[Tupeu]
Membru de Elita

Membru de Elita
Mesaje: 4101
Membru din: 28 Oct 2015, 16:16
Aprecieri: 35  
Mulţumiri: 2304  
 Contact:
Medalii

Subiect inactiv. Arhivat !
Închis
Răspunsuri
1
Vizualizări
63
Răspunsuri
8
Vizualizări
594
Răspunsuri
13
Vizualizări
797
Răspunsuri
8
Vizualizări
487

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Bing [Bot] și 30 vizitatori