Help Quest Random Yang

04/11/2016 22:08 ionel1#1
hi community,

i have a problem with my quest.

Quote:
quest ProvaT begin
state start begin
when 30193.use begin
addimage(20, 12, "reign.tga")
say("")
say("")
say("")
say("")
say("")
say("")
say("")
say("Un Forziere Perduto da dei Pirati nel lontano 800")
say("Pensi di essere cosi' coraggioso da aprirlo?")
local a = select("Si", "No")
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
elseif number( 1 , 100 ) >= 50 then
pc.changegold(100000)
chat("Hai trovato nel Forziere 100.000 Yang")
end
elseif number( 1 , 100 ) <= 20 then
pc.changegold(1000000)
chat("Hai trovato nel Forziere 1.000.000 Yang")
notice_all(""..pc.get_name().." Ha trovato nel Forziere 1.000.000 Yang")
return
end
end
end
end
end
when i say on putty ./qc ..... found this error:

[Only registered and activated users can see links. Click Here To Register...]


can anyone help me? thanks all!!
04/12/2016 15:04 mrapc#2
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:
[Only registered and activated users can see links. Click Here To Register...]
04/13/2016 15:07 Castiel'#3
hey,

please use the sticky threads
=> [Only registered and activated users can see links. Click Here To Register...]
=>[Only registered and activated users can see links. Click Here To Register...]
04/14/2016 11:00 Jinbei#4
^
#closed