Code:
if a == 2 then
end
elseif a == 1 then
elseif number( 1 , 100 ) >= 80 then
pc.changegold(10000)
chat("Hai trovato nel Forziere 10.000 Yang")
end
make:
Code:
if a == 2 then
-- exit if you want to leave here
elseif a == 1 then
--never used?!
elseif number( 1 , 100 ) >= 80 then
pc.changegold(10000)
chat("Hai trovato nel Forziere 10.000 Yang")
end
more information about how to use if/else/elseif: