@Up
Nie będzie działać.
Dałeś end po :
if s == 2 then
Pod end'em musiało by być zamiast :
elseif s == 1 then
To :
if s == 1 then
Wniosek z tego taki usuń end przed :
elseif s == 1 then
Całość (reszty nie sprawdzałem) :
when 8027.kill begin
local count = pc.setqf("ilosc")+20
if count < 20 then
pc.getqf("ilosc", count)
if count == 20 then
Zmień na :
when 8027.kill begin
local count = pc.getqf("ilosc")+1
if count < 21 then
pc.setqf("ilosc", count)
if count == 20 then
Robisz błędy przy :
when letter begin
end
send_letter("Nazwa")
end
Powinno być :
when letter begin
send_letter("Nazwa")
end
O jedno end za dużo.
Ogólnie to dobrze napisane.
Mało osób zna tą funkcję.
Ale niech Ci będzie podam ci ją.
mob_spawn(ID, x, y, 0, 0, 0)
Słownik :
ID - Id mooba który ma się zrespić
X i Y - koordy na mapie
0 - Zostawiasz