- Mesaj
- 105
- Çözümler
- 4
- Beğeni
- 30
- Puan
- 699
- Ticaret Puanı
- 0
Lua (Quest):
quest efsanevisandik begin
state start begin
when 40005.use begin
local types = number(1,49)
if types == 26 then
local types = 27
end
if types == 42 then
local types = 43
end
if types == 40 then
local types = 41
end
if types == 46 or types == 47 then
local types = 48
end
if types == 1 then
local oran =
{
[0] = {500},
[1] = {1000},
[2] = {1500},
[3] = {2000},
}
local oransayi = number(0,3)
local atilacak = oran [oransayi][1]
pc.give_item2_select ( 71152 )
item.set_socket(0,1)
item.set_socket(1,atilacak)
end
if types == 2 then
local oran =
{
[0] = {500},
[1] = {1000},
[2] = {1500},
[3] = {2000},
}
local oransayi = number(0,3)
local atilacak = oran [oransayi][1]
pc.give_item2_select ( 71152 )
item.set_socket(0,2)
item.set_socket(1,atilacak)
end
if types == 3 then
local oran =
{
[0] = {6},
[1] = {6},
[2] = {9},
[3] = {12},
}
local oransayi = number(0,3)
local atilacak = oran [oransayi][1]
pc.give_item2_select ( 71152 )
item.set_socket(0,3)
item.set_socket(1,atilacak)
end
if types == 4 then
local oran =
{
[0] = {6},
[1] = {6},
[2] = {9},
[3] = {12},
}
local oransayi = number(0,3)
local atilacak = oran [oransayi][1]
pc.give_item2_select ( 71152 )
item.set_socket(0,4)
item.set_socket(1,atilacak)
end
if types == 5 then
local oran =
{
[0] = {6},
[1] = {6},
[2] = {9},
[3] = {12},
}
local oransayi = number(0,3)
local atilacak = oran [oransayi][1]
pc.give_item2_select ( 71152 )
item.set_socket(0,5)
item.set_socket(1,atilacak)
end
if types == 6 then
local oran =
{
[0] = {6},
[1] = {6},
[2] = {9},
[3] = {12},
}
local oransayi = number(0,3)
local atilacak = oran [oransayi][1]
pc.give_item2_select ( 71152 )
item.set_socket(0,6)
item.set_socket(1,atilacak)
end
if types == 7 then
local oran =
{
[0] = {5},
[1] = {5},
[2] = {8},
[3] = {8},
}
local oransayi = number(0,3)
local atilacak = oran [oransayi][1]
pc.give_item2_select ( 71152 )
item.set_socket(0,types)
item.set_socket(1,atilacak)
end
if types == 8 then
local oran =
{
[0] = {15},
[1] = {15},
[2] = {20},
[3] = {20},
}
local oransayi = number(0,3)
local atilacak = oran [oransayi][1]
pc.give_item2_select ( 71152 )
item.set_socket(0,types)
item.set_socket(1,atilacak)
end
if types == 9 then
local oran =
{
[0] = {15},
[1] = {15},
[2] = {20},
[3] = {20},
}
local oransayi = number(0,3)
local atilacak = oran [oransayi][1]
pc.give_item2_select ( 71152 )
item.set_socket(0,types)
item.set_socket(1,atilacak)
end
if types == 10 or types == 11 then
local oran =
{
[0] = {15},
[1] = {15},
[2] = {30},
[3] = {30},
}
local oransayi = number(0,3)
local atilacak = oran [oransayi][1]
pc.give_item2_select ( 71152 )
item.set_socket(0,types)
item.set_socket(1,atilacak)
end
if types == 12 then
local oran =
{
[0] = {5},
[1] = {5},
[2] = {8},
[3] = {8},
}
local oransayi = number(0,3)
local atilacak = oran [oransayi][1]
pc.give_item2_select ( 71152 )
item.set_socket(0,types)
item.set_socket(1,atilacak)
end
if types == 13 then
local oran =
{
[0] = {5},
[1] = {5},
[2] = {8},
[3] = {8},
}
local oransayi = number(0,3)
local atilacak = oran [oransayi][1]
pc.give_item2_select ( 71152 )
item.set_socket(0,types)
item.set_socket(1,atilacak)
end
if types == 14 then
local oran =
{
[0] = {5},
[1] = {5},
[2] = {8},
[3] = {8},
}
local oransayi = number(0,3)
local atilacak = oran [oransayi][1]
pc.give_item2_select ( 71152 )
item.set_socket(0,types)
item.set_socket(1,atilacak)
end
if types == 15 then
local oran =
{
[0] = {5},
[1] = {8},
[2] = {10},
[3] = {10},
}
local oransayi = number(0,3)
local atilacak = oran [oransayi][1]
pc.give_item2_select ( 71152 )
item.set_socket(0,types)
item.set_socket(1,atilacak)
end
if types == 16 then
local oran =
{
[0] = {5},
[1] = {8},
[2] = {10},
[3] = {10},
}
local oransayi = number(0,3)
local atilacak = oran [oransayi][1]
pc.give_item2_select ( 71152 )
item.set_socket(0,types)
item.set_socket(1,atilacak)
end
if types == 17 then
local oran =
{
[0] = {5},
[1] = {8},
[2] = {10},
[3] = {10},
}
local oransayi = number(0,3)
local atilacak = oran [oransayi][1]
pc.give_item2_select ( 71152 )
item.set_socket(0,types)
item.set_socket(1,atilacak)
end
if types >= 18 and types <= 22 then
local oran =
{
[0] = {15},
[1] = {15},
[2] = {20},
[3] = {20},
}
local oransayi = number(0,3)
local atilacak = oran [oransayi][1]
pc.give_item2_select ( 71152 )
item.set_socket(0,types)
item.set_socket(1,atilacak)
end
if types == 23 then
local oran =
{
[0] = {8},
[1] = {8},
[2] = {10},
[3] = {10},
}
local oransayi = number(0,3)
local atilacak = oran [oransayi][1]
pc.give_item2_select ( 71152 )
item.set_socket(0,types)
item.set_socket(1,atilacak)
end
if types == 24 then
local oran =
{
[0] = {8},
[1] = {8},
[2] = {10},
[3] = {10},
}
local oransayi = number(0,3)
local atilacak = oran [oransayi][1]
pc.give_item2_select ( 71152 )
item.set_socket(0,types)
item.set_socket(1,atilacak)
end
if types == 25 then
local oran =
{
[0] = {8},
[1] = {8},
[2] = {10},
[3] = {10},
}
local oransayi = number(0,3)
local atilacak = oran [oransayi][1]
pc.give_item2_select ( 71152 )
item.set_socket(0,types)
item.set_socket(1,atilacak)
end
if types == 27 then
local oran =
{
[0] = {10},
[1] = {10},
[2] = {15},
[3] = {15},
}
local oransayi = number(0,3)
local atilacak = oran [oransayi][1]
pc.give_item2_select ( 71152 )
item.set_socket(0,types)
item.set_socket(1,atilacak)
end
if types == 28 then
local oran =
{
[0] = {10},
[1] = {10},
[2] = {15},
[3] = {15},
}
local oransayi = number(0,3)
local atilacak = oran [oransayi][1]
pc.give_item2_select ( 71152 )
item.set_socket(0,types)
item.set_socket(1,atilacak)
end
if types >= 29 and types <= 39 then
local oran =
{
[0] = {10},
[1] = {10},
[2] = {15},
[3] = {15},
}
local oransayi = number(0,3)
local atilacak = oran [oransayi][1]
pc.give_item2_select ( 71152 )
item.set_socket(0,types)
item.set_socket(1,atilacak)
end
if types == 41 then
local oran =
{
[0] = {5},
[1] = {5},
[2] = {10},
[3] = {10},
}
local oransayi = number(0,3)
local atilacak = oran [oransayi][1]
pc.give_item2_select ( 71152 )
item.set_socket(0,types)
item.set_socket(1,atilacak)
end
if types == 43 then
local oran =
{
[0] = {15},
[1] = {15},
[2] = {20},
[3] = {20},
}
local oransayi = number(0,3)
local atilacak = oran [oransayi][1]
pc.give_item2_select ( 71152 )
item.set_socket(0,types)
item.set_socket(1,atilacak)
end
if types == 44 or types == 45 then
local oran =
{
[0] = {10},
[1] = {10},
[2] = {15},
[3] = {15},
}
local oransayi = number(0,3)
local atilacak = oran [oransayi][1]
pc.give_item2_select ( 71152 )
item.set_socket(0,types)
item.set_socket(1,atilacak)
end
if types == 48 or types == 49 then
local oran =
{
[0] = {1},
[1] = {1},
[2] = {1},
[3] = {1},
}
local oransayi = number(0,3)
local atilacak = oran [oransayi][1]
pc.give_item2_select ( 71152 )
item.set_socket(0,types)
item.set_socket(1,atilacak)
end
pc.remove_item(40005,1)
end
end
end
evet admın baya bı ugrastım fakat cozemedım sımdı burdakı cogu kod calısıyor fakat bırtek 48-49 olan kod yanı sersemlık ve yavaslatma olan normal gelıyor ayarladıgım ıteme atınca boyle yazıyor

ben bu kodlarlar baska bı quest olusturdum ve baska bı sandıgıda ıtem protodan ıtem_queste donusturdum.
sonra bu sayfadan 2 tanesını alıp ortalama ve becerı yaptım oda oldu fakat aynı hatayı aldım sılaha atmadı neler denedım neler olmadı sebebı nedır

