Cand deschid tombola imi apare asta :
Cum pot sa scap de bugul de la tombola?
- ticu
-

- Mesaje: 120
- Membru din: 18 Aug 2014, 16:04
- Server: Global Metin2
- Regat: Jinno
- Aprecieri: 8
- Mulţumiri: 73
- Discord: Copiază ID
- Contact:
pune questul aici sa văd daca are erori in el
[ Mesaj scris via iPhone ]
[ Mesaj scris via iPhone ]

Cod: Selectaţi tot
quest tombola begin
state start begin
function tablica(vnum, pozycja, pozycja2)
local itemy = {
{
{ 25041 , 5 } ,
{ 71035 , 5 } ,
{ 7159 , 1 } ,
{ 38054 , 1 } ,
{ 27992 , 2 } ,
{ 27993 , 2 } ,
{ 27994 , 2 } ,
{ 27987 , 5 } ,
{ 72002 , 1 } ,
{ 38050 , 1 } ,
{ 80003 , 1 } ,
{ 71175 , 4 } ,
{ 71030 , 5 } ,
{ 72703 , 1 } ,
{ 72704 , 1 } ,
{ 50512 , 1 } ,
{ 50037 , 10 } ,
} ,
{
{ 25041 , 5 } ,
{ 71035 , 5 } ,
{ 7159 , 1 } ,
{ 38054 , 1 } ,
{ 27992 , 2 } ,
{ 27993 , 2 } ,
{ 27994 , 2 } ,
{ 27987 , 5 } ,
{ 72002 , 1 } ,
{ 38050 , 1 } ,
{ 80003 , 1 } ,
{ 71175 , 4 } ,
{ 71030 , 5 } ,
{ 72703 , 1 } ,
{ 72704 , 1 } ,
{ 50512 , 1 } ,
{ 50037 , 10 } ,
}
}
return itemy[vnum][pozycja][pozycja2]
end
when login begin
cmdchat("tombola "..q.getcurrentquestindex())
end
when 20092.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("Nu puteti juca, pentru cã nuu 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
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
end
end
endAcolo trebuia sa ai vre-o imagine ceva?
[ Mesaj scris via Android ]
[ Mesaj scris via Android ]

-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 82 vizitatori








