Am incercat sa bag un quest care sa schimbe numele unui player.
L-am bagat in /usr/local/home/game/share/locale/germany/quest cu numele change_nick.quest
Apoi am scris in putty:
cd /usr/local/home/game/share/locale/germany/quest
./qc change_nick.quest
Rezultatul este urmatorul:
Cod: Selectaţi tot
syntax error : [string "start"]:7: `=' expected near `changegold'
change_nick.quest:22:Abort (core dumped)
Cod: Selectaţi tot
quest change_nick begin
state start begin
when 71055.use begin
say_title ("¿Vrei sa schimbi numele?" )
say ( "" )
say ( "Te costa 50 kk." )
local opcion = select ( "Ok" , "Nu mersi" )
if opcion == 1 then
if pc.gold >= 50000000 then
pc changegold(-50000000)
say("Introdu numele dorit.")
pc.change_name(input( ))
pc.remove_item (71055)
command("logout")
else
say("Nu ai suficient Yang.")
say("")
end
elseif opcion == 2 then
return
end
end
end
end

